[opensuse-packaging] help with naming please - shared library policy naming problem
Yes, very ironic.... I am fiddling around with swfdec in home:rjschwei:openshot/libswfdec and am running into a problem with the naming. The build process, by default, produces 2 libraries, one just the decoder (libswfdec) and another bound to GTK+ (libswfdec-gtk). I'd like to keep these separate but am running into trouble. The spec file starts out with: Name: libswfdec-0_8-0 this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows: %package gtk ..... This of course produces a package name of "libswfdec-0_8-0-gtk" when I really want "libswfdec-gtk-0_8-0". How do I beat this naming issue into submission. I can disable the build of the gtk library, which avoids the problem of course, but I'd rather not. Help is appreciated. Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2011-09-29 16:30:15 -0400, Robert Schweikert wrote:
Yes, very ironic....
I am fiddling around with swfdec in home:rjschwei:openshot/libswfdec and am running into a problem with the naming. The build process, by default, produces 2 libraries, one just the decoder (libswfdec) and another bound to GTK+ (libswfdec-gtk). I'd like to keep these separate but am running into trouble.
The spec file starts out with:
Name: libswfdec-0_8-0
this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows:
%package gtk .....
This of course produces a package name of "libswfdec-0_8-0-gtk" when I really want "libswfdec-gtk-0_8-0". How do I beat this naming issue into submission.
Use "%package -n libswfdec-gtk-0_8-0".
I can disable the build of the gtk library, which avoids the problem of course, but I'd rather not.
Help is appreciated.
Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Robert, On Thu, 2011-09-29 at 16:30 -0400, Robert Schweikert wrote:
The spec file starts out with:
Name: libswfdec-0_8-0
Don't do that: keep Name in sync with the upstream project name / tarball name. You don't want to rename the package with every version bump.
this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows:
%package gtk .....
for all libs, use %package -n libswfdec-0_8-0 %package -n libswfdec-gtk-0_8-0 This should get you going. Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Thanks for the help. Some questions below. On 09/29/2011 04:38 PM, Dimstar / Dominique Leuenberger wrote:
Hi Robert,
On Thu, 2011-09-29 at 16:30 -0400, Robert Schweikert wrote:
The spec file starts out with:
Name: libswfdec-0_8-0
Don't do that: keep Name in sync with the upstream project name / tarball name. You don't want to rename the package with every version bump.
Hmmm, I can see that keeping "Name: swfdec", i.e. with the upstream tarball, would be desirable in a way. But then I end up having to define %package and other sections for what is now the "default". This would imply more editing on a version bump than changing the value for "Name:" What am I missing?
this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows: %package gtk .....
for all libs, use %package -n libswfdec-0_8-0 %package -n libswfdec-gtk-0_8-0 Would there be no complaint if there is nothing packaged for whatever is specified with "Name: ..."?
Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, 2011-09-29 at 17:11 -0400, Robert Schweikert wrote:
Thanks for the help.
Some questions below.
On 09/29/2011 04:38 PM, Dimstar / Dominique Leuenberger wrote:
Hi Robert,
On Thu, 2011-09-29 at 16:30 -0400, Robert Schweikert wrote:
The spec file starts out with:
Name: libswfdec-0_8-0
Don't do that: keep Name in sync with the upstream project name / tarball name. You don't want to rename the package with every version bump.
Hmmm, I can see that keeping "Name: swfdec", i.e. with the upstream tarball, would be desirable in a way. But then I end up having to define %package and other sections for what is now the "default". This would imply more editing on a version bump than changing the value for "Name:"
What am I missing?
Don't forget that for Factory, the .spec file needs to be named after the package Name... so a version update would resolve in a package rename...
this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows: %package gtk .....
for all libs, use %package -n libswfdec-0_8-0 %package -n libswfdec-gtk-0_8-0 Would there be no complaint if there is nothing packaged for whatever is specified with "Name: ..."?
No problem at all; Empty packages are not allowed, but as long as there is no %files section (for the main package) the rpm won't be built. The resulting roms will be: swfdec-0.8.0-1.1.src.rpm libswfdec-0_8-0-0.8.0-1.1.<arch>.rpm libswfdec-gtk-0_8-0-0.8.0-1.1.<arch>.rpm Which is just fine... As for the changes in the sub-sections: There are no version tags and the like.. so a version upgrade typically does not result in many changes in the sub packages... the most common one is the soNUM that changes / the lib name that bumps. If it's really common, introduce variables: %define libver 0_8-0 %package -n libswfdec-%{libver} %package -n libswfdec-gtk-%{libver} Hth, Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 29 September 2011 22:11, Robert Schweikert <rjschwei@suse.com> wrote:
Thanks for the help.
Some questions below.
On 09/29/2011 04:38 PM, Dimstar / Dominique Leuenberger wrote:
Hi Robert,
On Thu, 2011-09-29 at 16:30 -0400, Robert Schweikert wrote:
The spec file starts out with:
Name: libswfdec-0_8-0
Don't do that: keep Name in sync with the upstream project name / tarball name. You don't want to rename the package with every version bump.
Hmmm, I can see that keeping "Name: swfdec", i.e. with the upstream tarball, would be desirable in a way. But then I end up having to define %package and other sections for what is now the "default". This would imply more editing on a version bump than changing the value for "Name:"
There is a bit of extra work at first, but I don't see any extra work at all on a version bump.
this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows: %package gtk .....
for all libs, use %package -n libswfdec-0_8-0 %package -n libswfdec-gtk-0_8-0
Would there be no complaint if there is nothing packaged for whatever is specified with "Name: ..."?
There will be, the src.rpm. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Thanks to everyone for the help. On 09/29/2011 05:25 PM, Cristian Morales Vega wrote:
On 29 September 2011 22:11, Robert Schweikert<rjschwei@suse.com> wrote:
Thanks for the help.
Some questions below.
On 09/29/2011 04:38 PM, Dimstar / Dominique Leuenberger wrote:
Hi Robert,
On Thu, 2011-09-29 at 16:30 -0400, Robert Schweikert wrote:
The spec file starts out with:
Name: libswfdec-0_8-0
Don't do that: keep Name in sync with the upstream project name / tarball name. You don't want to rename the package with every version bump. Hmmm, I can see that keeping "Name: swfdec", i.e. with the upstream tarball, would be desirable in a way. But then I end up having to define %package and other sections for what is now the "default". This would imply more editing on a version bump than changing the value for "Name:" There is a bit of extra work at first, but I don't see any extra work at all on a version bump.
this will meet the shared library policy for "libswfdec" :) . I also have a section in the spec file for the gtk library; this looks as follows: %package gtk .....
for all libs, use %package -n libswfdec-0_8-0 %package -n libswfdec-gtk-0_8-0 Would there be no complaint if there is nothing packaged for whatever is specified with "Name: ..."? There will be, the src.rpm.
-- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Cristian Morales Vega
-
Dimstar / Dominique Leuenberger
-
Marcus Hüwe
-
Robert Schweikert