You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Chip Childers <ch...@sungard.com> on 2012/09/25 22:04:26 UTC

[ASFCS40] Packaging and LICENSE file

Questions for the packaging folks:

Should our reference package configs include the LICENSE and NOTICE
files from the root of the repo as part of the installed files for the
software?

If so, do we do that already for Deb packages?  I'm not too familiar
with DEB packaging (I'm a .spec guy myself), but I didn't see those
files specifically called out anywhere.

Also if so, we'll need to add those files to cloud.spec.

-chip

Re: [ASFCS40] Packaging and LICENSE file

Posted by Rohit Yadav <ro...@citrix.com>.
Fixed for rpms:

fa63c30576c411e6d13d08307e4690e9740ca3ff Mon Sep 17 00:00:00 2001
From: Rohit Yadav <ro...@citrix.com>
Date: Wed, 26 Sep 2012 12:02:11 +0530
Subject: [PATCH] RPM: Add copyright files to rpms

On 26-Sep-2012, at 11:56 AM, Rohit Yadav <ro...@citrix.com> wrote:

> 
> On 26-Sep-2012, at 1:34 AM, Chip Childers <ch...@sungard.com> wrote:
> 
>> Questions for the packaging folks:
>> 
>> Should our reference package configs include the LICENSE and NOTICE
>> files from the root of the repo as part of the installed files for the
>> software?
> 
> Do we need these files, both of them, or  use small version of the license, like the debian/copyright
> 
> For debian packages, all such (changelog, license, NEWS) files should go into /usr/share/doc/${artifactId}/
> Thanks, I'll configure the maven deb/rpm plugins to put top level ${project.parent.basedir}/ LICENSE files to these paths.
> 
>> 
>> If so, do we do that already for Deb packages?  I'm not too familiar
>> with DEB packaging (I'm a .spec guy myself), but I didn't see those
>> files specifically called out anywhere.
> 
> Old debs which were created by waf used to include the license/copyright file.
> Currently, dpkgbuild/debuild does not copy those files, though we already have the copyright file in the debian/
> I think all we need to do is add: dh_installdocs
> to the debian/rules
> 
> @Wido: Can you please check the rules file and help us to include those files for deb packaging?
> 
> For rpms, we can have this in cloud.spec for each package, will post a patch:
> %doc debian/copyright
> %doc <path to file to be included>
> 
>> 
>> Also if so, we'll need to add those files to cloud.spec.
> 
> +1
> 
>> 
>> -chip
> 


Re: [ASFCS40] Packaging and LICENSE file

Posted by Noah Slater <ns...@tumbolia.org>.
It would be a good idea to have CloudStack itself install LICENSE, NOTICE,
NEWS, etc into /user/share/doc anyway. If this were the case, debian/rules
would not have to specifically move anything into place, because it is the
default.

On Wed, Sep 26, 2012 at 7:26 AM, Rohit Yadav <ro...@citrix.com> wrote:

>
> On 26-Sep-2012, at 1:34 AM, Chip Childers <ch...@sungard.com>
> wrote:
>
> > Questions for the packaging folks:
> >
> > Should our reference package configs include the LICENSE and NOTICE
> > files from the root of the repo as part of the installed files for the
> > software?
>
> Do we need these files, both of them, or  use small version of the
> license, like the debian/copyright
>
> For debian packages, all such (changelog, license, NEWS) files should go
> into /usr/share/doc/${artifactId}/
> Thanks, I'll configure the maven deb/rpm plugins to put top level
> ${project.parent.basedir}/ LICENSE files to these paths.
>
> >
> > If so, do we do that already for Deb packages?  I'm not too familiar
> > with DEB packaging (I'm a .spec guy myself), but I didn't see those
> > files specifically called out anywhere.
>
> Old debs which were created by waf used to include the license/copyright
> file.
> Currently, dpkgbuild/debuild does not copy those files, though we already
> have the copyright file in the debian/
> I think all we need to do is add: dh_installdocs
> to the debian/rules
>
> @Wido: Can you please check the rules file and help us to include those
> files for deb packaging?
>
> For rpms, we can have this in cloud.spec for each package, will post a
> patch:
> %doc debian/copyright
> %doc <path to file to be included>
>
> >
> > Also if so, we'll need to add those files to cloud.spec.
>
> +1
>
> >
> > -chip
>
>


-- 
NS

Re: [ASFCS40] Packaging and LICENSE file

Posted by Rohit Yadav <ro...@citrix.com>.
On 26-Sep-2012, at 1:34 AM, Chip Childers <ch...@sungard.com> wrote:

> Questions for the packaging folks:
> 
> Should our reference package configs include the LICENSE and NOTICE
> files from the root of the repo as part of the installed files for the
> software?

Do we need these files, both of them, or  use small version of the license, like the debian/copyright

For debian packages, all such (changelog, license, NEWS) files should go into /usr/share/doc/${artifactId}/
Thanks, I'll configure the maven deb/rpm plugins to put top level ${project.parent.basedir}/ LICENSE files to these paths.

> 
> If so, do we do that already for Deb packages?  I'm not too familiar
> with DEB packaging (I'm a .spec guy myself), but I didn't see those
> files specifically called out anywhere.

Old debs which were created by waf used to include the license/copyright file.
Currently, dpkgbuild/debuild does not copy those files, though we already have the copyright file in the debian/
I think all we need to do is add: dh_installdocs
to the debian/rules

@Wido: Can you please check the rules file and help us to include those files for deb packaging?

For rpms, we can have this in cloud.spec for each package, will post a patch:
%doc debian/copyright
%doc <path to file to be included>

> 
> Also if so, we'll need to add those files to cloud.spec.

+1

> 
> -chip