Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aginies
perl-Image-Scale
perl-Image-Scale.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Image-Scale.spec of Package perl-Image-Scale
# # spec file for package perl-Image-Scale (Version 0.08) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # See also http://wiki.opensuse.org/openSUSE:Packaging_Perl # norootforbuild Name: perl-Image-Scale Version: 0.08 Release: 0%{?dist} License: GPL-1.0 or GPL-2.0 or GPL-3.0 Group: Development/Libraries/Perl Summary: Fast, high-quality fixed-point image resizing Source: http://search.cpan.org/CPAN/authors/id/A/AG/AGRUNDMA/Image-Scale-%{version}.tar.gz Patch0: png_memecp_fix.patch Url: http://search.cpan.org/dist/Image-Scale BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl BuildRequires: perl(Test::NoWarnings) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: libjpeg62-devel %if 0%{?suse_version} < 1230 BuildRequires: libpng14-devel BuildRequires: libpng14-compat-devel %else BuildRequires: libpng16-devel BuildRequires: libpng16-compat-devel %endif #BuildRequires: giflib-devel %description This module implements several resizing algorithms with a focus on low overhead, speed and minimal features. Algorithms available are: GD's copyResampled (floating-point) GD's copyResampled fixed-point (useful on embedded devices/NAS devices) GraphicsMagick's assortment of resize filters (floating-point) GraphicsMagick's Triangle filter in fixed- pointSupported image formats include JPEG, GIF, PNG, and BMP for input, and JPEG and PNG for output. %prep %setup -q -n Image-Scale-%{version} %patch0 -p1 %build if [ -f Build.PL ]; then %{__perl} Build.PL --installdirs vendor else [ -f Makefile.PL ] || exit 2 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" fi if [ -f Build.PL ]; then ./Build build flags=%{?_smp_mflags} else %{__make} %{?_smp_mflags} fi %install if [ -f Build.PL ]; then ./Build pure_install --destdir %{buildroot} else %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} fi # FIXME: use ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 # maybe then we would not need to remove the .packlist files :-) find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %perl_process_packlist %perl_gen_filelist %check echo >> MANIFEST.SKIP # ensure trailing newline echo >> MANIFEST.SKIP ^%{name}\\.files\$ if [ -f Build.PL ]; then ./Build test else %{__make} test fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files %defattr(-,root,root,-) %doc README Changes %changelog * Tue Sep 18 2012 %{packager} - initial SUSE packaging - generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor