Packaging Guidelines details (#226482)

* Remove BuildRoot
 * add smp flags
 * remove %clean
 * fully versioned requires
This commit is contained in:
Jakub Jelen 2016-11-28 10:15:59 +01:00
parent 00aefcec1b
commit fa5e7603bb

View File

@ -43,8 +43,7 @@ Patch30: tcp_wrappers-7.6-altformat.patch
Patch31: tcp_wrappers-7.6-aclexec.patch
# required by sin_scope_id in ipv6 patch
BuildRequires: glibc-devel >= 2.2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: tcp_wrappers-libs = %{version}-%{release}
Requires: tcp_wrappers-libs%{?_isa} = %{version}-%{release}
%description
The tcp_wrappers package provides small daemon programs which can
@ -66,7 +65,7 @@ tcp_wrappers-libs contains the libraries of the tcp_wrappers package.
%package devel
Summary: Development libraries and headers for tcp_wrappers
Group: Development/Libraries
Requires: tcp_wrappers-libs = %{version}-%{release}
Requires: tcp_wrappers-libs%{?_isa} = %{version}-%{release}
%description devel
tcp_wrappers-devel contains the libraries and header files needed to
@ -105,7 +104,7 @@ develop applications with tcp_wrappers support.
%patch31 -p1 -b .aclexec
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DACLEXEC" LDFLAGS="-pie -z relro -z now" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DACLEXEC" LDFLAGS="-pie -z relro -z now" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux %{?_smp_mflags}
%install
@ -137,9 +136,6 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man8/tcpdchk.*
%postun libs -p /sbin/ldconfig
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%{!?_licensedir:%global license %%doc}
%license DISCLAIMER