]> git.pld-linux.org Git - packages/ImageMagick.git/blobdiff - ImageMagick.spec
Massive attack. We use -O0 instead -O flags while debug enabled.
[packages/ImageMagick.git] / ImageMagick.spec
index 1ca4fdcaa59a4ac100e9bab03c84525d2eeb55f1..8d05ec69bc78c9bc513ac59eca07abd8924298a9 100644 (file)
@@ -1,68 +1,82 @@
+%include       /usr/lib/rpm/macros.perl
 Summary:       Image display, conversion, and manipulation under X
 Summary(de):   Darstellen, Konvertieren und Bearbeiten von Grafiken unter X
-Summary(fr):   Visualisation, conversion, et manipulation d'images sous X.
+Summary(fr):   Visualisation, conversion, et manipulation d'images sous X
 Summary(pl):   Narzêdzie do wy¶wietlania, konwersji i manipulacji grafikami
 Summary(tr):   X altýnda resim gösterme, çevirme ve deðiþiklik yapma
 Name:          ImageMagick
-Version:       4.2.4
-Release:       1
-Copyright:     freeware
-Serial:                1
+Version:       5.2.7
+Release:       3
+Epoch:         1
+License:       Freeware
 Group:         X11/Applications/Graphics
+Group(de):     X11/Applikationen/Grafik
 Group(pl):     X11/Aplikacje/Grafika
-Source:                ftp://ftp.wizards.dupont.com/pub/ImageMagick/%{name}-%{version}.tar.gz
-Patch:         ImageMagick-libpath.patch
-URL:           http://www.wizards.dupont.com/cristy/ImageMagick.html
-BuildPrereq:   perl
-BuildPrereq:   XFree86-devel
-BuildPrereq:   libjpeg-devel
-BuildPrereq:   libtiff-devel
-BuildPrereq:   libpng-devel
-BuildPrereq:   zlib-devel
-BuildPrereq:   bzip2-devel
-BuildPrereq:   freetype-devel
+Source0:       ftp://ftp.simplesystems.org/pub/ImageMagick/%{name}-%{version}.tar.gz
+Patch0:                %{name}-libpath.patch
+Patch1:                %{name}-perlpaths.patch
+URL:           http://www.simplesystems.org/ImageMagick/
+BuildRequires: perl => 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-18
+BuildRequires: XFree86-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libtiff-devel
+BuildRequires: libpng >= 1.0.8
+BuildRequires: libstdc++-devel
+BuildRequires: zlib-devel
+BuildRequires: bzip2-devel >= 1.0.1
+BuildRequires: freetype-devel
 Requires:      %{name}-libs = %{version}
-Buildroot:     /tmp/%{name}-%{version}-root
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _prefix         /usr/X11R6
+%define                _mandir         %{_prefix}/man
+%define                _includedir     %{_prefix}/include/X11
+%define                _perlmandir     /usr/share/man
 
 %description
-ImageMagick is an image display, conversion, and manipulation tool. It runs
-under X windows. It is very powerful in terms of it's ability to allow the
-user to edit images.  It can handle many different formats as well.
+ImageMagick is an image display, conversion, and manipulation tool. It
+runs under X windows. It is very powerful in terms of it's ability to
+allow the user to edit images. It can handle many different formats as
+well.
 
 %description -l de
-ImageMagick ist ein Tool zur Bildanzeige, -konvertierung und manipulation,
--das unter X-Windows läuft. Es ist enorm leitungsfähig in Bezug auf die
-Grafikmanipulationsfunktionen, die es dem Anwender bietet, und auf die
-Vielfalt der unterstützten Formate.
+ImageMagick ist ein Tool zur Bildanzeige, -konvertierung und
+manipulation, -das unter X-Windows läuft. Es ist enorm leitungsfähig
+in Bezug auf die Grafikmanipulationsfunktionen, die es dem Anwender
+bietet, und auf die Vielfalt der unterstützten Formate.
 
 %description -l fr
 ImageMagick est un outil d'affichage, de conversion et de manipulation
-d'images. Il tourne sous X Window et est très puissant en termes de capacité
-d'édition des images. Il peut aussi gérer de nombreux formats différents.
+d'images. Il tourne sous X Window et est très puissant en termes de
+capacité d'édition des images. Il peut aussi gérer de nombreux formats
+différents.
 
 %description -l pl
-ImageMagic jest narzêdziem do manipulacji, konwersji i wy¶wietlania. W sk³ad
-pakietu wchodz± zarówno narzêdzia X Window jak i do u¿ywania z linii poleceñ
-umo¿liwiaj±ce edycjê plików graficznych. Narzêdzia z pakietu ImageMagic
-potrafi± obs³u¿yæ wiele ró¿ncyh formatów graficznych.
+ImageMagic jest narzêdziem do manipulacji, konwersji i wy¶wietlania. W
+sk³ad pakietu wchodz± zarówno narzêdzia X Window jak i do u¿ywania z
+linii poleceñ umo¿liwiaj±ce edycjê plików graficznych. Narzêdzia z
+pakietu ImageMagic potrafi± obs³u¿yæ wiele ró¿ncyh formatów
+graficznych.
 
 %description -l tr
-ImageMagick bir resim gösterme, çevirme ve deðiþiklik yapma programýdýr. X
-Window pencereleme sistemi altýnda çalýþýr. Kullanýcýya resimler üzerinde
-deðiþiklik yapma açýsýndan pek çok olanak sunar. Bir çok resim biçimini
-rahatlýkla kullanabilir.
+ImageMagick bir resim gösterme, çevirme ve deðiþiklik yapma
+programýdýr. X Window pencereleme sistemi altýnda çalýþýr. Kullanýcýya
+resimler üzerinde deðiþiklik yapma açýsýndan pek çok olanak sunar. Bir
+çok resim biçimini rahatlýkla kullanabilir.
 
 %package devel
 Summary:       Libraries and header files for ImageMagick development
 Summary(pl):   Biblioteki i pliki nag³ówkowe dla ImageMagick'a
 Group:         X11/Development/Libraries
+Group(de):     X11/Entwicklung/Libraries
 Group(pl):     X11/Programowanie/Biblioteki
 Requires:      %{name} = %{version}
 
 %description devel
-This is the ImageMagick development package.  It includes the static
-libraries and header files for use in developing your own applications that
-make use of the ImageMagick code and/or APIs.
+This is the ImageMagick development package. It includes the static
+libraries and header files for use in developing your own applications
+that make use of the ImageMagick code and/or APIs.
 
 %description -l de devel
 Dies ist das ImageMagick-Entwicklerpaket. Es enthält die statischen
@@ -70,9 +84,9 @@ Libraries und Header-Dateien zum Entwickeln von Anwendungen, die
 ImageMagick-Code und/oder -APIs nutzen.
 
 %description -l fr devel
-Paquetage de développement ImageMagick. Contient les bibliothèques statiques
-et les en-têtes utilisés pour créer vos propres applications utilisant le
-code d'ImageMagick et/ou ses APIs.
+Paquetage de développement ImageMagick. Contient les bibliothèques
+statiques et les en-têtes utilisés pour créer vos propres applications
+utilisant le code d'ImageMagick et/ou ses APIs.
 
 %description -l pl devel
 Pakiet ten zawieraja pliki potrzebne przy kompilowaniu programów
@@ -81,13 +95,14 @@ biblioteki statyczne i dokumentacj
 programów z wykorzystaniem API jakie udostêpnia ImageMagick.
 
 %description -l tr devel
-Bu paket, ImageMagick uygulama arayüzünü kullanan programlar geliþtirmek
-için gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
+Bu paket, ImageMagick uygulama arayüzünü kullanan programlar
+geliþtirmek için gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
 
 %package static
 Summary:       ImageMagick static libraries
-Summary(pl):   Biblioteki statyczne ImageMagick
+Summary(pl):   Biblioteki statyczne ImageMagick
 Group:         X11/Development/Libraries
+Group(de):     X11/Entwicklung/Libraries
 Group(pl):     X11/Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
 
@@ -100,25 +115,28 @@ Biblioteki statyczne ImageMagick.
 %package perl
 Summary:       libraries and modules for access to ImageMagick from perl
 Summary(pl):   Biblioteki i modu³y perl dla ImageMagick'a
-Group:         Development/Languages/Perl  
+Group:         Development/Languages/Perl
+Group(de):     Entwicklung/Sprachen/Perl
 Group(pl):     Programowanie/Jêzyki/Perl
-Requires:      %{name} = %{version}
+Requires:      %{name}-libs = %{version}
+Requires:      %{perl_sitearch}
 %requires_eq   perl
 
 %description perl
-This is the ImageMagick perl support package.  It perl modules and support
-files for access to ImageMagick library from perl without unuseful forking
-or such.
+This is the ImageMagick perl support package. It perl modules and
+support files for access to ImageMagick library from perl without
+unuseful forking or such.
 
 %description -l pl perl
-Biblioteki i modu³y umo¿liwiaj±ce korzystanie z ImageMagick'a z poziomu
-perla. 
+Biblioteki i modu³y umo¿liwiaj±ce korzystanie z ImageMagick'a z
+poziomu perla.
 
 %package libs
-Summary:        ImageMagick libraries
-Summary(pl):    Biblioteki ImageMagick
-Group:          X11/Libraries
-Group(pl):      X11/Biblioteki
+Summary:       ImageMagick libraries
+Summary(pl):   Biblioteki ImageMagick
+Group:         X11/Libraries
+Group(de):     X11/Libraries
+Group(pl):     X11/Biblioteki
 
 %description libs
 ImageMagick libraries.
@@ -126,79 +144,137 @@ ImageMagick libraries.
 %description -l pl libs
 Biblioteki ImageMagick.
 
+%package c++
+Summary:       ImageMagick Magick++ library
+Group:         X11/Libraries
+Group(de):     X11/Libraries
+Group(pl):     X11/Biblioteki
+Requires:      %{name}-libs = %{version}
+
+%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:         X11/Development/Libraries
+Group(de):     X11/Entwicklung/Libraries
+Group(pl):     X11/Programowanie/Biblioteki
+Requires:      %{name}-c++ = %{version}
+Requires:      %{name}-devel = %{version}
+
+%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.
+
+%package c++-static
+Summary:       C++ bindings for the ImageMagick - static library
+Group:         X11/Development/Libraries
+Group(de):     X11/Entwicklung/Libraries
+Group(pl):     X11/Programowanie/Biblioteki
+Requires:      %{name}-c++-devel = %{version}
+Requires:      %{name}-devel = %{version}
+
+%description c++-static
+C++ bindings for the ImageMagick - static library.
+
 %prep
-%setup -q
-%patch -p1
+%setup  -q
+%patch0 -p1
+%patch1 -p0
 
 %build
-autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure  %{_target} \
-       --prefix=/usr/X11R6 \
-       --includedir=/usr/X11R6/include/X11 \
+LDFLAGS="%{!?debug: -s}" ; export LDFLAGS
+CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"; export CFLAGS
+CXXFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"; export CXXFLAGS
+./configure \
+        --prefix=%{_prefix} \
+        --exec-prefix=%{_exec_prefix} \
+        --bindir=%{_bindir} \
+        --sbindir=%{_sbindir} \
+        --sysconfdir=%{_sysconfdir} \
+        --datadir=%{_datadir} \
+        --includedir=%{_includedir} \
+        --libdir=%{_libdir} \
+        --libexecdir=%{_libexecdir} \
+        --localstatedir=%{_localstatedir} \
+        --sharedstatedir=%{_sharedstatedir} \
+        --mandir=%{_mandir} \
        --enable-shared \
        --enable-lzw \
        --enable-16bit-pixel \
        --with-perl \
        --with-ttf \
-       --with-x
+       --with-x \
+       --with-threads \
+       --with-magick_plus_plus
 
-make 
+%{__make} 
+%{__make} -C Magick++
 
 %install
-rm -fr $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/share/man//man3
-install -d $RPM_BUILD_ROOT/%{perl_sitearch}
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT 
+%{__make} -C Magick++ \
+       DESTDIR=$RPM_BUILD_ROOT
 
-make install DESTDIR=$RPM_BUILD_ROOT \
-       PREFIX=$RPM_BUILD_ROOT/usr \
-       INSTALLMAN3DIR=$RPM_BUILD_ROOT/usr/share/man/man3
+install PerlMagick/demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
 
-strip $RPM_BUILD_ROOT/usr/X11R6/lib/lib*.so.*.*
-strip --strip-unneeded \
-       $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Image/Magick/Magick.so
+gzip -9nf README.txt
 
-gzip -9nf $RPM_BUILD_ROOT/usr/{X11R6/share/man/man*/*,share/man/man3/*} \
-       README.txt
+%post   libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post   c++ -p /sbin/ldconfig
+%postun c++ -p /sbin/ldconfig
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files libs
 %defattr(644,root,root,755)
-%attr(755,root,root) /usr/X11R6/lib/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files
 %defattr(644,root,root,755)
-/usr/X11R6/share/ImageMagick
+%{_datadir}/ImageMagick
 
-%attr(755,root,root) /usr/X11R6/bin/animate
-%attr(755,root,root) /usr/X11R6/bin/combine
-%attr(755,root,root) /usr/X11R6/bin/convert
-%attr(755,root,root) /usr/X11R6/bin/display
-%attr(755,root,root) /usr/X11R6/bin/identify
-%attr(755,root,root) /usr/X11R6/bin/import
-%attr(755,root,root) /usr/X11R6/bin/mogrify
-%attr(755,root,root) /usr/X11R6/bin/montage
-%attr(755,root,root) /usr/X11R6/bin/xtp
+%attr(755,root,root) %{_bindir}/animate
+%attr(755,root,root) %{_bindir}/combine
+%attr(755,root,root) %{_bindir}/convert
+%attr(755,root,root) %{_bindir}/display
+%attr(755,root,root) %{_bindir}/identify
+%attr(755,root,root) %{_bindir}/import
+%attr(755,root,root) %{_bindir}/mogrify
+%attr(755,root,root) %{_bindir}/montage
 
-/usr/X11R6/share/man/man[145]/*
+%{_mandir}/man[145]/*
 
 %files devel
 %defattr(644,root,root,755)
 %doc www ImageMagick.html README.txt.gz
 
-%attr(755,root,root) /usr/X11R6/bin/Magick-config
-%attr(755,root,root) /usr/X11R6/lib/lib*.so
-
-/usr/X11R6/include/X11/magick
+%attr(755,root,root) %{_bindir}/Magick-config
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%{_includedir}/magick
 
 %files static
 %defattr(644,root,root,755)
-/usr/X11R6/lib/lib*.a
+%{_libdir}/lib*.a
 
 %files perl
 %defattr(644,root,root,755)
@@ -208,96 +284,20 @@ rm -rf $RPM_BUILD_ROOT
 %{perl_sitearch}/auto/Image/Magick/autosplit.ix
 %{perl_sitearch}/auto/Image/Magick/Magick.bs
 %attr(755,root,root) %{perl_sitearch}/auto/Image/Magick/Magick.so
-/usr/share/man/man3/Image::Magick.*
-
-%changelog
-* Fri May  7 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.2.4-1]
-- now package is FHS 2.0 compiliat.
-
-* Thu Apr 22 1999 Artur Frysiak <wiget@pld.org.pl>
-  [4.2.3-1]
-- separated libs to subpackage
-
-* Tue Apr 20 1999 Artur Frysiak <wiget@pld.org.pl>
-  [4.2.2-2]
-- compiled on rpm 3 and perl 5.005_03
-
-* Thu Mar 11 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.1.0-5]
-- removed man group from man pages,
-- "make install" with using DESTDIR,
-- changed Group in devel and static,
-- downgrade to 4.1.0 - all above versions have buggy conversions tga->gif
-  (maybe more).
-
-* Tue Feb  9 1999 Micha³ Kuratczyk <kurkens@polbox.com
-  [4.1.8-2d]
-- added gzipping documentation
-- fixed pl translations
-- cosmetic changes
-
-* Sun Jan 24 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.1.8-1d]
-- added Group(pl),
-- fixed permission on lib*.so* files (must be 755),
-- changed Requires for freetype (= 1.2),
-- many fixes im pl translations.
-
-* Sat Dec  7 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.1.5-1]
-- added gzipping man pages,
-- /usr/bin/Magick-config moved to devel,
-- added /usr/X11R6/share/ImageMagick/delegates.mgk file to main,
-- more man pages on levels 3, 4 and 5,
-- added LDFLAGS="-s" in ./configure enviroment.
-
-* Sun Nov  1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.1.3-2]
-- simplification in perl subpackage,
-- man pages in perl subpackage moved to /usr/man/man3,
-- build against perl 5.005 (added also "Requires: perl >= 5.005" in perl).
-
-* Sat Aug  1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.0.8-1]
-- added rest pl translations in subpackages,
-- added static subpackage.
-
-* Fri Jul 17 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [4.0.7-2]
-- added pl translation,
-- build against GNU libc-2.1.
-
-* Sun Jun 14 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.0.7-1]
-- added Khimenko Victor <khim@sch57.msk.ru> style modyfication for making
-  separated subpackage perl stuff and all my old modyfication which was
-  prepared and uploaded to contrib before RH 5.1,
-- added "Requires: freetype >= 1.1" for main package.
-
-* Wed Jun 10 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr
-
-* Thu May 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 4.0.5
-
-* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 4.0.4
-- added BuildRoot
-
-* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
-- updated from 3.8.3 to 3.9.1
-- removed PNG patch (appears to be fixed)
-
-* Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
-- build against new libpng
-
-* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
-
-* Thu Mar 20 1997 Michael Fulbright <msf@redhat.com>
-- updated to version 3.8.3.
-- updated source and url tags.
+%{_perlmandir}/man3/Image::Magick.*
+%{_examplesdir}/%{name}-perl
+
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libMagick++.so.*.*
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/Magick++-config
+%attr(755,root,root) %{_libdir}/libMagick++.la
+%attr(755,root,root) %{_libdir}/libMagick++.so
+%{_prefix}/include/Magick++
+%{_prefix}/include/Magick++.h
+
+%files c++-static
+%defattr(644,root,root,755)
This page took 0.050249 seconds and 4 git commands to generate.