]> git.pld-linux.org Git - packages/perl-Crypt-IDEA.git/blobdiff - perl-Crypt-IDEA.spec
- fixed License(!!!) and pl description, added COPYRIGHT to doc; release 6
[packages/perl-Crypt-IDEA.git] / perl-Crypt-IDEA.spec
index abc5cadf9bc09b5966434d2af5ed30b3cabbf396..80c9d30417117f6535c77775f2e4052cb0502c8e 100644 (file)
@@ -1,59 +1,47 @@
 %include       /usr/lib/rpm/macros.perl
-Summary:       Crypt-IDEA perl module
-Summary(pl):   Modu³ perla Crypt-IDEA
+%define        pdir    Crypt
+%define        pnam    IDEA
+Summary:       Crypt::IDEA perl module
+Summary(pl):   Modu³ perla Crypt::IDEA
 Name:          perl-Crypt-IDEA
 Version:       1.01
-Release:       1
-License:       GPL
+Release:       6
+License:       BSD-like (see COPYRIGHT)
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Crypt/Crypt-IDEA-%{version}.tar.gz
-Patch0:                perl-Crypt-IDEA-paths.patch
+Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+Patch0:                %{name}-paths.patch
+Patch1:                %{name}-5.6.0.patch
+BuildRequires: perl >= 5.6
 BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Crypt-IDEA - Perl interface to IDEA block cipher.
+Crypt::IDEA - Perl interface to IDEA block cipher.
 
 %description -l pl
-Crypt-IDEA - modu³ wspomagaj±cy algorytm IDEA.
+Crypt::IDEA - modu³ obs³uguj±cy algorytm szyfrowania IDEA.
 
 %prep
-%setup -q -n Crypt-IDEA-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 %patch0 -p0
+%patch1 -p1
 
 %build
 perl Makefile.PL
-%{__make} OPTIMIZE="$RPM_OPT_FLAGS"
+%{__make} OPTIMIZE="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Crypt/IDEA/*.so
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Crypt/IDEA
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* 
-        
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-
+%doc COPYRIGHT
 %{perl_sitearch}/Crypt/IDEA.pm
-
 %dir %{perl_sitearch}/auto/Crypt/IDEA
-%{perl_sitearch}/auto/Crypt/IDEA/.packlist
 %{perl_sitearch}/auto/Crypt/IDEA/IDEA.bs
 %attr(755,root,root) %{perl_sitearch}/auto/Crypt/IDEA/IDEA.so
-
 %{_mandir}/man3/*
This page took 0.069768 seconds and 4 git commands to generate.