Browse Source

gimp: update to 2.8.22

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11730 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 5 years ago
parent
commit
d0a1acc85d
1 changed files with 88 additions and 84 deletions
  1. 88 84
      g/gimp/gimp-vl.spec

+ 88 - 84
g/gimp/gimp-vl.spec

@@ -1,54 +1,56 @@
-%define verdir		v2.8
-%define binver		2.8
-%define subver		2.0
+%define verdir  v2.8
+%define binver  2.8
+%define subver  2.0
 
 Summary: 	The GNU Image Manipulation Program
 Summary(ja):    GNU 画像加工プログラム
-Name: 		gimp
-Version: 	2.8.18
-Release:	1%{?_dist_release}
-License: 	GPL, LGPL
-Group: 		Applications/Graphics
-URL: 		http://www.gimp.org/
-Source: 	ftp://ftp.gimp.org/pub/gimp/%{verdir}/%{name}-%{version}.tar.bz2
-
-Patch10:	gimp-2.0-desktopfile-no-gimp-remote.patch
-
-Patch100:	gimp-2.8.0-gimprc-vine.patch
-
-BuildRoot:	%{_tmppath}/%{name}-%{version}-root
-
-Obsoletes: 	gimp-data-min
-Obsoletes:	gimp-libgimp
-
-Requires:	xdg-utils
-
-BuildRequires:  gtk2-devel >= 2.24.10
-BuildRequires:	libpng-devel
-BuildRequires:  libtiff-devel
-BuildRequires:  libjpeg-devel
-BUildRequires:  lcms-devel
-BuildRequires:	librsvg2-devel
-BuildRequires:  aalib-devel
-BuildRequires:	alsa-lib-devel
-BuildRequires:  libexif-devel
-BuildRequires:	gegl-devel >= 0.2.0
-BuildRequires:  poppler-devel >= 0.14.2
-BuildRequires:  curl-devel
-BuildRequires:  libwmf-devel
-BuildRequires:  dbus-glib-devel
-BuildRequires:  gvfs-devel
-BuildRequires:  alsa-lib-devel
-BuildRequires:  python-devel
-BuildRequires:  libXpm-devel
-BuildRequires:  libXmu-devel
-BuildRequires:  pygtk2-devel
-BuildRequires:  libxslt
-BuildRequires:  gtk-doc
-
-Vendor:		Project Vine
-Distribution:	Vine Linux
-Packager:	Takemikaduchi
+Name:    gimp
+Version: 2.8.22
+Release: 1%{?_dist_release}
+
+License: GPL, LGPL
+Group:   Applications/Graphics
+URL:     http://www.gimp.org/
+Source:  ftp://ftp.gimp.org/pub/gimp/%{verdir}/%{name}-%{version}.tar.bz2
+
+Patch10: gimp-2.0-desktopfile-no-gimp-remote.patch
+
+Patch100: gimp-2.8.0-gimprc-vine.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+Obsoletes: gimp-data-min
+Obsoletes: gimp-libgimp
+
+Requires: xdg-utils
+
+BuildRequires: gtk2-devel >= 2.24.10
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: libjpeg-devel
+BUildRequires: lcms-devel
+BuildRequires: librsvg2-devel
+BuildRequires: aalib-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: libexif-devel
+BuildRequires: gegl-devel >= 0.2.0
+BuildRequires: poppler-devel >= 0.14.2
+BuildRequires: curl-devel
+BuildRequires: libwmf-devel
+BuildRequires: dbus-glib-devel
+BuildRequires: gvfs-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: python-devel
+BuildRequires: libXpm-devel
+BuildRequires: libXmu-devel
+BuildRequires: pygtk2-devel
+BuildRequires: libxslt
+BuildRequires: gtk-doc
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: Takemikaduchi
+
 
 %description
 The GIMP (GNU Image Manipulation Program) is a powerful image
@@ -106,9 +108,9 @@ gimp-data-extras : GIMP用のさまざまな拡張ファイル。)
 %package devel
 Summary: GIMP plugin and extension development kit
 Summary(ja): GIMP プラグイン・拡張機能開発キット
-Group: 	  Development/Libraries
+Group:    Development/Libraries
 Requires: %{name} = %{version}-%{release}
-Requires: gtk2-devel >= 2.4.4, glib2-devel >= 2.4.5 
+Requires: gtk2-devel >= 2.4.4, glib2-devel >= 2.4.5
 
 %description devel
 The gimp-devel package contains the static libraries and header files
@@ -119,62 +121,61 @@ Install gimp-devel if you're going to create plug-ins and/or
 extensions for the GIMP.  You'll also need to install gimp-limpgimp
 and gimp, and you may want to install gimp-data-extras.
 
+
 %prep
 %setup -q -n %{name}-%{version}
 %patch100 -p1 -b .gimprc
 
-
 %build
 autoreconf -if
-%configure \
-	--without-print \
-	--without-libmng \
-	--without-webkit \
-	--without-hal \
-	--with-libexif \
-	--with-gvfs \
-	--enable-mp
-
-make %{?_smp_mflags}
+%{configure} \
+    --without-print \
+    --without-libmng \
+    --without-webkit \
+    --without-hal \
+    --with-libexif \
+    --with-gvfs \
+    --enable-mp
 
+%{__make} %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-DESTDIR=$RPM_BUILD_ROOT make install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{make_install}
 
-mkdir -p %{buildroot}%{_datadir}/applications
-cp ./desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
+%{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/applications
+cp ./desktop/%{name}.desktop ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
 desktop-file-install --vendor gnome             \
-  --dir %{buildroot}%{_datadir}/applications    \
-  --delete-original				\
-  --remove-category RasterGraphics              \
-  --add-category GNOME                          \
-  --add-category Application                    \
-  --add-category Graphics			\
-  %{buildroot}%{_datadir}/applications/%{name}.desktop
-
-ln -sf gimp-%{binver} $RPM_BUILD_ROOT/%{_bindir}/gimp
-ln -sf gimp-remote-%{binver} $RPM_BUILD_ROOT/%{_bindir}/gimp-remote
-ln -sf gimptool-%{subver} $RPM_BUILD_ROOT/%{_bindir}/gimptool
+                     --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
+                     --delete-original                               \
+                     --remove-category RasterGraphics                \
+                     --add-category GNOME                            \
+                     --add-category Application                      \
+                     --add-category Graphics                         \
+                     ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
+
+# %{__ln_s} -f gimp-%{binver} ${RPM_BUILD_ROOT}%{_bindir}/gimp
+# %{__ln_s} -f gimp-remote-%{binver} ${RPM_BUILD_ROOT}%{_bindir}/gimp-remote
+%{__ln_s} -f gimptool-%{subver} ${RPM_BUILD_ROOT}%{_bindir}/gimptool
 
 ## removed unpacked files
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver}/modules/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver}/python/*.la
+%{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
+%{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/%{name}/%{subver}/modules/*.la
+%{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/%{name}/%{subver}/python/*.la
 # conflict to gimp-print package
 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver}/plug-ins/print
 
 %post
-/sbin/ldconfig
+%{_syssbindir}/ldconfig
 gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
 
 %postun
-/sbin/ldconfig
+%{_syssbindir}/ldconfig
 gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
 
-
 %clean
-rm -rf %{buildroot}
+%{__rm} -rf %{buildroot}
+
 
 %files
 %attr (-, root, man) %doc AUTHORS COPYING ChangeLog HACKING NEWS README
@@ -232,7 +233,7 @@ rm -rf %{buildroot}
 %{_includedir}/gimp-%{subver}/libgimp/*.h
 %{_includedir}/gimp-%{subver}/libgimpbase/*.h
 
-	%{_includedir}/gimp-%{subver}/libgimpcolor/*.h
+%{_includedir}/gimp-%{subver}/libgimpcolor/*.h
 %{_includedir}/gimp-%{subver}/libgimpconfig/*.h
 %{_includedir}/gimp-%{subver}/libgimpmath/*.h
 %{_includedir}/gimp-%{subver}/libgimpmodule/*.h
@@ -244,6 +245,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Jun 30 2018 Toshiaki Ara <ara_t@384.jp> 2.8.22-1
+- update to 2.8.22
+
 * Sat Nov 05 2016 Toshiaki Ara <ara_t@384.jp> 2.8.18-1
 - new upstream release