|
@@ -1,6 +1,6 @@
|
|
%define module Image-Size
|
|
%define module Image-Size
|
|
%define name perl-%{module}
|
|
%define name perl-%{module}
|
|
-%define version 3.2
|
|
|
|
|
|
+%define version 3.232
|
|
%define release 1%{_dist_release}
|
|
%define release 1%{_dist_release}
|
|
|
|
|
|
Name: %{name}
|
|
Name: %{name}
|
|
@@ -10,19 +10,17 @@ Summary: Read the dimensions of an image in several popular formats
|
|
License: Artistic and GPL
|
|
License: Artistic and GPL
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/%{module}
|
|
URL: http://search.cpan.org/dist/%{module}
|
|
-Source0: http://www.cpan.org/modules/by-module/Image/%{module}-%{version}.tar.gz
|
|
|
|
-Source1: Build.PL
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
+Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJRAY/%{module}-%{version}.tar.gz
|
|
|
|
+
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
-BuildRequires: perl(Module::Build)
|
|
|
|
-BuildRequires: perl(Compress::Zlib)
|
|
|
|
-BuildRequires: perl(Image::Magick)
|
|
|
|
-BuildRequires: perl(Test::Pod)
|
|
|
|
-BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
|
|
+BuildRequires: perl(Compress::Zlib)
|
|
|
|
+BuildRequires: perl(File::Spec) >= 0.8
|
|
|
|
+BuildRequires: perl(Module::Build) >= 0.4
|
|
|
|
+BuildRequires: perl(Test::More) >= 0.80
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: perl(Compress::Zlib)
|
|
Requires: perl(Compress::Zlib)
|
|
-Requires: perl(Image::Magick)
|
|
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -34,8 +32,6 @@ IMG directives.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{module}-%{version}
|
|
%setup -q -n %{module}-%{version}
|
|
-# Upstream forgot Build.PL
|
|
|
|
-cp %{SOURCE1} .
|
|
|
|
|
|
|
|
pushd lib/Image/
|
|
pushd lib/Image/
|
|
iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,}
|
|
iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,}
|
|
@@ -44,18 +40,20 @@ popd
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{__perl} Build.PL installdirs=vendor
|
|
|
|
-./Build CFLAGS="%{optflags}"
|
|
|
|
-
|
|
|
|
|
|
+%{__perl} Makefile.PL INSTALLDIRS="vendor"
|
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
-./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
|
|
+%{__make} pure_install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
-%check
|
|
|
|
-./Build test
|
|
|
|
|
|
+%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
+%check
|
|
|
|
+%{__make} test
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -66,10 +64,15 @@ rm -rf %{buildroot}
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
%{_mandir}/*/*
|
|
%{_mandir}/*/*
|
|
%{perl_vendorlib}/Image
|
|
%{perl_vendorlib}/Image
|
|
-%{perl_vendorlib}/auto/Image
|
|
|
|
|
|
+#{perl_vendorlib}/auto/Image
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Dec 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 3.232-1
|
|
|
|
+- updated to 3.232
|
|
|
|
+- dropt Source1 which doesn't need any more
|
|
|
|
+- built with perl 5.16.3
|
|
|
|
+
|
|
* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.2-1
|
|
* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.2-1
|
|
- updated to 3.2; spec revamped based on Fedora's 3.2-8
|
|
- updated to 3.2; spec revamped based on Fedora's 3.2-8
|
|
|
|
|