]> git.pld-linux.org Git - packages/perl-Apache-Admin-Config.git/blobdiff - perl-Apache-Admin-Config.spec
- fixed perl-devel BR
[packages/perl-Apache-Admin-Config.git] / perl-Apache-Admin-Config.spec
index 43269b00d9a1367b92d4278a1cd49cf88688502c..13ce2d0ea5aaeb51b79e9b6643d664e3ce6fbbcf 100644 (file)
@@ -1,19 +1,21 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests   # don't perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    Apache
 %define        pnam    Admin-Config
-Summary:       Apache::Admin::Config - Manipulate Apache configuration files
+Summary:       Apache::Admin::Config - manipulate Apache configuration files
 Summary(pl):   Apache::Admin::Config - manipulowanie plikami konfiguracyjnymi Apache'a
 Name:          perl-Apache-Admin-Config
 Version:       0.91
-Release:       1
+Release:       2
 License:       LGPL v2.1+
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
-BuildRequires: rpm-perlprov >= 3.0.3-26
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: eb3f330896a0a64137b2b5174649f40e
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,15 +33,17 @@ ani skracania linii.
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 # I don't get why it's needed... -- radek
 install -d $RPM_BUILD_ROOT%{_mandir}/man3
@@ -50,6 +54,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir %{perl_sitelib}/Apache/Admin
-%{perl_sitelib}/Apache/Admin/*.pm
+%dir %{perl_vendorlib}/Apache/Admin
+%{perl_vendorlib}/Apache/Admin/*.pm
 %{_mandir}/man3/*
This page took 0.076088 seconds and 4 git commands to generate.