11 |
%define libname %mklibname %{name} %{api_version}_%{lib_major} |
%define libname %mklibname %{name} %{api_version}_%{lib_major} |
12 |
%define devlibname %mklibname -d %{name}%{api_version} |
%define devlibname %mklibname -d %{name}%{api_version} |
13 |
|
|
14 |
%define babl_ver 0.1.78 |
%define babl_ver 0.1.78 |
15 |
%define gegl_ver 0.4.24 |
%define gegl_ver 0.4.24 |
16 |
|
|
17 |
Summary: The GNU Image Manipulation Program |
Summary: The GNU Image Manipulation Program |
18 |
Name: gimp |
Name: gimp |
23 |
Group: Graphics/Editors and Converters |
Group: Graphics/Editors and Converters |
24 |
URL: http://www.gimp.org/ |
URL: http://www.gimp.org/ |
25 |
|
|
26 |
Source0: http://download.gimp.org/pub/gimp/v%{abi_version}/gimp-%version.tar.bz2 |
Source0: http://download.gimp.org/pub/gimp/v%{abi_version}/gimp-%{version}.tar.bz2 |
27 |
#Source1: http://download.gimp.org/pub/gimp/v%%{abi_version}/gimp-%%version.tar.bz2.md5 |
#Source1: http://download.gimp.org/pub/gimp/v%%{abi_version}/gimp-%%{version}.tar.bz2.md5 |
28 |
Source13: gimp-scripting-sample.pl |
Source13: gimp-scripting-sample.pl |
29 |
Patch0: gimp-2.8.0-link.patch |
Patch0: gimp-2.8.0-link.patch |
30 |
#gw fix name in desktop file and disable startup notification |
#gw fix name in desktop file and disable startup notification |
83 |
# mail plugin |
# mail plugin |
84 |
BuildRequires: sendmail-command |
BuildRequires: sendmail-command |
85 |
# python plugin |
# python plugin |
86 |
%if %enable_python |
%if %{enable_python} |
87 |
BuildRequires: pkgconfig(pygtk-2.0) >= 2.10.4 |
BuildRequires: pkgconfig(pygtk-2.0) >= 2.10.4 |
88 |
%endif |
%endif |
89 |
BuildRequires: automake |
BuildRequires: automake |
90 |
BuildRequires: pkgconfig(libwmf) >= 0.2.8 |
BuildRequires: pkgconfig(libwmf) >= 0.2.8 |
91 |
BuildRequires: pkgconfig(xext) |
BuildRequires: pkgconfig(xext) |
92 |
BuildRequires: desktop-file-utils |
BuildRequires: desktop-file-utils |
93 |
BuildRequires: pkgconfig(libheif) |
BuildRequires: pkgconfig(libheif) |
94 |
|
|
95 |
Provides: gimp1_3 = %{version}-%{release} |
Provides: gimp1_3 = %{version}-%{release} |
96 |
Provides: gimp2_0 = %{version}-%{release} |
Provides: gimp2_0 = %{version}-%{release} |
101 |
Obsoletes: gimp2_2 < 2.4 |
Obsoletes: gimp2_2 < 2.4 |
102 |
Obsoletes: gimp2.6 < 2.8 |
Obsoletes: gimp2.6 < 2.8 |
103 |
# workaround libgimp not bumping its major on API/ABI changes: |
# workaround libgimp not bumping its major on API/ABI changes: |
104 |
Requires: %{libname} = %epoch:%{version} |
Requires: %{libname} = %{epoch}:%{version} |
105 |
Requires: mypaint-brushes |
Requires: mypaint-brushes |
106 |
# (tmb) needed for gegl:introspect |
# (tmb) needed for gegl:introspect |
107 |
# fixme? should gegl libs require this ? |
# fixme? should gegl libs require this ? |
136 |
%package -n %{devlibname} |
%package -n %{devlibname} |
137 |
Summary: GIMP plugin and extension development kit |
Summary: GIMP plugin and extension development kit |
138 |
Group: Development/GNOME and GTK+ |
Group: Development/GNOME and GTK+ |
|
Requires: libgtk+2.0-devel >= %{req_gtk_version} |
|
139 |
Epoch: 2 |
Epoch: 2 |
140 |
License: LGPLv2+ |
License: LGPLv2+ |
141 |
Requires: %{libname} = %epoch:%{version} |
Requires: libgtk+2.0-devel >= %{req_gtk_version} |
142 |
|
Requires: %{libname} = %{epoch}:%{version} |
143 |
Provides: gimp-devel = %{version}-%{release} |
Provides: gimp-devel = %{version}-%{release} |
144 |
Provides: gimp2.6-devel = %{version}-%{release} |
Provides: gimp2.6-devel = %{version}-%{release} |
145 |
Provides: libgimp-devel = %{version}-%{release} |
Provides: libgimp-devel = %{version}-%{release} |
147 |
%description -n %{devlibname} |
%description -n %{devlibname} |
148 |
Static libraries and header files for writing GIMP plugins and extensions. |
Static libraries and header files for writing GIMP plugins and extensions. |
149 |
|
|
150 |
%package -n %libname |
%package -n %{libname} |
151 |
Summary: GIMP libraries |
Summary: GIMP libraries |
152 |
Group: System/Libraries |
Group: System/Libraries |
153 |
Epoch: 2 |
Epoch: 2 |
155 |
Provides: libgimp%{api_version} = %{version}-%{release} |
Provides: libgimp%{api_version} = %{version}-%{release} |
156 |
Obsoletes: %{mklibname gimp 2.6_2.0_0} < 2.8 |
Obsoletes: %{mklibname gimp 2.6_2.0_0} < 2.8 |
157 |
|
|
158 |
%description -n %libname |
%description -n %{libname} |
159 |
This is the library that provides core GIMP functionality. |
This is the library that provides core GIMP functionality. |
160 |
It enable other programs to use GIMP's features but is mainly intended |
It enable other programs to use GIMP's features but is mainly intended |
161 |
to be used by the GIMP and its "external" plugins. |
to be used by the GIMP and its "external" plugins. |
192 |
%else |
%else |
193 |
--enable-python=no \ |
--enable-python=no \ |
194 |
%endif |
%endif |
195 |
--enable-gtk-doc=yes \ |
--enable-gtk-doc=yes \ |
196 |
--without-webkit \ |
--without-webkit \ |
197 |
--with-bug-report-url=https://bugs.mageia.org/ |
--with-bug-report-url=https://bugs.mageia.org/ |
198 |
|
|
199 |
%make_build |
%make_build |
202 |
%make_install |
%make_install |
203 |
|
|
204 |
#clean unpackaged files |
#clean unpackaged files |
205 |
find %buildroot -name '*.la' -delete |
find %{buildroot} -name '*.la' -delete |
206 |
|
|
207 |
# workaround broken help system |
# workaround broken help system |
208 |
HELP_DIR=%{buildroot}%_datadir/gimp/%api_version/help/C |
HELP_DIR=%{buildroot}%{_datadir}/gimp/%{api_version}/help/C |
209 |
[[ -d $HELP_DIR ]] || mkdir -p $HELP_DIR |
[[ -d $HELP_DIR ]] || mkdir -p $HELP_DIR |
210 |
HELP_IDX=$HELP_DIR/introduction.html |
HELP_IDX=$HELP_DIR/introduction.html |
211 |
echo -e '<HTML><HEAD><TITLE>GIMP Base Library</HEAD>\n<BODY><UL>' > $HELP_IDX |
echo -e '<HTML><HEAD><TITLE>GIMP Base Library</HEAD>\n<BODY><UL>' > $HELP_IDX |
212 |
|
|
213 |
/bin/ls %{buildroot}%_datadir/gtk-doc/html/*/index.html | sed -e "s@%{buildroot}@@g" >> $HELP_IDX |
/bin/ls %{buildroot}%{_datadir}/gtk-doc/html/*/index.html | sed -e "s@%{buildroot}@@g" >> $HELP_IDX |
214 |
perl -pi -e 's!(.*/html/)([^/]*)(/index.html)!<LI><A HREF="\1\2\3">\2</A>!g' $HELP_IDX |
perl -pi -e 's!(.*/html/)([^/]*)(/index.html)!<LI><A HREF="\1\2\3">\2</A>!g' $HELP_IDX |
215 |
|
|
216 |
echo '</UL></BODY></HTML>' >> $HELP_IDX |
echo '</UL></BODY></HTML>' >> $HELP_IDX |
217 |
|
|
218 |
%find_lang gimp20 --all-name |
%find_lang gimp20 --all-name |
219 |
|
|
220 |
%if %enable_python |
%if %{enable_python} |
221 |
chmod 755 %buildroot%_libdir/gimp/%{api_version}/plug-ins/*/*.py |
chmod 755 %buildroot%{_libdir}/gimp/%{api_version}/plug-ins/*/*.py |
222 |
mkdir -p %{buildroot}%{_libdir}/python%{python2_version}/site-packages |
mkdir -p %{buildroot}%{_libdir}/python%{python2_version}/site-packages |
223 |
echo %_libdir/gimp/%{api_version}/python > %{buildroot}%{_libdir}/python%{python2_version}/site-packages/gimp.pth |
echo %{_libdir}/gimp/%{api_version}/python > %{buildroot}%{_libdir}/python%{python2_version}/site-packages/gimp.pth |
224 |
echo %_libdir/gimp/%{api_version}/plug-ins >> %{buildroot}%{_libdir}/python%{python2_version}/site-packages/gimp.pth |
echo %{_libdir}/gimp/%{api_version}/plug-ins >> %{buildroot}%{_libdir}/python%{python2_version}/site-packages/gimp.pth |
225 |
%endif |
%endif |
226 |
|
|
227 |
desktop-file-install --vendor="" \ |
desktop-file-install --vendor="" \ |
230 |
|
|
231 |
%files -f gimp20.lang |
%files -f gimp20.lang |
232 |
%{_bindir}/gimp |
%{_bindir}/gimp |
233 |
%{_bindir}/gimp-%abi_version |
%{_bindir}/gimp-%{abi_version} |
234 |
%{_bindir}/gimp-console |
%{_bindir}/gimp-console |
235 |
%{_bindir}/gimp-console-%abi_version |
%{_bindir}/gimp-console-%{abi_version} |
236 |
%{_bindir}/gimp-test-clipboard-2.0 |
%{_bindir}/gimp-test-clipboard-2.0 |
237 |
%{_libexecdir}/gimp-debug-tool-2.0 |
%{_libexecdir}/gimp-debug-tool-2.0 |
238 |
%{_datadir}/applications/* |
%{_datadir}/applications/* |
248 |
%exclude %{_libdir}/gimp/%{api_version}/plug-ins/*/*.py |
%exclude %{_libdir}/gimp/%{api_version}/plug-ins/*/*.py |
249 |
%{_mandir}/man1/gimp* |
%{_mandir}/man1/gimp* |
250 |
%{_mandir}/man5/gimp* |
%{_mandir}/man5/gimp* |
251 |
%_datadir/icons/hicolor/*/apps/gimp.png |
%{_iconsdir}/hicolor/*/apps/gimp.png |
252 |
#%%_datadir/icons/hicolor/scalable/apps/gimp.svg |
#%%_datadir/icons/hicolor/scalable/apps/gimp.svg |
253 |
%config(noreplace) %{_sysconfdir}/gimp |
%config(noreplace) %{_sysconfdir}/gimp |
254 |
|
|
263 |
%{_libdir}/pkgconfig/* |
%{_libdir}/pkgconfig/* |
264 |
%{_mandir}/man1/gimptool-* |
%{_mandir}/man1/gimptool-* |
265 |
|
|
266 |
%files -n %libname |
%files -n %{libname} |
267 |
# explicitly list all libs to avoid old libtool issue |
# explicitly list all libs to avoid old libtool issue |
268 |
%{_libdir}/libgimpconfig-%{api_version}.so.%{lib_major}{,.*} |
%{_libdir}/libgimpconfig-%{api_version}.so.%{lib_major}{,.*} |
269 |
%{_libdir}/libgimp-%{api_version}.so.%{lib_major}{,.*} |
%{_libdir}/libgimp-%{api_version}.so.%{lib_major}{,.*} |
275 |
%{_libdir}/libgimpui-%{api_version}.so.%{lib_major}{,.*} |
%{_libdir}/libgimpui-%{api_version}.so.%{lib_major}{,.*} |
276 |
%{_libdir}/libgimpwidgets-%{api_version}.so.%{lib_major}{,.*} |
%{_libdir}/libgimpwidgets-%{api_version}.so.%{lib_major}{,.*} |
277 |
|
|
278 |
%if %enable_python |
%if %{enable_python} |
279 |
%files python |
%files python |
280 |
%{_libdir}/gimp/%{api_version}/environ/pygimp.env |
%{_libdir}/gimp/%{api_version}/environ/pygimp.env |
281 |
%{_libdir}/gimp/%{api_version}/python |
%{_libdir}/gimp/%{api_version}/python |