From b627731daaa4c951e9cb58b30317d8937083b3d0 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Thu, 20 Dec 2012 13:44:33 +0100 Subject: [PATCH] don't package ancient contrib/* files --- dhcp.spec | 23 +++++++---------------- test.sh | 10 ---------- 2 files changed, 7 insertions(+), 26 deletions(-) delete mode 100755 test.sh diff --git a/dhcp.spec b/dhcp.spec index 2bd3922..030a93f 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -18,7 +18,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: 4.2.5 -Release: 0.1.%{prever}%{?dist} +Release: 0.2.%{prever}%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # dcantrell maintaining the package) made incorrect use of the epoch and # that's why it is at 12 now. It should have never been used, but it was. @@ -120,11 +120,10 @@ the ISC DHCP service and relay agent. %package -n dhclient Summary: Provides the ISC DHCP client daemon and dhclient-script Group: System Environment/Base -Requires: initscripts +# dhclient-script requires: +Requires: coreutils grep hostname initscripts iproute iputils sed Requires: %{name}-common = %{epoch}:%{version}-%{release} Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} -Requires(post): coreutils -Requires(post): grep %description -n dhclient DHCP (Dynamic Host Configuration Protocol) is a protocol which allows @@ -332,17 +331,6 @@ rm -rf includes/isc-dhcp # (Submitted to dhcp-bugs@isc.org - [ISC-Bugs #31892]) %patch46 -p1 -b .dupl-key -pushd contrib -%{__chmod} -x 3.0b1-lease-convert dhclient-tz-exithook.sh ldap/dhcpd-conf-to-ldap -%{__chmod} -x sethostname.sh solaris.init -%{__rm} -f dhcp.spec - -# We want UNIX-style line endings -%{__sed} -i -e 's/\r//' ms2isc/readme.txt -%{__sed} -i -e 's/\r//' ms2isc/Registry.pm -%{__sed} -i -e 's/\r//' ms2isc/ms2isc.pl -popd - # Update paths in all man pages for page in client/dhclient.conf.5 client/dhclient.leases.5 \ client/dhclient-script.8 client/dhclient.8 ; do @@ -498,7 +486,7 @@ fi %files %doc server/dhcpd.conf.example server/dhcpd6.conf.example -%doc contrib/* +%doc contrib/ldap/ %attr(0750,root,root) %dir %{dhcpconfdir} %attr(0755,dhcpd,dhcpd) %dir %{_localstatedir}/lib/dhcpd %attr(0644,dhcpd,dhcpd) %verify(mode) %config(noreplace) %{_localstatedir}/lib/dhcpd/dhcpd.leases @@ -560,6 +548,9 @@ fi %changelog +* Thu Dec 20 2012 Jiri Popelka - 12:4.2.5-0.2.rc1 +- don't package ancient contrib/* files + * Thu Dec 20 2012 Jiri Popelka - 12:4.2.5-0.1.rc1 - 4.2.5rc1 - added %%check - upstream unit tests (Automated Test Framework - ATF) diff --git a/test.sh b/test.sh deleted file mode 100755 index ff60c14..0000000 --- a/test.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Run 'fedpkg local' first - -cd dhcp-4.2.2/tests -make check - -cd ../common/tests -make test_alloc -./test_alloc