[perl-Geo-IP] Make the specfile more readable
Mathieu Bridon
bochecha at fedoraproject.org
Thu Oct 25 04:44:34 UTC 2012
commit a5093a930f52ff8392eb412f9ae7cc26ff2c3ce4
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Wed Oct 24 16:35:13 2012 +0800
Make the specfile more readable
This aligns stuff, removes trailing spaces, and reorders stuff in
the way it makes most sense to me.
perl-Geo-IP.spec | 39 ++++++++++++++++++++++++---------------
1 files changed, 24 insertions(+), 15 deletions(-)
---
diff --git a/perl-Geo-IP.spec b/perl-Geo-IP.spec
index 63a066c..ab69444 100644
--- a/perl-Geo-IP.spec
+++ b/perl-Geo-IP.spec
@@ -1,22 +1,27 @@
-Name: perl-Geo-IP
-Version: 1.38
-Release: 10%{?dist}
-Summary: Efficient Perl bindings for the GeoIP location database
-
-License: GPL+ or Artistic
-URL: http://search.cpan.org/dist/Geo-IP/
-Source0: http://search.cpan.org/CPAN/authors/id/B/BO/BORISZ/Geo-IP-%{version}.tar.gz
-Patch0: Geo-IP-1.28-yahoo-namelookuptest.diff
-Patch1: Geo-IP-1.28-example.diff
-BuildRequires: GeoIP-devel perl(ExtUtils::MakeMaker)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Name: perl-Geo-IP
+Summary: Efficient Perl bindings for the GeoIP location database
+Version: 1.38
+Release: 10%{?dist}
+URL: http://search.cpan.org/dist/Geo-IP/
+License: GPL+ or Artistic
+
+Source0: http://search.cpan.org/CPAN/authors/id/B/BO/BORISZ/Geo-IP-%{version}.tar.gz
+
+Patch0: Geo-IP-1.28-yahoo-namelookuptest.diff
+Patch1: Geo-IP-1.28-example.diff
+
+BuildRequires: GeoIP-devel
+BuildRequires: perl(ExtUtils::MakeMaker)
+
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This package contains Perl bindings for the GeoIP IP/hostname to
country/location/organization database.
This package requires Maxmind's GeoIP libraries but is often faster than other,
-similar modules.
+similar modules.
+
%prep
%setup -q -n Geo-IP-%{version}
@@ -24,14 +29,13 @@ similar modules.
%patch0 -p0 -b .namelookup
%patch1 -p0
+
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
# Avoid uneeded dependencies in the docs.
find example/ -type f | xargs chmod -x
-%check
-make test
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
@@ -41,6 +45,10 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
+%check
+make test
+
+
%files
%doc Changes INSTALL example
%{perl_vendorarch}/Geo
@@ -48,6 +56,7 @@ chmod -R u+w %{buildroot}/*
%{_mandir}/man3/Geo::IP*.3*
%{_mandir}/man3/Geo::Mirror.3*
+
%changelog
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.38-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list