munge.spec for openSUSE
Closed this issue · 4 comments
Hi,
the package bzip2-devel does not exist under openSUSE or SLES products. the package that contains the bzlib.h file is named libbz2-devel.
1] Some informations:
openSUSE# cat /etc/SuSE-release
openSUSE 11.2 (x86_64)
VERSION = 11.2
openSUSE# rpmbuilt -ta munge-0.5.9.tar.bz2
error: Failed build dependencies:
bzip2-devel is needed by munge-0.5.9-1.src
openSUSE# rpm -ql libbz2-devel
/usr/include/bzlib.h
/usr/lib64/libbz2.so
2] Here is the modification I made to munge.spec to have it build on openSUSE 11.2:
openSUSE# diff munge.spec.orig munge.spec
13d12
< BuildRequires: bzip2-devel
14a14,22
>
> %if 0%{?fedora_version}
> BuildRequires: bzip2-devel
> %endif
>
> %if 0%{?suse_version}
> BuildRequires: libbz2-devel
> %endif
>
It is not really an issue but it could help someone else running munge on SUSE systems... maybe a line in the README file could be sufficient.
Cheers,
Matthieu
Original issue reported on code.google.com by timhaute
on 2 Feb 2011 at 11:00
Thanks!
Back in SLES9, bzlib.h & libbz2.so were in the bzip2 rpm.
I just now checked an openSUSE 11.2 VM and found I needed to install "libopenssl-devel" (yet the BuildRequires seemed to work with either "openssl-devel" or "libopenssl-devel").
I still need to do a little more investigation to see what changed when and where.
Original comment by chris.m.dunlap
on 3 Feb 2011 at 2:07
- Changed state: Accepted
This issue was updated by svn:r908 / 1707418.
SLES 9 - 10 places the bzip2 include & lib files within the "bzip2" package. openSUSE 11.0 separates these files into the "libbz2-devel" package (changelog entry on 2007-05-30). RedHat/Fedora call this the "bzip2-devel" package.
In addition, openSUSE changes the "openssl-devel" package name to "libopenssl-devel" (changelog entry on 2007-04-25); note that this package still provides "openssl-devel".
Added RPM conditional tests for %sles_version
& %suse_version
as per https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto.
Tested changes on openSUSE 11.2, SLES9, RHEL5, RHEL6, and FC13.
Original comment by chris.m.dunlap
on 4 Feb 2011 at 3:19
- Changed state: Started
This issue was closed by svn:r909 / 6d5f98a.
Original comment by chris.m.dunlap
on 4 Feb 2011 at 3:24
- Changed state: Fixed
Original comment by chris.m.dunlap
on 4 Feb 2011 at 3:31
- Added labels: Milestone-0.5.10