packages: xtables-geoip/xtables-geoip.spec - build and package arch data on...
glen
glen at pld-linux.org
Mon Aug 9 22:09:30 CEST 2010
Author: glen Date: Mon Aug 9 20:09:30 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- build and package arch data only; rel 2
---- Files affected:
packages/xtables-geoip:
xtables-geoip.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: packages/xtables-geoip/xtables-geoip.spec
diff -u packages/xtables-geoip/xtables-geoip.spec:1.9 packages/xtables-geoip/xtables-geoip.spec:1.10
--- packages/xtables-geoip/xtables-geoip.spec:1.9 Thu Jul 15 16:07:55 2010
+++ packages/xtables-geoip/xtables-geoip.spec Mon Aug 9 22:09:25 2010
@@ -1,10 +1,8 @@
# $Revision$, $Date$
-# TODO
-# - make it arch dependant and package only LE or BE dirs?
Summary: GeoIP database files for xt_geoip
Name: xtables-geoip
Version: 20100702
-Release: 1
+Release: 2
License: GPL, Open Data License
Group: Networking/Admin
URL: http://www.maxmind.com/
@@ -17,11 +15,16 @@
BuildRequires: perl-Text-CSV_XS >= 0.69
BuildRequires: perl-base
BuildRequires: unzip
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define dbdir /usr/share/xt_geoip
+%ifarch ppc sparc ppc64 sparc64 sparcv9
+%define byteorder BE
+%else
+%define byteorder LE
+%endif
+
%description
The package contains the GeoIP definition files (which IP addresses
belong to which country) that are needed for Xtables-addons's xt_geoip
@@ -40,17 +43,18 @@
cp -a %{SOURCE2} .
%build
-install -d {B,L}E
-cd BE
+install -d %{byteorder}
+cd %{byteorder}
+%if "%{byteorder}" == "BE"
%{__perl} ../geoip_csv_iv0.pl -b ../GeoIPCountryWhois.csv
-cd ../LE
+%else
%{__perl} ../geoip_csv_iv0.pl ../GeoIPCountryWhois.csv
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{dbdir}/{B,L}E
-cp -a BE/* $RPM_BUILD_ROOT%{dbdir}/BE
-cp -a LE/* $RPM_BUILD_ROOT%{dbdir}/LE
+install -d $RPM_BUILD_ROOT%{dbdir}/%{byteorder}
+cp -a %{byteorder}/* $RPM_BUILD_ROOT%{dbdir}/%{byteorder}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -58,7 +62,8 @@
%files
%defattr(644,root,root,755)
%doc LICENSE.txt
-%{dbdir}
+%dir %{dbdir}
+%{dbdir}/%{byteorder}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -66,6 +71,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2010/08/09 20:09:25 glen
+- build and package arch data only; rel 2
+
Revision 1.9 2010/07/15 14:07:55 glen
- up to 20100702
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xtables-geoip/xtables-geoip.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list