- Enable djvu support, put the new djvu plugin into a separate -djvu

subpackage because of deps (rh 225897)
epel8
Hans de Goede 16 years ago
parent c7d093fef7
commit 4a8ef94ec4

@ -3,7 +3,7 @@
Name: ImageMagick Name: ImageMagick
Version: %{VER}.%{Patchlevel} Version: %{VER}.%{Patchlevel}
Release: 1%{?dist} Release: 2%{?dist}
Summary: An X application for displaying and manipulating images Summary: An X application for displaying and manipulating images
Group: Applications/Multimedia Group: Applications/Multimedia
License: ImageMagick License: ImageMagick
@ -15,7 +15,7 @@ Patch2: ImageMagick-6.3.8-invalid-gerror-use.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel
BuildRequires: libtiff-devel, giflib-devel, zlib-devel, perl-devel BuildRequires: libtiff-devel, giflib-devel, zlib-devel, perl-devel
BuildRequires: ghostscript-devel BuildRequires: ghostscript-devel, djvulibre-devel
BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel
BuildRequires: libX11-devel, libXext-devel, libXt-devel BuildRequires: libX11-devel, libXext-devel, libXt-devel
BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel
@ -61,6 +61,16 @@ You do not need to install it if you just want to use ImageMagick,
however. however.
%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.
%package doc %package doc
Summary: ImageMagick html documentation Summary: ImageMagick html documentation
Group: Documentation Group: Documentation
@ -157,6 +167,7 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
cp -a www/source $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{VER}
rm $RPM_BUILD_ROOT%{_libdir}/*.la rm $RPM_BUILD_ROOT%{_libdir}/*.la
# fix weird perl Magick.so permissions # fix weird perl Magick.so permissions
@ -234,10 +245,11 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libMagickCore.so.* %{_libdir}/libMagickCore.so.*
%{_libdir}/libMagickWand.so.* %{_libdir}/libMagickWand.so.*
%{_bindir}/[a-z]* %{_bindir}/[a-z]*
%{_libdir}/%{name}* %{_libdir}/%{name}-%{VER}
%{_datadir}/%{name}* %{_datadir}/%{name}-%{VER}
%{_mandir}/man[145]/[a-z]* %{_mandir}/man[145]/[a-z]*
%{_mandir}/man1/%{name}.* %{_mandir}/man1/%{name}.*
%exclude %{_libdir}/%{name}-%{VER}/modules-Q16/coders/djvu.*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -259,6 +271,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/Wand-config.* %{_mandir}/man1/Wand-config.*
%{_mandir}/man1/MagickWand-config.* %{_mandir}/man1/MagickWand-config.*
%files djvu
%defattr(-,root,root,-)
%{_libdir}/%{name}-%{VER}/modules-Q16/coders/djvu.*
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc %{_datadir}/doc/%{name}-%{VER} %doc %{_datadir}/doc/%{name}-%{VER}
@ -266,6 +282,7 @@ rm -rf $RPM_BUILD_ROOT
%files c++ %files c++
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Magick++/AUTHORS Magick++/ChangeLog Magick++/NEWS Magick++/README %doc Magick++/AUTHORS Magick++/ChangeLog Magick++/NEWS Magick++/README
%doc www/Magick++/COPYING
%{_libdir}/libMagick++.so.* %{_libdir}/libMagick++.so.*
%files c++-devel %files c++-devel
@ -286,6 +303,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Fri Nov 14 2008 Hans de Goede <hdegoede@redhat.com> 6.4.5.5-2
- Enable djvu support, put the new djvu plugin into a separate -djvu
subpackage because of deps (rh 225897)
* Fri Nov 14 2008 Hans de Goede <hdegoede@redhat.com> 6.4.5.5-1 * Fri Nov 14 2008 Hans de Goede <hdegoede@redhat.com> 6.4.5.5-1
- New upstream release 6.4.5-5 - New upstream release 6.4.5-5
- Various specfile fixes from merge review (rh 225897) - Various specfile fixes from merge review (rh 225897)

Loading…
Cancel
Save