From: Adam Gołębiowski Date: Thu, 12 Jun 2003 00:09:36 +0000 (+0000) Subject: - initial import X-Git-Tag: auto/ac/perl-Geo-IP-1_21-0_1~3 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=64447d6b16df452478da668167feb47b7e57028f;p=packages%2Fperl-Geo-IP.git - initial import - not finished yet (sleep buffer underrun!) Changed files: perl-Geo-IP.spec -> 1.1 --- 64447d6b16df452478da668167feb47b7e57028f diff --git a/perl-Geo-IP.spec b/perl-Geo-IP.spec new file mode 100644 index 0000000..21a4ad7 --- /dev/null +++ b/perl-Geo-IP.spec @@ -0,0 +1,58 @@ +# +# Conditional build: +# _without_tests - do not perform "make test" +# +# ToDo: +# - make the package build even with tests +# - summary / descriptions +%include /usr/lib/rpm/macros.perl +%define pdir Geo +%define pnam IP +Summary: - +Summary(pl): - +Name: perl-%{pdir}-%{pnam} +Version: 1.15 +Release: 0.1 +License: GPL +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +BuildRequires: perl-devel >= 5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description + +%description -l pl + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +# Don't use pipes here: they generally don't work. Apply a patch. +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor \ + LIBS="-L/usr/lib" \ + INC='-I/usr/include' +%{__make} +# if module isn't noarch, use: +# %{__make} OPTIMIZE="%{rpmcflags}" + +%{!?_without_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +# use macros: +#%%{perl_vendorlib}/... +%{perl_vendorarch}/* +%{_mandir}/man3/*