Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-updates-src > by-pkgid > 3a386ff382bad4ef535c7873bd320183 > files > 5

graphicsmagick-1.3.5-3.2mdv2009.1.src.rpm

%define build_modules 1
%{?_with_modules: %global build_modules 1}

%define enable_jasper   1
%{?_with_jasper: %global enable_jasper 1}

%define enable_graphwiz 1
%{?_with_graphwiz: %global enable_graphwiz 1}

%define Name		GraphicsMagick
%define libname         %mklibname %name 3
%define libwandname	%mklibname graphicsmagickwand 2
%define develname	%mklibname %name -d
%define version         1.3.5
%define qlev            Q8

Summary:	An X application for displaying and manipulating images
Name:		graphicsmagick
Version:	%{version}
%define subrel 2
Release:	%mkrel 3
License:	GPLv2+
Group:		Graphics
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL:		http://www.graphicsmagick.org/
Source0:	http://kent.dl.sourceforge.net/sourceforge/graphicsmagick/%{Name}-%{version}.tar.lzma
Patch0: graphicsmagick-linkage_fix.diff
Patch1: GraphicsMagick-1.2.5-cve-2009-1882.patch
Patch2:		GraphicsMagick-1.3.7-CVE-2009-3736.diff
BuildRequires:  x11-proto-devel
BuildRequires:  perl-devel
BuildRequires:	freetype2-devel
Buildrequires:	tiff-devel
BuildRequires:	png-devel
BuildRequires:	jpeg-devel
BuildRequires:	jasper-devel
BuildRequires:	libwmf-devel
BuildRequires:	zlib-devel
BuildRequires:	bzip2-devel
BuildRequires:	libxml2-devel
BuildRequires:	lcms-devel
BuildRequires:	libgs-devel
BuildRequires:	jbigkit-devel

%description
GraphicsMagick is the swiss army knife of image processing. It 
provides a robust collection of tools and libraries which support 
reading, writing, and manipulating an image in over 88 major formats 
including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, 
SVG, and TIFF. GraphicsMagick supports huge images on systems that 
support large files, and has been tested with gigapixel-size images. 
GraphicsMagick can create new images on the fly, making it suitable 
for building dynamic Web applications. GraphicsMagick may be used to 
resize, rotate, sharpen, color reduce, or add special effects to an 
image and save the result in the same or differing image format. 
Image processing operations are available from the command line, as 
well as through C, C++, Perl, or Windows COM programming interfaces. 
Extensions are available from third-parties to support programming in 
Python, Tcl, and Ruby. With some modification, language extensions for 
ImageMagick may be used.

%files
%defattr(-,root,root)
%doc ChangeLog *.txt
%{_bindir}/gm
%dir %{_libdir}/GraphicsMagick-%{version}/config
%{_libdir}/GraphicsMagick-%{version}/config/*.mgk
%dir %{_datadir}/GraphicsMagick-%{version}/config
%{_datadir}/GraphicsMagick-%{version}/config/*.mgk
%if %build_modules
%dir %{_libdir}/%{Name}-%{version}/modules-%{qlev}
%{_libdir}/%{Name}-%{version}/modules-%{qlev}/filters
%dir %{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders
%{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders/*.so
%{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders/*.la
%{_libdir}/%{Name}-%{version}/modules-%{qlev}/coders/*.a
%endif
%{_mandir}/man1/GraphicsMagick++-config.1.*
%{_mandir}/man1/GraphicsMagick-config.1.*
%{_mandir}/man1/GraphicsMagickWand-config.1.*
%{_mandir}/man1/gm.1.*
%{_mandir}/man4/miff.4.*
%{_mandir}/man5/quantize.5.*

#--------------------------------------------------------------

%package -n     %{libname}
Summary:        %Name libraries
Group:          System/Libraries

%description -n %{libname}
This package contains the libraries needed to run programs dynamically
linked with ImageMagick libraries.

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files -n %{libname}
%defattr(-,root,root,755)
%{_libdir}/libGraphicsMagick++.so.3*
%{_libdir}/libGraphicsMagick.so.3*

#--------------------------------------------------------------

%package -n     %{libwandname}
Summary:        %Name libraries
Group:          System/Libraries

%description -n %{libwandname}
This package contains the libraries needed to run programs dynamically
linked with ImageMagick libraries.

%if %mdkversion < 200900
%post -n %{libwandname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libwandname} -p /sbin/ldconfig
%endif

%files -n %{libwandname}
%defattr(-,root,root,755)
%{_libdir}/libGraphicsMagickWand.so.2*

#--------------------------------------------------------------

%package -n     %{develname}
Summary: Static libraries and header files for %{Name} app development
Group: Development/C
Provides: %{name}-devel = %{version}-%{release}
Provides: %{Name}-devel = %{version}-%{release}
Obsoletes: %mklibname -d graphicsmagick 1.1.10
Requires:  %{libname} = %{version}
Requires: %{libwandname} = %{version}
Requires:  jbig-devel
%if %{enable_jasper}
Requires: jasper-devel
%endif
%if %{enable_graphwiz}
Requires: graphviz-devel
%define _requires_exceptions devel(libcdt)\\|devel(libcircogen)\\|devel(libcommon)\\|devel(libdotgen)\\|devel(libdotneato)\\|devel(libfdpgen)\\|devel(libgraph)\\|devel(libgvrender)\\|devel(libneatogen)\\|devel(libpack)\\|devel(libpathplan)\\|devel(libtwopigen)\\|devel(libgvc)\\|devel(libgvgd)
%endif

%description -n %{develname}
If you want to create applications that will use ImageMagick code or
APIs, you'll need to install these packages as well as
ImageMagick. These additional packages aren't necessary if you simply
want to use ImageMagick, however.

imagemagick-devel is an addition to ImageMagick which includes static
libraries and header files necessary to develop applications.

%files -n %{develname}
%defattr(-,root,root)
%{_bindir}/GraphicsMagick++-config
%{_bindir}/GraphicsMagick-config
%{_bindir}/GraphicsMagickWand-config
%dir %{_includedir}/GraphicsMagick
%{_includedir}/GraphicsMagick/Magick++.h
%dir %{_includedir}/GraphicsMagick/magick
%{_includedir}/GraphicsMagick/magick/*.h
%dir %{_includedir}/GraphicsMagick/Magick++
%{_includedir}/GraphicsMagick/Magick++/*.h
%dir %{_includedir}/GraphicsMagick/wand
%{_includedir}/GraphicsMagick/wand/*.h
%{_libdir}/*.a
%attr(644,root,root) %{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#--------------------------------------------------------------

%package -n     perl-Graphics-Magick
Summary:        Libraries and modules for access to %Name from perl
Group:          Development/Perl
Requires:       %{name} = %{version}
%if %{enable_graphwiz}
Requires:       graphviz
%endif

%description -n perl-Graphics-Magick
This is the %Name perl support package. It includes perl modules
and support files for access to ImageMagick library from perl.

%files -n perl-Graphics-Magick
%defattr(-,root,root)
%{_mandir}/man3*/*::*.3pm*
%{perl_vendorarch}/Graphics
%{perl_vendorarch}/auto

#--------------------------------------------------------------

%package        doc
Summary:        %{name} Documentation
Group:          Books/Other

%description    doc
This package contains HTML/PDF documentation of %{name}.


%files doc
%defattr(-,root,root)
%_datadir/doc/GraphicsMagick

#--------------------------------------------------------------

%prep
%setup -q -n %{Name}-%{version}
%patch0 -p0 -b .linkage_fix
%patch1 -p1 -b .cve-2009-1882
%patch2 -p0 -b .CVE-2009-3736

%build
%define Werror_cflags %nil
%configure2_5x \
    --enable-fast-install \
    --disable-ltdl-install \
    --without-dps \
%if %build_modules
    --with-modules \
%else
    --without-modules \
%endif
    --enable-shared \
    --with-pic \
%if %{enable_jasper}
    --with-jp2 \
%else
    --without-jp2 \
%endif
    --with-perl-options="INSTALLDIRS=vendor" 

%make

%install
rm -rf %{buildroot}

%makeinstall_std
rm -f %buildroot%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}

%clean
rm -rf %{buildroot}


%changelog
* Sun Nov 22 2009 Oden Eriksson <oeriksson@mandriva.com> 1.3.5-3.2mdv2009.1
- P2: security fix for CVE-2009-3736

* Thu Oct 08 2009 Eugeni Dodonov <eugeni@mandriva.com> 1.3.5-3.1mdv2009.1
- P3: security fix for CVE-2009-1882

* Wed Apr 08 2009 Helio Chissini de Castro <helio@mandriva.com> 1.3.5-3mdv2009.1
+ Revision: 365216
- Install package required wrong namiing to x86_64 libs

* Sat Apr 04 2009 Funda Wang <fundawang@mandriva.org> 1.3.5-2mdv2009.1
+ Revision: 364040
- add more BRs

* Fri Jan 30 2009 Funda Wang <fundawang@mandriva.org> 1.3.5-1mdv2009.1
+ Revision: 335524
- New version 1.3.5

* Sat Jan 17 2009 Funda Wang <fundawang@mandriva.org> 1.3.4-1mdv2009.1
+ Revision: 330710
- disable format check
- New version 1.3.4

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Thu Dec 11 2008 Funda Wang <fundawang@mandriva.org> 1.3.3-1mdv2009.1
+ Revision: 312645
- gcc patch not needed
- New version 1.3.3

* Sun Nov 30 2008 Funda Wang <fundawang@mandriva.org> 1.3.2-1mdv2009.1
+ Revision: 308490
- New version 1.3.2

* Tue Sep 02 2008 Oden Eriksson <oeriksson@mandriva.com> 1.2.5-2mdv2009.0
+ Revision: 279103
- fix build

* Sun Jul 27 2008 Funda Wang <fundawang@mandriva.org> 1.2.5-1mdv2009.0
+ Revision: 250518
- update to new version 1.2.5

* Sun Jul 06 2008 Funda Wang <fundawang@mandriva.org> 1.2.4-1mdv2009.0
+ Revision: 232196
- New version 1.2.4

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Sun Jun 08 2008 Funda Wang <fundawang@mandriva.org> 1.2.3-1mdv2009.0
+ Revision: 216863
- New version 1.2.3

* Thu May 29 2008 Funda Wang <fundawang@mandriva.org> 1.2.2-1mdv2009.0
+ Revision: 213102
- New version 1.2.2

* Wed May 21 2008 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-2mdv2009.0
+ Revision: 209716
- added a gcc43 patch from fedora

* Wed May 07 2008 Funda Wang <fundawang@mandriva.org> 1.2.1-1mdv2009.0
+ Revision: 203086
- fix file list
- New version 1.2.1

* Fri May 02 2008 Funda Wang <fundawang@mandriva.org> 1.2-1mdv2009.0
+ Revision: 199934
- New version 1.2

  + Thierry Vignaud <tvignaud@mandriva.com>
    - fix no-buildroot-tag

* Sun Feb 03 2008 Funda Wang <fundawang@mandriva.org> 1.1.10-3mdv2008.1
+ Revision: 161611
- split out libs to reflect the actual soname

* Mon Jan 21 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.1.10-2mdv2008.1
+ Revision: 155648
- rebuild for new perl

* Fri Dec 21 2007 Nicolas Lécureuil <neoclust@mandriva.org> 1.1.10-1mdv2008.1
+ Revision: 136151
- Fix File list
- import graphicsmagick