diff --git a/tcp_wrappers_7.6.tar.bz2 b/tcp_wrappers_7.6.tar.bz2 deleted file mode 100644 index 96602ae..0000000 --- a/tcp_wrappers_7.6.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:77a52687b1919bd4b10a0893becec1935e23a5355e85a786e29fb84a13953a2c -size 78615 diff --git a/tcp_wrappers_7.6.tar.gz b/tcp_wrappers_7.6.tar.gz new file mode 100644 index 0000000..1429775 --- /dev/null +++ b/tcp_wrappers_7.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9543d7adedf78a6de0b221ccbbd1952e08b5138717f4ade814039bb489a4315d +size 99438 diff --git a/tcpd.changes b/tcpd.changes index a4a87fc..38f1dba 100644 --- a/tcpd.changes +++ b/tcpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 5 10:39:36 UTC 2013 - idonmez@suse.com + +- Cleanup spec file +- Add Source URL, see https://en.opensuse.org/SourceUrls + ------------------------------------------------------------------- Sun Jan 20 01:29:11 UTC 2013 - jengelh@inai.de diff --git a/tcpd.spec b/tcpd.spec index b14b5d9..773c28a 100644 --- a/tcpd.spec +++ b/tcpd.spec @@ -19,8 +19,8 @@ Name: tcpd %define lname libwrap0 Url: ftp://ftp.porcupine.org/pub/security/index.html -Provides: nkitb:/usr/sbin/tcpd BuildRequires: linux-kernel-headers +Provides: nkitb:/usr/sbin/tcpd # bug437293 %ifarch ppc64 Obsoletes: tcpd-64bit @@ -31,7 +31,7 @@ Release: 0 Summary: A security wrapper for TCP daemons License: BSD-3-Clause Group: Productivity/Networking/System -Source: tcp_wrappers_%{version}.tar.bz2 +Source: ftp://ftp.porcupine.org/pub/security/tcp_wrappers_%{version}.tar.gz Source2: baselibs.conf Patch0: tcp_wrappers_%{version}.diff Patch1: tcp_wrappers_%{version}-ipv6-1.6.diff @@ -69,12 +69,6 @@ This package contains a small daemon program that can monitor and filter incoming requests for finger, ftp, telnet, rlogin, rsh, exec, tftp, talk, and other network services. - - -Authors: --------- - Wietse Venema - %package -n %lname Summary: The TCP wrapper library Group: System/Libraries @@ -86,7 +80,7 @@ requests (connections) based upon rule exclusion files (/etc/hosts.*). %package devel Summary: Include Files and Libraries for the TCP wrapper library Group: Productivity/Networking/System -Requires: %lname = %version +Requires: %lname = %{version} Requires: glibc-devel # bug437293 %ifarch ppc64 @@ -98,8 +92,6 @@ Obsoletes: tcpd-devel-64bit This package contains the library and header files, which are necessary to compile and link programs against the TCP wrapper library. - - %prep %setup -q -n tcp_wrappers_%{version} %patch0 @@ -133,25 +125,25 @@ to compile and link programs against the TCP wrapper library. %patch28 %build -# make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux -make %{?_smp_mflags} linux CC="%{__cc}" +# make RPM_OPT_FLAGS="%{optflags} -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux +make %{?_smp_mflags} linux CC="gcc" %install -install -d -m 755 $RPM_BUILD_ROOT%{_includedir} -install -d -m 755 $RPM_BUILD_ROOT%{_libdir} -install -d -m 755 $RPM_BUILD_ROOT%{_sbindir} -install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8} -install -d -m 755 $RPM_BUILD_ROOT/%{_lib} -install -m 644 ip6utils.h tcpd.h $RPM_BUILD_ROOT%{_includedir} -install -m 644 libwrap.a $RPM_BUILD_ROOT/%{_libdir} -install -m 755 safe_finger tcpd tcpdchk tcpdmatch try-from $RPM_BUILD_ROOT%{_sbindir} -install -m 644 hosts_access.3 $RPM_BUILD_ROOT%{_mandir}/man3 -install -m 644 hosts_access.5 hosts_options.5 $RPM_BUILD_ROOT%{_mandir}/man5 -install -m 644 tcpd.8 tcpdchk.8 tcpdmatch.8 $RPM_BUILD_ROOT%{_mandir}/man8 -install -m 644 shared/libwrap.so.0.%{version} $RPM_BUILD_ROOT/%{_lib} -cd $RPM_BUILD_ROOT/%{_lib} +install -d -m 755 %{buildroot}%{_includedir} +install -d -m 755 %{buildroot}%{_libdir} +install -d -m 755 %{buildroot}%{_sbindir} +install -d -m 755 %{buildroot}%{_mandir}/man{1,3,5,8} +install -d -m 755 %{buildroot}/%{_lib} +install -m 644 ip6utils.h tcpd.h %{buildroot}%{_includedir} +install -m 644 libwrap.a %{buildroot}/%{_libdir} +install -m 755 safe_finger tcpd tcpdchk tcpdmatch try-from %{buildroot}%{_sbindir} +install -m 644 hosts_access.3 %{buildroot}%{_mandir}/man3 +install -m 644 hosts_access.5 hosts_options.5 %{buildroot}%{_mandir}/man5 +install -m 644 tcpd.8 tcpdchk.8 tcpdmatch.8 %{buildroot}%{_mandir}/man8 +install -m 644 shared/libwrap.so.0.%{version} %{buildroot}/%{_lib} +cd %{buildroot}/%{_lib} ln -sf libwrap.so.0.%{version} libwrap.so.0 -cd $RPM_BUILD_ROOT%{_libdir} +cd %{buildroot}%{_libdir} ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so %post -n %lname -p /sbin/ldconfig @@ -167,7 +159,7 @@ ln -sf /%{_lib}/libwrap.so.0.%{version} libwrap.so %files -n %lname %defattr(-,root,root) %doc DISCLAIMER -%attr(755,root,root) /%_lib/libwrap.so.0* +%attr(755,root,root) /%{_lib}/libwrap.so.0* %files devel %defattr(644,root,root,755)