3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Perl extensions for CDK
7 Summary(pl.UTF-8): Rozszerzenie Perla dla CDK
11 License: distributable
12 Group: Development/Languages/Perl
13 Source0: ftp://ftp.invisible-island.net/cdk/cdk-perl-%{version}.tgz
14 # Source0-md5: 28bb44e50b15c94f0f6f6e86c5a69c96
15 URL: http://invisible-island.net/cdk/
16 BuildRequires: cdk-devel >= 5
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This is the Perl5 extension to the CDK library written by Mike Glover.
23 All the copyright notices from the CDK C distribution also apply to
26 %description -l pl.UTF-8
27 To jest rozszerzenie Perla do biblioteki CDK. Wszystkie copyrighty z
28 dystrybucji CDK dotyczą także tego rozszerzenia.
31 %setup -q -n cdk-perl-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 %{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
50 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc README CHANGES demos fulldemo
58 %{perl_vendorarch}/Cdk.pm
59 %{perl_vendorarch}/Cdk
60 %dir %{perl_vendorarch}/auto/Cdk
61 %attr(755,root,root) %{perl_vendorarch}/auto/Cdk/Cdk.so
62 %{perl_vendorarch}/auto/Cdk/autosplit.ix
63 %dir %{_examplesdir}/%{name}-%{version}
64 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*