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
URL: http://libbsd.freedesktop.org/
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
Patch1: %{name}-0.8.3-deprecated.patch
@ -18,18 +16,14 @@ code over and over again on each project.
%package devel
Summary: Development files for libbsd
Group: Development/Libraries
Requires: libbsd = %{version}-%{release}
Requires: pkgconfig
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for the libbsd library.
%package ctor-static
Summary: Development files for libbsd
Group: Development/Libraries
Requires: libbsd = %{version}-%{release}
Requires: pkgconfig
Requires: %{name}%{?_isa} = %{version}-%{release}
%description ctor-static
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
%configure
make CFLAGS="%{optflags}" %{?_smp_mflags} \
libdir=%{_libdir} \
usrlibdir=%{_libdir} \
exec_prefix=%{_prefix}
%make_build V=1
%check
make check
%make_build check V=1
%install
rm -rf %{buildroot} # necessary for EL5 only
make libdir=%{_libdir} \
usrlibdir=%{_libdir} \
exec_prefix=%{_prefix} \
DESTDIR=%{buildroot} \
install
%make_install V=1
# don't want static library or libtool archive
rm %{buildroot}%{_libdir}/%{name}.a
@ -76,8 +62,8 @@ rm %{buildroot}%{_libdir}/%{name}.la
%{_libdir}/%{name}.so.*
%files devel
%{_mandir}/man3/*.3.gz
%{_mandir}/man3/*.3bsd.gz
%{_mandir}/man3/*.3bsd.*
%{_mandir}/man7/%{name}.7.*
%{_includedir}/bsd
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
@ -92,6 +78,7 @@ rm %{buildroot}%{_libdir}/%{name}.la
- update to 0.8.6 (#1462722)
- fixes manpage conflict (#1504831)
- 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

Loading…
Cancel
Save