don't build help browser on EL
This commit is contained in:
parent
570dfef76c
commit
6ef0e17ea2
24
gimp.spec
24
gimp.spec
@ -40,6 +40,12 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_with poppler
|
%bcond_with poppler
|
||||||
%endif
|
%endif
|
||||||
|
# helpbrowser build webkit-based help browser
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%bcond_with helpbrowser
|
||||||
|
%else
|
||||||
|
%bcond_without helpbrowser
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Set this to 0 in stable, 1 in (SONAME-wise) unstable releases
|
# Set this to 0 in stable, 1 in (SONAME-wise) unstable releases
|
||||||
@ -147,11 +153,13 @@ BuildRequires: poppler-glib-devel >= 0.20.0
|
|||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: pygtk2-devel >= 2.10.4
|
BuildRequires: pygtk2-devel >= 2.10.4
|
||||||
BuildRequires: pygobject2-devel
|
BuildRequires: pygobject2-devel
|
||||||
|
%if %{with helpbrowser}
|
||||||
%if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} > 10 || 0%{?rhel} > 5
|
%if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} > 10 || 0%{?rhel} > 5
|
||||||
BuildRequires: webkitgtk-devel >= 1.6.1
|
BuildRequires: webkitgtk-devel >= 1.6.1
|
||||||
%else
|
%else
|
||||||
BuildRequires: WebKit-gtk-devel >= 1.6.1
|
BuildRequires: WebKit-gtk-devel >= 1.6.1
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libXmu-devel
|
BuildRequires: libXmu-devel
|
||||||
@ -179,6 +187,9 @@ Requires: hicolor-icon-theme
|
|||||||
Requires: pygtk2 >= 2.10.4
|
Requires: pygtk2 >= 2.10.4
|
||||||
Requires: xdg-utils
|
Requires: xdg-utils
|
||||||
Requires: gimp-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: gimp-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
%if ! %{with helpbrowser}
|
||||||
|
Obsoletes: gimp-help-browser <= %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
%endif
|
||||||
|
|
||||||
Source0: ftp://ftp.gimp.org/pub/gimp/v%{binver}/gimp-%{version}%{dashprerel}.tar.bz2
|
Source0: ftp://ftp.gimp.org/pub/gimp/v%{binver}/gimp-%{version}%{dashprerel}.tar.bz2
|
||||||
|
|
||||||
@ -229,6 +240,7 @@ Requires: gimp-devel = %{?epoch:%{epoch}:}%{version}-%{release}
|
|||||||
The gimp-devel-tools package contains gimptool, a helper program to build GNU
|
The gimp-devel-tools package contains gimptool, a helper program to build GNU
|
||||||
Image Manipulation Program (GIMP) plug-ins and extensions.
|
Image Manipulation Program (GIMP) plug-ins and extensions.
|
||||||
|
|
||||||
|
%if %{with helpbrowser}
|
||||||
%package help-browser
|
%package help-browser
|
||||||
Summary: GIMP help browser plug-in
|
Summary: GIMP help browser plug-in
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
@ -239,6 +251,7 @@ Requires: gimp%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|||||||
%description help-browser
|
%description help-browser
|
||||||
The gimp-help-browser package contains a lightweight help browser plugin for
|
The gimp-help-browser package contains a lightweight help browser plugin for
|
||||||
viewing GIMP online help.
|
viewing GIMP online help.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
cat << EOF
|
cat << EOF
|
||||||
@ -258,6 +271,7 @@ prefer gutenprint over (external) gimp-print plugin:
|
|||||||
build ASCII art plugin %{with aalib}
|
build ASCII art plugin %{with aalib}
|
||||||
harden binaries: %{with hardening}
|
harden binaries: %{with hardening}
|
||||||
use poppler: %{with poppler}
|
use poppler: %{with poppler}
|
||||||
|
build help browser: %{with helpbrowser}
|
||||||
--- >8 ---------------------------------------------------------------------
|
--- >8 ---------------------------------------------------------------------
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -324,10 +338,15 @@ export LDFLAGS='-pie'
|
|||||||
--with-poppler \
|
--with-poppler \
|
||||||
%else
|
%else
|
||||||
--without-poppler \
|
--without-poppler \
|
||||||
|
%endif
|
||||||
|
%if %{with helpbrowser}
|
||||||
|
--with-webkit \
|
||||||
|
%else
|
||||||
|
--without-webkit \
|
||||||
%endif
|
%endif
|
||||||
--with-libtiff --with-libjpeg --with-libpng --with-libmng --with-libjasper \
|
--with-libtiff --with-libjpeg --with-libpng --with-libmng --with-libjasper \
|
||||||
--with-libexif --with-librsvg --with-libxpm --with-gvfs --with-alsa \
|
--with-libexif --with-librsvg --with-libxpm --with-gvfs --with-alsa \
|
||||||
--with-webkit --with-dbus --with-script-fu --with-cairo-pdf
|
--with-dbus --with-script-fu --with-cairo-pdf
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -536,13 +555,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
%{_mandir}/man1/gimptool.1*
|
%{_mandir}/man1/gimptool.1*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with helpbrowser}
|
||||||
%files help-browser
|
%files help-browser
|
||||||
%defattr (-, root, root, 0755)
|
%defattr (-, root, root, 0755)
|
||||||
%{_libdir}/gimp/%{lib_api_version}/plug-ins/help-browser
|
%{_libdir}/gimp/%{lib_api_version}/plug-ins/help-browser
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Oct 20 2012 Nils Philippsen <nils@redhat.com> - 2:2.8.2-2
|
* Sat Oct 20 2012 Nils Philippsen <nils@redhat.com> - 2:2.8.2-2
|
||||||
- run "make check"
|
- run "make check"
|
||||||
|
- don't build help browser on EL
|
||||||
|
|
||||||
* Fri Aug 24 2012 Nils Philippsen <nils@redhat.com> - 2:2.8.2-1
|
* Fri Aug 24 2012 Nils Philippsen <nils@redhat.com> - 2:2.8.2-1
|
||||||
- version 2.8.2
|
- version 2.8.2
|
||||||
|
Loading…
Reference in New Issue
Block a user