#
# Conditional build:
-# _without_tests - do not 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(pl): Apache::Admin::Config - manipulowanie plikami konfiguracyjnymi Apache'a
+%bcond_without tests # don't perform "make test"
+#
+%define pdir Apache
+%define pnam Admin-Config
+Summary: Apache::Admin::Config - manipulate Apache configuration files
+Summary(pl.UTF-8): Apache::Admin::Config - manipulowanie plikami konfiguracyjnymi Apache'a
Name: perl-Apache-Admin-Config
-Version: 0.91
-Release: 2
+Version: 0.95
+Release: 1
License: LGPL v2.1+
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl-devel >= 5.6
+# Source0-md5: 0d0ce861770d52adf13e93832cdb08ac
+URL: http://search.cpan.org/dist/Apache-Admin-Config/
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
like configuration files without modifying comments, identation, or
truncated lines.
-%description -l pl
-Apache::Admin::Config udostêpnia obiektowy interfejs do obs³ugi plików
-konfiguracyjnych w stylu Apache bez modyfikowania komentarzy, wciêæ
+%description -l pl.UTF-8
+Apache::Admin::Config udostępnia obiektowy interfejs do obsługi plików
+konfiguracyjnych w stylu Apache bez modyfikowania komentarzy, wcięć
ani skracania linii.
%prep
%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
-
-# I don't get why it's needed... -- radek
-install -d $RPM_BUILD_ROOT%{_mandir}/man3
-/usr/bin/pod2man lib/Apache/Admin/Config.pm > $RPM_BUILD_ROOT%{_mandir}/man3/Apache::Admin::Config.3pm
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc Changes UPGRADE-0.10
%dir %{perl_vendorlib}/Apache/Admin
%{perl_vendorlib}/Apache/Admin/*.pm
%{_mandir}/man3/*