From 8b40b56cd207981cc4ce934295d8a70ba52a3ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 21 Nov 2017 12:16:57 +0100 Subject: [PATCH] clean up spec file --- libbsd.spec | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/libbsd.spec b/libbsd.spec index 481d196..383ae4f 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -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 - 0.8.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild