clean up spec file

epel9
Björn Esser 7 years ago
parent 93fb035dab
commit 8b40b56cd2
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

@ -4,9 +4,7 @@ Release: 1%{?dist}
Summary: Library providing BSD-compatible functions for portability Summary: Library providing BSD-compatible functions for portability
URL: http://libbsd.freedesktop.org/ URL: http://libbsd.freedesktop.org/
License: BSD and ISC and Copyright only and Public Domain License: BSD and ISC and Copyright only and Public Domain
Group: System Environment/Libraries
# BuildRoot tag necessary for EL5 only:
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
Patch1: %{name}-0.8.3-deprecated.patch Patch1: %{name}-0.8.3-deprecated.patch
@ -18,18 +16,14 @@ code over and over again on each project.
%package devel %package devel
Summary: Development files for libbsd Summary: Development files for libbsd
Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libbsd = %{version}-%{release}
Requires: pkgconfig
%description devel %description devel
Development files for the libbsd library. Development files for the libbsd library.
%package ctor-static %package ctor-static
Summary: Development files for libbsd Summary: Development files for libbsd
Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libbsd = %{version}-%{release}
Requires: pkgconfig
%description ctor-static %description ctor-static
The libbsd-ctor static library is required if setproctitle() is to be used The libbsd-ctor static library is required if setproctitle() is to be used
@ -46,21 +40,13 @@ configured using "pkg-config --libs libbsd-ctor".
%build %build
%configure %configure
make CFLAGS="%{optflags}" %{?_smp_mflags} \ %make_build V=1
libdir=%{_libdir} \
usrlibdir=%{_libdir} \
exec_prefix=%{_prefix}
%check %check
make check %make_build check V=1
%install %install
rm -rf %{buildroot} # necessary for EL5 only %make_install V=1
make libdir=%{_libdir} \
usrlibdir=%{_libdir} \
exec_prefix=%{_prefix} \
DESTDIR=%{buildroot} \
install
# don't want static library or libtool archive # don't want static library or libtool archive
rm %{buildroot}%{_libdir}/%{name}.a rm %{buildroot}%{_libdir}/%{name}.a
@ -76,8 +62,8 @@ rm %{buildroot}%{_libdir}/%{name}.la
%{_libdir}/%{name}.so.* %{_libdir}/%{name}.so.*
%files devel %files devel
%{_mandir}/man3/*.3.gz %{_mandir}/man3/*.3bsd.*
%{_mandir}/man3/*.3bsd.gz %{_mandir}/man7/%{name}.7.*
%{_includedir}/bsd %{_includedir}/bsd
%{_libdir}/%{name}.so %{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
@ -92,6 +78,7 @@ rm %{buildroot}%{_libdir}/%{name}.la
- update to 0.8.6 (#1462722) - update to 0.8.6 (#1462722)
- fixes manpage conflict (#1504831) - fixes manpage conflict (#1504831)
- condition the gcc deprecation patch on epel < 7 - condition the gcc deprecation patch on epel < 7
- clean up spec file
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

Loading…
Cancel
Save