| 1 | Name: perl-Gtk2-ImageView |
|---|
| 2 | Version: 0.04 |
|---|
| 3 | Release: 2%{?_dist_release} |
|---|
| 4 | Summary: Perl bindings to the GtkImageView image viewer widget |
|---|
| 5 | |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | License: LGPLv3+ |
|---|
| 8 | URL: http://search.cpan.org/dist/Gtk2-ImageView/ |
|---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/R/RA/RATCLIFFE/Gtk2-ImageView-%{version}.tar.gz |
|---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 11 | |
|---|
| 12 | BuildRequires: gtk2-devel |
|---|
| 13 | BuildRequires: gtkimageview-devel >= 1.6.0 |
|---|
| 14 | BuildRequires: perl(ExtUtils::Depends), perl(ExtUtils::PkgConfig) |
|---|
| 15 | BuildRequires: perl(Glib) >= 1.163 |
|---|
| 16 | BuildRequires: perl(Glib::MakeHelper) |
|---|
| 17 | BuildRequires: perl(Cairo) >= 1.00 |
|---|
| 18 | BuildRequires: perl(ExtUtils::Depends) >= 0.2 |
|---|
| 19 | BuildRequires: perl(ExtUtils::PkgConfig) >= 1.03 |
|---|
| 20 | BuildRequires: perl(Gtk2) |
|---|
| 21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| 22 | Requires: perl(Glib) >= 1.163 |
|---|
| 23 | Requires: perl(Cairo) >= 1.00 |
|---|
| 24 | |
|---|
| 25 | Vendor: Project Vine |
|---|
| 26 | Distribution: Vine Linux |
|---|
| 27 | |
|---|
| 28 | %description |
|---|
| 29 | Perl bindings to the GtkImageView image viewer widget. Find out more about |
|---|
| 30 | GtkImageView at http://trac.bjourne.webfactional.com/. The Perl bindings follow |
|---|
| 31 | the C API very closely, and the C reference should be considered the canonical |
|---|
| 32 | documentation. |
|---|
| 33 | |
|---|
| 34 | %package devel |
|---|
| 35 | Summary: Development headers for %{name} |
|---|
| 36 | Group: Development/Libraries |
|---|
| 37 | Requires: %{name} = %{version}-%{release} |
|---|
| 38 | |
|---|
| 39 | %description devel |
|---|
| 40 | Development headers for %{name}. |
|---|
| 41 | |
|---|
| 42 | %prep |
|---|
| 43 | %setup -q -n Gtk2-ImageView-%{version} |
|---|
| 44 | |
|---|
| 45 | %build |
|---|
| 46 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
|---|
| 47 | %{__make} %{?_smp_mflags} |
|---|
| 48 | |
|---|
| 49 | %install |
|---|
| 50 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 51 | %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
|---|
| 52 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
|---|
| 53 | find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' |
|---|
| 54 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' |
|---|
| 55 | %{__chmod} -R u+w $RPM_BUILD_ROOT/* |
|---|
| 56 | |
|---|
| 57 | %check |
|---|
| 58 | # There are tests, but they need an X DISPLAY to run. Not worth it. |
|---|
| 59 | # make test |
|---|
| 60 | |
|---|
| 61 | %clean |
|---|
| 62 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 63 | |
|---|
| 64 | %files |
|---|
| 65 | %defattr(-,root,root,-) |
|---|
| 66 | %doc AUTHORS COPYING.LESSER README |
|---|
| 67 | %{perl_vendorarch}/auto/Gtk2/ImageView/ |
|---|
| 68 | %{perl_vendorarch}/Gtk2* |
|---|
| 69 | %exclude %{perl_vendorarch}/Gtk2/ImageView/Install/*.h |
|---|
| 70 | %{_mandir}/man3/*.3pm* |
|---|
| 71 | |
|---|
| 72 | %files devel |
|---|
| 73 | %defattr(-,root,root,-) |
|---|
| 74 | %{perl_vendorarch}/Gtk2/ImageView/Install/*.h |
|---|
| 75 | |
|---|
| 76 | %changelog |
|---|
| 77 | * Fri Apr 01 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.04-2 |
|---|
| 78 | - build with perl 5.12.3 |
|---|
| 79 | - add Vendor and Distribution tags |
|---|
| 80 | |
|---|
| 81 | * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.04-1 |
|---|
| 82 | - initial build for Vine Linux based on fedora development |
|---|
| 83 | |
|---|
| 84 | * Thu Jul 30 2009 Ralf Cors辿pius <corsepiu@fedoraproject.org> - 0.04-5 |
|---|
| 85 | - Fix mass rebuild breakdown: Add BR: perl(Glib::MakeHelper). |
|---|
| 86 | |
|---|
| 87 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-4 |
|---|
| 88 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 89 | |
|---|
| 90 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3 |
|---|
| 91 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 92 | |
|---|
| 93 | * Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-2 |
|---|
| 94 | - missing BuildRequires: perl(GTK2) |
|---|
| 95 | |
|---|
| 96 | * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-1 |
|---|
| 97 | - initial package for Fedora |
|---|