diff --git a/.cvsignore b/.cvsignore index e69de29..100dd89 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Cairo-0.03.tar.gz diff --git a/perl-Cairo.spec b/perl-Cairo.spec new file mode 100644 index 0000000..bf5d679 --- /dev/null +++ b/perl-Cairo.spec @@ -0,0 +1,69 @@ +# +# Rebuild option: +# +# --with testsuite - run the test suite +# + +Name: perl-Cairo +Version: 0.03 +Release: 2%{?dist} +Summary: Perl interface to the cairo library + +Group: Development/Libraries +License: LGPL +URL: http://search.cpan.org/dist/Cairo/ +Source0: http://www.cpan.org/authors/id/T/TS/TSCH/Cairo-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl(ExtUtils::Depends), perl(ExtUtils::PkgConfig) +BuildRequires: cairo-devel >= 1.0.0 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Cairo provides Perl bindings for the vector graphics library cairo. +It supports multiple output targets, including the X Window Systems, +PDF, and PNG. Cairo produces identical output on all those targets +and makes use of hardware acceleration wherever possible. + + +%prep +%setup -q -n Cairo-%{version} +chmod 644 examples/simple.pl + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +%{?_with_testsuite:make test} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog LICENSE NEWS README TODO examples/ +%{perl_vendorarch}/Cairo* +%{perl_vendorarch}/auto/Cairo/ +%{_mandir}/man3/*.3* + + +%changelog +* Tue Apr 18 2006 Jose Pedro Oliveira - 0.03-2 +- Disabled the test suite as it fails in mock. + +* Sun Mar 19 2006 Jose Pedro Oliveira - 0.03-1 +- First build. diff --git a/sources b/sources index e69de29..3264f63 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6ad0ab39eb8f56272373a9ea4515f37a Cairo-0.03.tar.gz