/[packages]/updates/8/gimp/current/SPECS/gimp.spec
ViewVC logotype

Diff of /updates/8/gimp/current/SPECS/gimp.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1715926 by umeabot, Wed Feb 24 21:22:12 2021 UTC revision 1715927 by daviddavid, Thu Apr 15 19:04:01 2021 UTC
# Line 11  Line 11 
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
# Line 23  License:       GPLv2+ Line 23  License:       GPLv2+
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
# Line 83  BuildRequires: intltool Line 83  BuildRequires: intltool
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}
# Line 101  Obsoletes:     gimp2_0 < 2.2 Line 101  Obsoletes:     gimp2_0 < 2.2
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 ?
# Line 136  system before running the scripts. Line 136  system before running the scripts.
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}
# Line 147  Provides:      libgimp-devel = %{version}-%{r Line 147  Provides:      libgimp-devel = %{version}-%{r
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
# Line 155  License:       LGPLv2+ Line 155  License:       LGPLv2+
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.
# Line 192  sed -i 's!mypaint-brushes-1.0!mypaint-br Line 192  sed -i 's!mypaint-brushes-1.0!mypaint-br
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
# Line 202  sed -i 's!mypaint-brushes-1.0!mypaint-br Line 202  sed -i 's!mypaint-brushes-1.0!mypaint-br
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="" \
# Line 230  desktop-file-install --vendor="" \ Line 230  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/*
# Line 248  desktop-file-install --vendor="" \ Line 248  desktop-file-install --vendor="" \
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    
# Line 263  desktop-file-install --vendor="" \ Line 263  desktop-file-install --vendor="" \
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}{,.*}
# Line 275  desktop-file-install --vendor="" \ Line 275  desktop-file-install --vendor="" \
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

Legend:
Removed from v.1715926  
changed lines
  Added in v.1715927

  ViewVC Help
Powered by ViewVC 1.1.30