Changes of Revision 2
[-] | Added | ImageMagick.spec |
x 1
2 +%define VER 6.5.5 3 +%define Patchlevel 6 4 + 5 +%define withdjvu 1 6 +%if 0%{?rhel} 7 +%define withdjvu 0 8 +%endif 9 + 10 + 11 +Name: ImageMagick 12 +Version: %{VER}.%{Patchlevel} 13 +Release: 1%{?dist} 14 +Summary: An X application for displaying and manipulating images 15 +Group: Applications/Multimedia 16 +License: ImageMagick 17 +Url: http://www.imagemagick.org/ 18 +Source0: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{VER}-%{Patchlevel}.tar.bz2 19 +Patch1: ImageMagick-6.4.0-multilib.patch 20 + 21 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 22 +BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel 23 +BuildRequires: libtiff-devel, giflib-devel, zlib-devel 24 +%if 0%{?fedora} >= 7 25 +BuildRequires: perl-devel 26 +%else 27 +BuildRequires: perl 28 +%endif 29 +BuildRequires: ghostscript-devel 30 +%if %{withdjvu} 31 +BuildRequires: djvulibre-devel 32 +%endif 33 +BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel 34 +BuildRequires: libX11-devel, libXext-devel, libXt-devel 35 +BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel 36 + 37 +%description 38 +ImageMagick is an image display and manipulation tool for the X 39 +Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, 40 +and Photo CD image formats. It can resize, rotate, sharpen, color 41 +reduce, or add special effects to an image, and when finished you can 42 +either save the completed work in the original format or a different 43 +one. 44 + 45 +Command line programs for creating animated or transparent .gifs, 46 +creating composite images, creating thumbnail images, and more are 47 +included in ImageMagick-tools package. 48 + 49 +ImageMagick is one of your choices if you need a program to manipulate 50 +and display images. If you want to develop your own applications 51 +which use ImageMagick code or APIs, you need to install 52 +ImageMagick-devel as well. 53 + 54 + 55 +%package devel 56 +Summary: Library links and header files for ImageMagick app development 57 +Group: Development/Libraries 58 +Requires: %{name} = %{version}-%{release} 59 +Requires: libX11-devel, libXext-devel, libXt-devel 60 +Requires: ghostscript-devel 61 +Requires: bzip2-devel 62 +Requires: freetype-devel 63 +Requires: libtiff-devel 64 +Requires: libjpeg-devel 65 +Requires: lcms-devel 66 +Requires: jasper-devel 67 +Requires: pkgconfig 68 + 69 +%description devel 70 +ImageMagick-devel contains the library links and header files you'll 71 +need to develop ImageMagick applications. ImageMagick is an image 72 +manipulation program. 73 + 74 +If you want to create applications that will use ImageMagick code or 75 +APIs, you need to install ImageMagick-devel as well as ImageMagick. 76 +You do not need to install it if you just want to use ImageMagick, 77 +however. 78 + 79 + 80 +%package tools 81 +Summary: Commands for ImageMagick 82 +Group: Applications/Multimedia 83 +Requires: %{name} = %{version}-%{release} 84 + 85 +%description tools 86 +Commands for ImageMagick 87 +This package conflict which ImageMagick officiel package 88 + 89 + 90 +%if %{withdjvu} 91 +%package djvu 92 +Summary: DjVu plugin for ImageMagick 93 +Group: Applications/Multimedia 94 +Requires: %{name} = %{version}-%{release} 95 + 96 +%description djvu 97 +This packages contains a plugin for ImageMagick which makes it possible to 98 +save and load DjvU files from ImageMagick and libMagickCore using applications. 99 +%endif 100 + 101 + 102 +%package doc 103 +Summary: ImageMagick html documentation 104 +Group: Documentation 105 + 106 +%description doc 107 +ImageMagick documentation, this package contains usage (for the 108 +commandline tools) and API (for the libraries) documentation in html format. 109 +Note this documentation can also be found on the ImageMagick website: 110 +http://www.imagemagick.org/ 111 + 112 + 113 +%package perl 114 +Summary: ImageMagick perl bindings 115 +Group: System Environment/Libraries 116 +Requires: %{name} = %{version}-%{release} 117 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 118 + 119 +%description perl 120 +Perl bindings to ImageMagick. 121 + 122 +Install ImageMagick-perl if you want to use any perl scripts that use 123 +ImageMagick. 124 + 125 + 126 +%package c++ 127 +Summary: ImageMagick Magick++ library (C++ bindings) 128 +Group: System Environment/Libraries 129 +Requires: %{name} = %{version}-%{release} 130 + 131 +%description c++ 132 +This package contains the Magick++ library, a C++ binding to the ImageMagick 133 +graphics manipulation library. 134 + 135 +Install ImageMagick-c++ if you want to use any applications that use Magick++. 136 + 137 + 138 +%package c++-devel 139 +Summary: C++ bindings for the ImageMagick library 140 +Group: Development/Libraries 141 +Requires: %{name}-c++ = %{version}-%{release} 142 +Requires: %{name}-devel = %{version}-%{release} 143 + 144 +%description c++-devel 145 +ImageMagick-devel contains the static libraries and header files you'll 146 +need to develop ImageMagick applications using the Magick++ C++ bindings. 147 +ImageMagick is an image manipulation program. 148 + 149 +If you want to create applications that will use Magick++ code 150 +or APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel and 151 +ImageMagick. 152 +You don't need to install it if you just want to use ImageMagick, or if you 153 +want to develop/compile applications using the ImageMagick C interface, 154 +however. 155 + 156 + 157 +%prep 158 +%setup -q -n ImageMagick-%{VER}-%{Patchlevel} 159 +%patch1 -p1 -b .multilib 160 +sed -i 's/libltdl.la/libltdl.so/g' configure 161 +iconv -f ISO-8859-1 -t UTF-8 README.txt > README.txt.tmp 162 +touch -r README.txt README.txt.tmp 163 +mv README.txt.tmp README.txt 164 +# for %doc 165 +mkdir Magick++/examples 166 +cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples 167 + 168 + 169 +%build 170 +%configure --enable-shared \ 171 + --disable-static \ 172 + --with-modules \ 173 + --with-perl \ 174 + --with-x \ 175 + --with-threads \ 176 + --with-magick_plus_plus \ 177 + --with-gslib \ 178 + --with-wmf \ 179 + --with-lcms \ 180 + --with-rsvg \ 181 + --with-xml \ 182 + --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ 183 + --without-dps \ 184 + --without-included-ltdl --with-ltdl-include=%{_includedir} \ 185 + --with-ltdl-lib=%{_libdir} 186 +# Disable rpath 187 +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 188 +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 189 +# Do *NOT* use %%{?_smp_mflags}, this causes PerlMagick to be silently misbuild 190 +make 191 + 192 + 193 +%install 194 +rm -rf $RPM_BUILD_ROOT 195 + 196 +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 197 +cp -a www/source $RPM_BUILD_ROOT%{_datadir}/doc/ImageMagick-%{VER} 198 +rm $RPM_BUILD_ROOT%{_libdir}/*.la 199 + 200 +# fix weird perl Magick.so permissions 201 |
||
[+] | Deleted | ImageMagick2.spec ^ |
@@ -1,338 +0,0 @@ -%define VER 6.5.5 -%define Patchlevel 6 - -%define withdjvu 1 -%if 0%{?rhel} -%define withdjvu 0 -%endif - - -Name: ImageMagick -Version: %{VER}.%{Patchlevel} -Release: 1%{?dist} -Summary: An X application for displaying and manipulating images -Group: Applications/Multimedia -License: ImageMagick -Url: http://www.imagemagick.org/ -Source0: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{VER}-%{Patchlevel}.tar.bz2 -Patch1: ImageMagick-6.4.0-multilib.patch - -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 -%if 0%{?fedora} >= 7 -BuildRequires: perl-devel -%else -BuildRequires: perl -%endif -BuildRequires: ghostscript-devel -%if %{withdjvu} -BuildRequires: djvulibre-devel -%endif -BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel -BuildRequires: libX11-devel, libXext-devel, libXt-devel -BuildRequires: lcms-devel, libxml2-devel, librsvg2-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. - -Command line programs for creating animated or transparent .gifs, -creating composite images, creating thumbnail images, and more are -included in ImageMagick-tools package. - -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. - - -%package devel -Summary: Library links and header files for ImageMagick app development -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: libX11-devel, libXext-devel, libXt-devel -Requires: ghostscript-devel -Requires: bzip2-devel -Requires: freetype-devel -Requires: libtiff-devel -Requires: libjpeg-devel -Requires: lcms-devel -Requires: jasper-devel -Requires: pkgconfig - -%description devel -ImageMagick-devel contains the library links and header files you'll -need to develop ImageMagick applications. ImageMagick is an image -manipulation program. - -If you want to create applications that will use ImageMagick code or -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 tools -Summary: Commands for ImageMagick -Group: Applications/Multimedia -Requires: %{name} = %{version}-%{release} - -%description tools -Commands for ImageMagick -This package conflict which ImageMagick officiel package - - -%if %{withdjvu} -%package djvu -Summary: DjVu plugin for ImageMagick -Group: Applications/Multimedia -Requires: %{name} = %{version}-%{release} - -%description djvu -This packages contains a plugin for ImageMagick which makes it possible to -save and load DjvU files from ImageMagick and libMagickCore using applications. -%endif - - -%package doc -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. -Note this documentation can also be found on the ImageMagick website: -http://www.imagemagick.org/ - - -%package perl -Summary: ImageMagick perl bindings -Group: System Environment/Libraries -Requires: %{name} = %{version}-%{release} -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -%description perl -Perl bindings to ImageMagick. - -Install ImageMagick-perl if you want to use any perl scripts that use -ImageMagick. - - -%package c++ -Summary: ImageMagick Magick++ library (C++ bindings) -Group: System Environment/Libraries -Requires: %{name} = %{version}-%{release} - -%description c++ -This package contains the Magick++ library, a C++ binding to the ImageMagick -graphics manipulation library. - -Install ImageMagick-c++ if you want to use any applications that use Magick++. - - -%package c++-devel -Summary: C++ bindings for the ImageMagick library -Group: Development/Libraries -Requires: %{name}-c++ = %{version}-%{release} -Requires: %{name}-devel = %{version}-%{release} - -%description c++-devel -ImageMagick-devel contains the static libraries and header files you'll -need to develop ImageMagick applications using the Magick++ C++ bindings. -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. - - -%prep -%setup -q -n ImageMagick-%{VER}-%{Patchlevel} -%patch1 -p1 -b .multilib -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 -mkdir Magick++/examples -cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples - - -%build -%configure --enable-shared \ - --disable-static \ - --with-modules \ - --with-perl \ - --with-x \ - --with-threads \ - --with-magick_plus_plus \ - --with-gslib \ - --with-wmf \ - --with-lcms \ - --with-rsvg \ - --with-xml \ - --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} -# Disable rpath -sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool -sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -# Do *NOT* use %%{?_smp_mflags}, this causes PerlMagick to be silently misbuild -make - - -%install -rm -rf $RPM_BUILD_ROOT - -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -cp -a www/source $RPM_BUILD_ROOT%{_datadir}/doc/ImageMagick-%{VER} -rm $RPM_BUILD_ROOT%{_libdir}/*.la - -# fix weird perl Magick.so permissions |