]> git.pld-linux.org Git - packages/perl-Data-Flow.git/blobdiff - perl-Data-Flow.spec
- BR: perl-devel; do not BR: perl
[packages/perl-Data-Flow.git] / perl-Data-Flow.spec
index 783be8e4baebd9acabd245517c5f0ac247adaf47..12a1f451520d34468336e990e3ecf455e33fee6d 100644 (file)
@@ -1,54 +1,67 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       Data-Flow perl module
-Summary(pl):   Modu³ perla Data-Flow
+%define                pdir    Data
+%define                pnam    Flow
+Summary:       Data::Flow Perl module
+Summary(cs):   Modul Data::Flow pro Perl
+Summary(da):   Perlmodul Data::Flow
+Summary(de):   Data::Flow Perl Modul
+Summary(es):   Módulo de Perl Data::Flow
+Summary(fr):   Module Perl Data::Flow
+Summary(it):   Modulo di Perl Data::Flow
+Summary(ja):   Data::Flow Perl ¥â¥¸¥å¡¼¥ë
+Summary(ko):   Data::Flow ÆÞ ¸ðÁÙ
+Summary(no):   Perlmodul Data::Flow
+Summary(pl):   Modu³ Perla Data::Flow
+Summary(pt):   Módulo de Perl Data::Flow
+Summary(pt_BR):        Módulo Perl Data::Flow
+Summary(ru):   íÏÄÕÌØ ÄÌÑ Perl Data::Flow
+Summary(sv):   Data::Flow Perlmodul
+Summary(uk):   íÏÄÕÌØ ÄÌÑ Perl Data::Flow
+Summary(zh_CN):        Data::Flow Perl Ä£¿é
 Name:          perl-Data-Flow
 Version:       0.05
-Release:       3
+Release:       11
 License:       GPL
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Data/Data-Flow-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 5.6
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Data-Flow - Perl extension for simple-minded recipe-controlled build
+Data::Flow - Perl extension for simple-minded recipe-controlled build
 of data.
 
 %description -l pl
-Modu³ perla Data-Flow.
+Modu³ perla Data::Flow.
 
 %prep
-%setup -q -n Data-Flow-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
-make
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor 
+%{__make}
+
+%{!?_without_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Data/Flow
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        Changes
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes.gz
-
-%{perl_sitelib}/Data/Flow.pm
-%{perl_sitearch}/auto/Data/Flow
-
+%doc Changes
+%{perl_vendorlib}/Data/Flow.pm
+%dir %{perl_vendorlib}/auto/Data/Flow
+%{perl_vendorlib}/auto/Data/Flow/autosplit.ix
 %{_mandir}/man3/*
This page took 0.075831 seconds and 4 git commands to generate.