%include /usr/lib/rpm/macros.perl %define pdir Inline Summary: Inline perl module Summary(pl): Moduł perla Inline Name: perl-Inline Version: 0.44 Release: 2 Epoch: 1 License: Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: perl-Digest-MD5 >= 2.09 BuildRequires: perl-Parse-RecDescent >= 1.78 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # false requires found by rpm %define _noautoreq 'perl(of)' %description Inline.pm - Write Perl subroutines in other programming languages. %description -l pl Moduł Inline.pm - pozwala tworzyć procedury Perla w innych językach programowania. %package C Summary: Inline::C perl module Summary(pl): Moduł perla Inline::C Group: Development/Languages/Perl Requires: %{name} = %{version} Requires: gcc %description C Inline::C - Write Perl subroutines in C. %description C -l pl Moduł Inline::C - pozwalający pisać funkcje Perla w C. %prep %setup -q -n %{pdir}-%{version} %build echo "y" | perl Makefile.PL \ INSTALLDIRS=vendor %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Inline.pm %{perl_vendorlib}/Inline/denter.pm %{perl_vendorlib}/Inline/Foo.pm %{perl_vendorlib}/Inline/MakeMaker.pm %{perl_vendorlib}/auto/Inline %{_mandir}/man3/Inline.3pm* %{_mandir}/man3/Inline-*.3pm* %files C %defattr(644,root,root,755) %doc C/Changes C/README %{perl_vendorlib}/Inline/C.pm %{perl_vendorlib}/Inline/C %{_mandir}/man3/Inline::C*.3pm*