| 1 | %define real_name SVG |
|---|
| 2 | |
|---|
| 3 | Summary: Perl extension for generating Scalable Vector Graphics (SVG) documents |
|---|
| 4 | Name: perl-SVG |
|---|
| 5 | Version: 2.50 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | License: distributable |
|---|
| 8 | Group: Development/Libraries |
|---|
| 9 | URL: http://search.cpan.org/dist/SVG/ |
|---|
| 10 | |
|---|
| 11 | Source: http://www.cpan.org/modules/by-module/SVG/SVG-%{version}.tar.gz |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | |
|---|
| 14 | BuildArch: noarch |
|---|
| 15 | BuildRequires: perl >= 0:5.00503 |
|---|
| 16 | Requires: perl >= 0:5.00503 |
|---|
| 17 | |
|---|
| 18 | Vendor: Project Vine |
|---|
| 19 | Distribution: Vine Linux |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | Perl extension for generating Scalable Vector Graphics (SVG) documents. |
|---|
| 23 | |
|---|
| 24 | %prep |
|---|
| 25 | %setup -n %{real_name}-%{version} |
|---|
| 26 | |
|---|
| 27 | %build |
|---|
| 28 | CFLAGS="%{optflags}" %{__perl} Makefile.PL \ |
|---|
| 29 | PREFIX="%{buildroot}%{_prefix}" \ |
|---|
| 30 | INSTALLDIRS="vendor" |
|---|
| 31 | %{__make} %{?_smp_mflags} |
|---|
| 32 | |
|---|
| 33 | %install |
|---|
| 34 | %{__rm} -rf %{buildroot} |
|---|
| 35 | %makeinstall |
|---|
| 36 | |
|---|
| 37 | ### Clean up buildroot (noarch) |
|---|
| 38 | %{__rm} -rf %{buildroot}%{perl_archlib} \ |
|---|
| 39 | %{buildroot}%{perl_vendorarch} |
|---|
| 40 | |
|---|
| 41 | ### Clean up buildroot (arch) |
|---|
| 42 | %{__rm} -rf %{buildroot}%{perl_archlib} \ |
|---|
| 43 | %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist |
|---|
| 44 | |
|---|
| 45 | %check |
|---|
| 46 | make test |
|---|
| 47 | |
|---|
| 48 | %clean |
|---|
| 49 | %{__rm} -rf %{buildroot} |
|---|
| 50 | |
|---|
| 51 | %files |
|---|
| 52 | %defattr(-, root, root, 0755) |
|---|
| 53 | %doc Changes MANIFEST README examples/ |
|---|
| 54 | %doc %{_mandir}/man?/* |
|---|
| 55 | %{perl_vendorlib}/* |
|---|
| 56 | |
|---|
| 57 | %changelog |
|---|
| 58 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.50-1 |
|---|
| 59 | - new upstream release |
|---|
| 60 | - add Vendor and Distribution tags |
|---|
| 61 | |
|---|
| 62 | * Fri Jul 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.33-1 |
|---|
| 63 | - rebuild |
|---|
| 64 | - applied new versioning policy |
|---|
| 65 | |
|---|
| 66 | * Sun Sep 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.33-0vl1 |
|---|
| 67 | - initial build for Vine Linux |
|---|
| 68 | |
|---|
| 69 | * Sat Nov 5 2005 Dries Verachtert <dries@ulyssis.org> - 2.33-1 - 3685/dries |
|---|
| 70 | - Updated to release 2.33. |
|---|
| 71 | |
|---|
| 72 | * Tue Apr 13 2004 Dag Wieers <dag@wieers.com> - 2.28-1 |
|---|
| 73 | - Initial package. (using DAR) |
|---|