X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=shorewall.spec;h=55913525bff6b3d6651bdc4aff26447d21fb4f79;hb=a4053db90217c8c89f1852956f7398f06ab2a9f2;hp=9dec2f2cf00851d22b176afa382fc1e462e46c6f;hpb=407461decbc440dbc1fe57c339a28e94bd698d97;p=packages%2Fshorewall.git diff --git a/shorewall.spec b/shorewall.spec index 9dec2f2..5591352 100644 --- a/shorewall.spec +++ b/shorewall.spec @@ -2,25 +2,28 @@ # A very helpful document for packaging Shorewall is "Anatomy of Shorewall 4.0" # which is found at http://www.shorewall.net/Anatomy.html # +%define ver 5.2.3 +%define rel .3 + Summary: Shoreline Firewall - an iptables-based firewall for Linux systems Summary(pl.UTF-8): Shoreline Firewall - zapora sieciowa oparta na iptables Name: shorewall -Version: 5.2.0.5 -Release: 2 +Version: %{ver}%{rel} +Release: 1 License: GPL Group: Networking/Utilities -Source0: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}-%{version}.tar.bz2 -# Source0-md5: 3fb5f8c1f0012c0221681bc6d62b84a3 -Source1: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}-lite-%{version}.tar.bz2 -# Source1-md5: 821f5b69ba22fb9950195647ff3ad223 -Source2: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}6-%{version}.tar.bz2 -# Source2-md5: 7f8a9fcc0227e50b21da553acb99f764 -Source3: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}6-lite-%{version}.tar.bz2 -# Source3-md5: 57fbbf639a3351212c02026ba0e7b89d -Source4: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}-init-%{version}.tar.bz2 -# Source4-md5: 87cc6453104a65fac36996a86469157e -Source5: http://www.shorewall.net/pub/shorewall/5.2/shorewall-5.2.0/%{name}-core-%{version}.tar.bz2 -# Source5-md5: 16e6505831f5c1bc19c08d8982a4becc +Source0: http://www.shorewall.net/pub/shorewall/5.2/shorewall-%{ver}/%{name}-%{version}.tar.bz2 +# Source0-md5: 3e6665a432be6ad0c5bd611710b0c70f +Source1: http://www.shorewall.net/pub/shorewall/5.2/shorewall-%{ver}/%{name}-lite-%{version}.tar.bz2 +# Source1-md5: be9bb67542035c795150d831cac64fb4 +Source2: http://www.shorewall.net/pub/shorewall/5.2/shorewall-%{ver}/%{name}6-%{version}.tar.bz2 +# Source2-md5: 7ab222b22fe5b8c97efdeb57c063cabe +Source3: http://www.shorewall.net/pub/shorewall/5.2/shorewall-%{ver}/%{name}6-lite-%{version}.tar.bz2 +# Source3-md5: 8cf78617354648f19698fa056ba915c3 +Source4: http://www.shorewall.net/pub/shorewall/5.2/shorewall-%{ver}/%{name}-init-%{version}.tar.bz2 +# Source4-md5: 5a4c9900be450e142820fb7029c525d1 +Source5: http://www.shorewall.net/pub/shorewall/5.2/shorewall-%{ver}/%{name}-core-%{version}.tar.bz2 +# Source5-md5: cfc4fccd200fa14188444bedb9e6fe3d Source10: %{name}.init Source11: %{name}.logrotate Patch0: %{name}-config.patch @@ -29,7 +32,6 @@ Patch2: tld.patch Patch3: man.patch Patch4: init.patch Patch5: shell-fix.patch -Patch6: perl.patch URL: http://www.shorewall.net/ BuildRequires: perl BuildRequires: perl(Digest::SHA) @@ -138,8 +140,9 @@ and shutdown. %setup -qcT -a0 -a1 -a2 -a3 -a4 -a5 targets="shorewall-core shorewall shorewall-lite shorewall6 shorewall6-lite shorewall-init" for i in $targets; do - cp -p $i-%{version}/shorewallrc.{redhat,tld} - %{__sed} -i -r -e 's!RedHat/Fedora!TLD !; s/^HOST\=redhat/HOST\=tld/; /^(SERVICEDIR|SERVICEFILE)/d;' $i-%{version}/shorewallrc.tld + mv $i-%{version} $i + cp -p $i/shorewallrc.{redhat,tld} + %{__sed} -i -r -e 's!RedHat/Fedora!TLD !; s/^HOST\=redhat/HOST\=tld/; /^(SERVICEDIR|SERVICEFILE)/d;' $i/shorewallrc.tld done %patch0 -p1 %patch1 -p1 @@ -147,7 +150,6 @@ done %patch3 -p1 %patch4 -p1 %patch5 -p1 -%patch6 -p1 # Remove hash-bang from files which are not directly executed as shell # scripts. This silences some rpmlint errors. @@ -158,7 +160,7 @@ rm -rf $RPM_BUILD_ROOT targets="shorewall-core shorewall shorewall-lite shorewall6 shorewall6-lite shorewall-init" for i in $targets; do - cd $i-%{version} + cd $i ./configure \ VENDOR=tld \ LIBEXECDIR=%{_libexecdir} \ @@ -188,7 +190,7 @@ fi %files %defattr(644,root,root,755) -%doc shorewall-%{version}/{COPYING,changelog.txt,releasenotes.txt,Samples} +%doc shorewall/{COPYING,changelog.txt,releasenotes.txt,Samples} %attr(755,root,root) %{_sbindir}/shorewall %dir %{_sysconfdir}/shorewall %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shorewall/* @@ -202,7 +204,6 @@ fi %{_datadir}/shorewall/lib.core %{_datadir}/shorewall/lib.runtime %{_datadir}/shorewall/macro.* -%{_datadir}/shorewall/modules* %{_datadir}/shorewall/prog.* %{_datadir}/shorewall/version %attr(755,root,root) %{_libexecdir}/shorewall/compiler.pl @@ -220,7 +221,7 @@ fi %files lite %defattr(644,root,root,755) -%doc shorewall-lite-%{version}/{COPYING,changelog.txt,releasenotes.txt} +%doc shorewall-lite/{COPYING,changelog.txt,releasenotes.txt} %attr(755,root,root) %{_sbindir}/shorewall-lite %dir %{_sysconfdir}/shorewall-lite %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shorewall-lite/shorewall-lite.conf @@ -234,7 +235,7 @@ fi %files -n shorewall6 %defattr(644,root,root,755) -%doc shorewall6-%{version}/{COPYING,changelog.txt,releasenotes.txt,Samples6} +%doc shorewall6/{COPYING,changelog.txt,releasenotes.txt,Samples6} %attr(755,root,root) %{_sbindir}/shorewall6 %dir %{_sysconfdir}/shorewall6 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shorewall6/* @@ -249,7 +250,7 @@ fi %files -n shorewall6-lite %defattr(644,root,root,755) -%doc shorewall6-lite-%{version}/{COPYING,changelog.txt,releasenotes.txt} +%doc shorewall6-lite/{COPYING,changelog.txt,releasenotes.txt} %attr(755,root,root) %{_sbindir}/shorewall6-lite %dir %{_sysconfdir}/shorewall6-lite %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shorewall6-lite/shorewall6-lite.conf @@ -264,7 +265,7 @@ fi %files core %defattr(644,root,root,755) -%doc shorewall-core-%{version}/{COPYING,changelog.txt,releasenotes.txt} +%doc shorewall-core/{COPYING,changelog.txt,releasenotes.txt} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/shorewall %dir %{_datadir}/shorewall/ %{_datadir}/shorewall/coreversion @@ -278,7 +279,7 @@ fi %files init %defattr(644,root,root,755) -%doc shorewall-init-%{version}/{COPYING,changelog.txt,releasenotes.txt} +%doc shorewall-init/{COPYING,changelog.txt,releasenotes.txt} %attr(755,root,root) %{_sbindir}/shorewall-init %attr(755,root,root) %{_sysconfdir}/NetworkManager/dispatcher.d/01-shorewall %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/shorewall-init