#
# 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
License: LGPL v2.1+
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
+# 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)
%build
%{__perl} Makefile.PL \
- INSTALLDIRS=vendor
+ 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