]> git.pld-linux.org Git - packages/perl-CGI-Session.git/blobdiff - perl-CGI-Session.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-CGI-Session.git] / perl-CGI-Session.spec
index 30b68e8b24fd08350583cefbf86a696dd5ed5011..b948c844c3c7e8e1911c09c27ac1afa05710a7f1 100644 (file)
@@ -1,24 +1,28 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    CGI
-%define        pnam    Session
-Summary:       CGI::Session - Persistent storage of complex data in CGI
-Summary(pl):   CGI::Session - Trwa³e przechowywanie z³o¿onych struktur danych w CGI
+%bcond_with    tests   # do not perform "make test"
+#
+%define                pdir    CGI
+%define                pnam    Session
+Summary:       CGI::Session - persistent storage of complex data in CGI
+Summary(pl.UTF-8):     CGI::Session - trwałe przechowywanie złożonych struktur danych w CGI
 Name:          perl-CGI-Session
-Version:       3.11
+Version:       4.48
 Release:       1
-License:       GPL/Artistic
+# same as perl
+License:       GPL v1+ or Artistic
 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
-%if %{?_without_tests:0}%{!?_without_tests:1}
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 7f8983aaeb92a0ba77eca8bca6d8d43a
+URL:           http://search.cpan.org/dist/CGI-Session/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
 BuildRequires: perl-Digest-MD5
 BuildRequires: perl-DB_File
 BuildRequires: perl-FreezeThaw
-BuildRequires: perl-Storable
+BuildRequires: perl-CGI-Simple
+BuildRequires: perl-YAML-Syck
 %endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,23 +31,25 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 CGI::Session is Perl5 library that provides an easy persistent session
 management system across HTTP requests.
 
-%description -l pl
-CGI::Session jest bibliotek± dla Perla5, udostêpniaj±c± ³atwy system
-zarz±dzania trwa³± sesj± pomiêdzy zapytaniami HTTP.
+%description -l pl.UTF-8
+CGI::Session jest biblioteką dla Perla5, udostępniającą łatwy system
+zarządzania trwałą sesją pomiędzy zapytaniami HTTP.
 
 %prep
 %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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -51,7 +57,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes
-%{perl_sitelib}/%{pdir}/*.pm
-%{perl_sitelib}/%{pdir}/%{pnam}
-%{perl_sitelib}/auto/%{pdir}/%{pnam}
+%{perl_vendorlib}/CGI/*.pm
+%{perl_vendorlib}/CGI/Session
 %{_mandir}/man3/*
This page took 0.052228 seconds and 4 git commands to generate.