]> granicus.if.org Git - imagemagick/blobdiff - ImageMagick.spec.in
(no commit message)
[imagemagick] / ImageMagick.spec.in
index f14b79edb0ea39cc0c7dc23cf90f7728d0d273d8..b4b7672e6284ed02abc0b1aba69b672c330fc82b 100644 (file)
@@ -1,41 +1,56 @@
 %global VERSION  @PACKAGE_VERSION@
 %global Patchlevel  @PACKAGE_RELEASE@
 
-Name:          @PACKAGE_NAME@
-Version:               %{VERSION}.%{Patchlevel}
-Release:               3%{?dist}
-Summary:               Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats.  In addition resize, rotate, shear, distort and transform images.
-Group:         Applications/Multimedia
-License:               http://www.imagemagick.org/script/license.php
-Url:                   http://www.imagemagick.org/
-Source0:               ftp://ftp.ImageMagick.org/pub/%{name}/%{name}-%{VERSION}-%{Patchlevel}.tar.xz
-
-BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel
-BuildRequires: libtiff-devel, giflib-devel, zlib-devel, perl-devel >= 5.8.1
-BuildRequires: ghostscript-devel, djvulibre-devel
-BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel
-BuildRequires: libX11-devel, libXext-devel, libXt-devel
-BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel, OpenEXR-devel
+Name:           @PACKAGE_NAME@
+Version:        %{VERSION}
+Release:        %{Patchlevel}
+Summary:        Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats.  In addition resize, rotate, shear, distort and transform images.
+Group:          Applications/Multimedia
+License:        http://www.imagemagick.org/script/license.php
+Url:            http://www.imagemagick.org/
+Source0:        http://www.imagemagick.org/download/%{name}/%{name}-%{VERSION}-%{Patchlevel}.tar.bz2
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel
+BuildRequires:  libtiff-devel, giflib-devel, zlib-devel, perl-devel >= 5.8.1
+BuildRequires:  ghostscript-devel, djvulibre-devel
+BuildRequires:  libwmf-devel, jasper-devel, libtool-ltdl-devel
+BuildRequires:  libX11-devel, libXext-devel, libXt-devel
+BuildRequires:  lcms-devel, libxml2-devel, librsvg2-devel, OpenEXR-devel
 
 %description
-ImageMagick is an image display and manipulation tool for the X
-Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF,
-and Photo CD image formats. It can resize, rotate, sharpen, color
-reduce, or add special effects to an image, and when finished you can
-either save the completed work in the original format or a different
-one. ImageMagick also includes command line programs for creating
-animated or transparent .gifs, creating composite images, creating
-thumbnail images, and more.
-
-ImageMagick is one of your choices if you need a program to manipulate
-and display images. If you want to develop your own applications
-which use ImageMagick code or APIs, you need to install
-ImageMagick-devel as well.
+ImageMagick is a software suite to create, edit, and compose bitmap images. It
+can read, convert and write images in a variety of formats (about 100)
+including DPX, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG,
+and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear
+and transform images, adjust image colors, apply various special effects,
+or draw text, lines, polygons, ellipses and Bézier curves.
+
+The functionality of ImageMagick is typically utilized from the command line
+or you can use the features from programs written in your favorite programming
+language. Choose from these interfaces: G2F (Ada), MagickCore (C), MagickWand
+(C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), nMagick
+(Neko/haXe), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP
+(PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a
+language interface, use ImageMagick to modify or create images automagically
+and dynamically.
+
+ImageMagick is free software delivered as a ready-to-run binary distribution
+or as source code that you may freely use, copy, modify, and distribute in
+both open and proprietary applications. It is distributed under an Apache
+2.0-style license, approved by the OSI.
+
+The ImageMagick development process ensures a stable API and ABI. Before
+each ImageMagick release, we perform a comprehensive security assessment that
+includes memory and thread error detection to help prevent exploits.ImageMagick
+is free software delivered as a ready-to-run binary distribution or as source
+code that you may freely use, copy, modify, and distribute in both open and
+proprietary applications. It is distributed under an Apache 2.0-style license,
+approved by the OSI.
 
 
 %package devel
-Summary: Library links and header files for ImageMagick app development
+Summary: Library links and header files for ImageMagick application development
 Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
 Requires: libX11-devel, libXext-devel, libXt-devel
@@ -58,7 +73,6 @@ APIs, you need to install ImageMagick-devel as well as ImageMagick.
 You do not need to install it if you just want to use ImageMagick,
 however.
 
-
 %package djvu
 Summary: DjVu plugin for ImageMagick
 Group: Applications/Multimedia
@@ -70,14 +84,14 @@ save and load DjvU files from ImageMagick and libMagickCore using applications.
 
 
 %package doc
-Summary: ImageMagick html documentation
+Summary: ImageMagick HTML documentation
 Group: Documentation
 
 %description doc
 ImageMagick documentation, this package contains usage (for the
-commandline tools) and API (for the libraries) documentation in html format.
+commandline tools) and API (for the libraries) documentation in HTML format.
 Note this documentation can also be found on the ImageMagick website:
-http://www.imagemagick.org/
+http://www.imagemagick.org/.
 
 
 %package perl
@@ -86,6 +100,7 @@ Group: System Environment/Libraries
 Requires: %{name} = %{version}-%{release}
 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+
 %description perl
 Perl bindings to ImageMagick.
 
@@ -119,6 +134,7 @@ ImageMagick is an image manipulation program.
 If you want to create applications that will use Magick++ code
 or APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel and
 ImageMagick.
+
 You don't need to install it if you just want to use ImageMagick, or if you
 want to develop/compile applications using the ImageMagick C interface,
 however.
@@ -130,11 +146,10 @@ sed -i 's/libltdl.la/libltdl.so/g' configure
 iconv -f ISO-8859-1 -t UTF-8 README.txt > README.txt.tmp
 touch -r README.txt README.txt.tmp
 mv README.txt.tmp README.txt
-# for %doc
+# for %%doc
 mkdir Magick++/examples
 cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples
 
-
 %build
 %configure --enable-shared \
            --disable-static \
@@ -148,7 +163,7 @@ cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples
            --with-lcms \
            --with-rsvg \
            --with-xml \
-           --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/MagickCore/.libs' LDDLFLAGS='-shared -L$PWD/MagickCore/.libs'" \
+           --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
            --without-dps \
            --without-included-ltdl --with-ltdl-include=%{_includedir} \
            --with-ltdl-lib=%{_libdir}
@@ -164,7 +179,6 @@ rm -rf %{buildroot}
 
 make install DESTDIR=%{buildroot} INSTALL="install -p"
 cp -a www/source %{buildroot}%{_datadir}/doc/%{name}-%{VERSION}
-# Delete *ONLY* _libdir/*.la files! .la files used internally to handle plugins - BUG#185237!!!
 rm %{buildroot}%{_libdir}/*.la
 
 # fix weird perl Magick.so permissions
@@ -198,10 +212,10 @@ fi
 %define wordsize 32
 %endif
 
-mv %{buildroot}%{_includedir}/%{name}/MagickCore/magick-config.h \
-   %{buildroot}%{_includedir}/%{name}/MagickCore/magick-config-%{wordsize}.h
+mv %{buildroot}%{_includedir}/%{name}/magick/magick-config.h \
+   %{buildroot}%{_includedir}/%{name}/magick/magick-config-%{wordsize}.h
 
-cat >%{buildroot}%{_includedir}/%{name}/MagickCore/magick-config.h <<EOF
+cat >%{buildroot}%{_includedir}/%{name}/magick/magick-config.h <<EOF
 #ifndef IMAGEMAGICK_MULTILIB
 #define IMAGEMAGICK_MULTILIB
 
@@ -218,16 +232,9 @@ cat >%{buildroot}%{_includedir}/%{name}/MagickCore/magick-config.h <<EOF
 #endif
 EOF
 
-# Fonts must be packaged separately. It does nothave matter and demos work without it.
-rm PerlMagick/demo/Generic.ttf
-
-# From version around 6.7.5-6 docs go to unversioned dir. Fixing
-mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}/%{_datadir}/doc/%{name}-%{VERSION}
-
 %clean
 rm -rf %{buildroot}
 
-
 %post -p /sbin/ldconfig
 
 %post c++ -p /sbin/ldconfig
@@ -236,13 +243,12 @@ rm -rf %{buildroot}
 
 %postun c++ -p /sbin/ldconfig
 
-
 %files
 %defattr(-,root,root,-)
 %doc QuickStart.txt ChangeLog Platforms.txt
 %doc README.txt LICENSE NOTICE AUTHORS.txt NEWS.txt
-%{_libdir}/libMagickCore.so.5*
-%{_libdir}/libMagickWand.so.5*
+%{_libdir}/libMagickCore.so*
+%{_libdir}/libMagickWand.so*
 %{_bindir}/[a-z]*
 %{_libdir}/%{name}-%{VERSION}
 %{_datadir}/%{name}-%{VERSION}
@@ -251,16 +257,16 @@ rm -rf %{buildroot}
 %exclude %{_libdir}/%{name}-%{VERSION}/modules-Q16/coders/djvu.*
 %{_sysconfdir}/%{name}
 
+
 %files devel
 %defattr(-,root,root,-)
 %{_bindir}/MagickCore-config
 %{_bindir}/MagickWand-config
-%{_libdir}/libMagickCore.so
-%{_libdir}/libMagickWand.so
+%{_libdir}/libMagickCore.so*
+%{_libdir}/libMagickWand.so*
 %{_libdir}/pkgconfig/MagickCore.pc
 %{_libdir}/pkgconfig/ImageMagick.pc
 %{_libdir}/pkgconfig/MagickWand.pc
-%{_libdir}/pkgconfig/Wand.pc
 %dir %{_includedir}/%{name}
 %{_includedir}/%{name}/MagickCore
 %{_includedir}/%{name}/MagickWand
@@ -269,7 +275,7 @@ rm -rf %{buildroot}
 
 %files djvu
 %defattr(-,root,root,-)
-%{_libdir}/%{name}-%{VERSION}/modules-Q16/coders/djvu.*
+%{_libdir}/%{name}-%{version}/modules-Q16/coders/djvu.*
 
 %files doc
 %defattr(-,root,root,-)
@@ -280,7 +286,7 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %doc Magick++/AUTHORS Magick++/ChangeLog Magick++/NEWS Magick++/README
 %doc www/Magick++/COPYING
-%{_libdir}/libMagick++.so.5*
+%{_libdir}/libMagick++.so*
 
 %files c++-devel
 %defattr(-,root,root,-)
@@ -288,7 +294,7 @@ rm -rf %{buildroot}
 %{_bindir}/Magick++-config
 %{_includedir}/%{name}/Magick++
 %{_includedir}/%{name}/Magick++.h
-%{_libdir}/libMagick++.so
+%{_libdir}/libMagick++.so*
 %{_libdir}/pkgconfig/Magick++.pc
 %{_libdir}/pkgconfig/ImageMagick++.pc
 %{_mandir}/man1/Magick++-config.*
@@ -298,6 +304,7 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 %doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt
 
+
 %changelog
 * Sun May 01 2005 Cristy <cristy@mystic.es.dupont.com> 1.0-0
 -  Port of Redhat's RPM script to support ImageMagick.