unpack libs subpackage
This commit is contained in:
parent
ae614404e7
commit
b8064b3349
63
gimp.spec
63
gimp.spec
@ -1,9 +1,9 @@
|
|||||||
Name: gimp
|
Name: gimp
|
||||||
Version: 2.10.6
|
Version: 2.10.6
|
||||||
Release: 4
|
Release: 5
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Summary: A versatile graphics manipulation package
|
Summary: A versatile graphics manipulation package
|
||||||
License: GPLv3+ and GPLv3 and LGPLv3+
|
License: GPLv3+ and GPLv3
|
||||||
URL: http://www.gimp.org/
|
URL: http://www.gimp.org/
|
||||||
|
|
||||||
Source0: http://download.gimp.org/pub/gimp/v2.10/gimp-2.10.6.tar.bz2
|
Source0: http://download.gimp.org/pub/gimp/v2.10/gimp-2.10.6.tar.bz2
|
||||||
@ -22,17 +22,14 @@ BuildRequires: poppler-data-devel >= 0.4.7 pycairo-devel >= 1.0.2 pygtk2-devel
|
|||||||
BuildRequires: perl >= 5.10.0 libappstream-glib gtk-doc >= 1.0 gegl04-tools libXpm-devel pkgconfig zlib-devel
|
BuildRequires: perl >= 5.10.0 libappstream-glib gtk-doc >= 1.0 gegl04-tools libXpm-devel pkgconfig zlib-devel
|
||||||
BuildRequires: libXmu-devel gettext >= 0.19 chrpath >= 0.13-5 intltool >= 0.40.1
|
BuildRequires: libXmu-devel gettext >= 0.19 chrpath >= 0.13-5 intltool >= 0.40.1
|
||||||
|
|
||||||
Requires: babl%{?_isa} >= 0.1.56 fontconfig >= 2.12.4 freetype >= 2.1.7 pango >= 1.29.4 xdg-utils gimp-libs%{?_isa} = 2:2.10.6-2.h1
|
Requires: babl%{?_isa} >= 0.1.56 fontconfig >= 2.12.4 freetype >= 2.1.7 pango >= 1.29.4 xdg-utils %{name}-libs = %{epoch}:%{version}-%{release}
|
||||||
Requires: gegl04%{?_isa} >= 0.4.6 glib2 >= 2.54.0 gtk2 >= 2.24.10 pygtk2 >= 2.10.4 hicolor-icon-theme
|
Requires: gegl04%{?_isa} >= 0.4.6 glib2 >= 2.54.0 gtk2 >= 2.24.10 pygtk2 >= 2.10.4 hicolor-icon-theme
|
||||||
|
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
Obsoletes: gimp-help-browser < 2:2.10.6-2.h1
|
Obsoletes: gimp-help-browser < %{epoch}:%{version}-%{release}
|
||||||
Conflicts: gimp-help-browser < 2:2.10.6-2.h1
|
Conflicts: gimp-help-browser < %{epoch}:%{version}-%{release}
|
||||||
Obsoletes: gimp-unstable < 2:2.10
|
Obsoletes: gimp-unstable < 2:2.10
|
||||||
Conflicts: gimp-unstable < 2:2.10
|
Conflicts: gimp-unstable < 2:2.10
|
||||||
Provides: %{name}-libs%{?_isa} %{name}-libs
|
|
||||||
Obsoletes: %{name}-libs
|
|
||||||
Obsoletes: gimp-unstable-libs < 2:2.10
|
|
||||||
Conflicts: gimp-unstable-libs < 2:2.10
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GIMP is a cross-platform image editor available for GNU/Linux, OS X, Windows and more operating systems.
|
GIMP is a cross-platform image editor available for GNU/Linux, OS X, Windows and more operating systems.
|
||||||
@ -41,12 +38,21 @@ Whether you are a graphic designer, photographer, illustrator, or scientist,
|
|||||||
GIMP provides you with sophisticated tools to get your job done. You can further enhance
|
GIMP provides you with sophisticated tools to get your job done. You can further enhance
|
||||||
your productivity with GIMP thanks to many customization options and 3rd party plugins.
|
your productivity with GIMP thanks to many customization options and 3rd party plugins.
|
||||||
|
|
||||||
|
%package libs
|
||||||
|
Summary: Libraries for %{name}
|
||||||
|
License: LGPLv3+
|
||||||
|
|
||||||
|
Obsoletes: gimp-unstable-libs < 2:2.10
|
||||||
|
Conflicts: gimp-unstable-libs < 2:2.10
|
||||||
|
|
||||||
|
%description libs
|
||||||
|
Libraries for %{name}.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: GIMP development kit
|
Summary: GIMP development kit
|
||||||
License: LGPLv3+
|
License: LGPLv3+
|
||||||
Requires: gimp-libs%{?_isa} = 2:2.10.6-2.h1 glib2-devel rpm >= 4.11.0
|
Requires: gimp-libs = %{epoch}:%{version}-%{release} glib2-devel rpm >= 4.11.0
|
||||||
Requires: gimp-devel-tools = 2:2.10.6-2.h1 gtk2-devel pkgconfig
|
Requires: gimp-devel-tools = %{epoch}:%{version}-%{release} gtk2-devel pkgconfig
|
||||||
|
|
||||||
Provides: %{name}-devel-tools%{?_isa} %{name}-devel-tools
|
Provides: %{name}-devel-tools%{?_isa} %{name}-devel-tools
|
||||||
Obsoletes: %{name}-devel-tools
|
Obsoletes: %{name}-devel-tools
|
||||||
@ -58,7 +64,6 @@ Conflicts: gimp-unstable-devel-tools < 2:2.10
|
|||||||
%description devel
|
%description devel
|
||||||
GIMP development kit
|
GIMP development kit
|
||||||
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Including man files for gimp
|
Summary: Including man files for gimp
|
||||||
Requires: man
|
Requires: man
|
||||||
@ -66,14 +71,10 @@ Requires: man
|
|||||||
%description help
|
%description help
|
||||||
This contains man files for the using of gimp.
|
This contains man files for the using of gimp.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--enable-mp \
|
--enable-mp \
|
||||||
--enable-python \
|
--enable-python \
|
||||||
@ -105,7 +106,6 @@ This contains man files for the using of gimp.
|
|||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
gimp_pc_extract_normalize() {
|
gimp_pc_extract_normalize() {
|
||||||
PKG_CONFIG_PATH="$PWD" \
|
PKG_CONFIG_PATH="$PWD" \
|
||||||
pkg-config --variable="$1" gimp-2.0 | \
|
pkg-config --variable="$1" gimp-2.0 | \
|
||||||
@ -143,21 +143,16 @@ cat << EOF > macros.gimp
|
|||||||
%%_gimp_plugindir ${_gimp_plugindir}
|
%%_gimp_plugindir ${_gimp_plugindir}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
install -D -m0644 macros.gimp %{buildroot}%{_rpmconfigdir}/macros.d/macros.gimp
|
install -D -m0644 macros.gimp %{buildroot}%{_rpmconfigdir}/macros.d/macros.gimp
|
||||||
find %buildroot -type f -print0 | xargs -0 -L 20 chrpath --delete --keepgoing 2>/dev/null || :
|
find %buildroot -type f -print0 | xargs -0 -L 20 chrpath --delete --keepgoing 2>/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
find %{buildroot}%{_libdir}/gimp/%{apiversion}/* -type d | sed "s@^%{buildroot}@%%dir @g" >> gimp-plugin-files
|
find %{buildroot}%{_libdir}/gimp/%{apiversion}/* -type d | sed "s@^%{buildroot}@%%dir @g" >> gimp-plugin-files
|
||||||
find %{buildroot}%{_libdir}/gimp/%{apiversion} -type f | sed "s@^%{buildroot}@@g" | grep -v '\.a$' > gimp-plugin-files
|
find %{buildroot}%{_libdir}/gimp/%{apiversion} -type f | sed "s@^%{buildroot}@@g" | grep -v '\.a$' > gimp-plugin-files
|
||||||
|
|
||||||
|
|
||||||
grep "\.py$" gimp-plugin-files > gimp-plugin-files-py
|
grep "\.py$" gimp-plugin-files > gimp-plugin-files-py
|
||||||
for file in $(cat gimp-plugin-files-py); do
|
for file in $(cat gimp-plugin-files-py); do
|
||||||
for newfile in ${file}c ${file}o; do
|
for newfile in ${file}c ${file}o; do
|
||||||
@ -165,12 +160,8 @@ for file in $(cat gimp-plugin-files-py); do
|
|||||||
done
|
done
|
||||||
done >> gimp-plugin-files
|
done >> gimp-plugin-files
|
||||||
|
|
||||||
|
|
||||||
%py_byte_compile %{__python2} %{buildroot}%{_libdir}/gimp/%{apiversion}
|
%py_byte_compile %{__python2} %{buildroot}%{_libdir}/gimp/%{apiversion}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%find_lang gimp%{textversion}
|
%find_lang gimp%{textversion}
|
||||||
%find_lang gimp%{textversion}-libgimp
|
%find_lang gimp%{textversion}-libgimp
|
||||||
%find_lang gimp%{textversion}-tips
|
%find_lang gimp%{textversion}-tips
|
||||||
@ -178,7 +169,6 @@ done >> gimp-plugin-files
|
|||||||
%find_lang gimp%{textversion}-std-plug-ins
|
%find_lang gimp%{textversion}-std-plug-ins
|
||||||
%find_lang gimp%{textversion}-script-fu
|
%find_lang gimp%{textversion}-script-fu
|
||||||
|
|
||||||
|
|
||||||
cat gimp%{textversion}.lang \
|
cat gimp%{textversion}.lang \
|
||||||
gimp%{textversion}-std-plug-ins.lang \
|
gimp%{textversion}-std-plug-ins.lang \
|
||||||
gimp%{textversion}-script-fu.lang \
|
gimp%{textversion}-script-fu.lang \
|
||||||
@ -186,11 +176,8 @@ cat gimp%{textversion}.lang \
|
|||||||
gimp%{textversion}-tips.lang \
|
gimp%{textversion}-tips.lang \
|
||||||
gimp%{textversion}-python.lang > gimp-all.lang
|
gimp%{textversion}-python.lang > gimp-all.lang
|
||||||
|
|
||||||
|
|
||||||
cat gimp-plugin-files gimp-all.lang > gimp.files
|
cat gimp-plugin-files gimp-all.lang > gimp.files
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ln -snf gimp-%{allversion} %{buildroot}%{_bindir}/gimp
|
ln -snf gimp-%{allversion} %{buildroot}%{_bindir}/gimp
|
||||||
ln -snf gimp-%{allversion}.1 %{buildroot}%{_mandir}/man1/gimp.1
|
ln -snf gimp-%{allversion}.1 %{buildroot}%{_mandir}/man1/gimp.1
|
||||||
ln -snf gimp-console-%{allversion} %{buildroot}/%{_bindir}/gimp-console
|
ln -snf gimp-console-%{allversion} %{buildroot}/%{_bindir}/gimp-console
|
||||||
@ -199,20 +186,16 @@ ln -snf gimptool-%{apiversion}.1 %{buildroot}%{_mandir}/man1/gimptool.1
|
|||||||
ln -snf gimprc-%{allversion}.5 %{buildroot}/%{_mandir}/man5/gimprc.5
|
ln -snf gimprc-%{allversion}.5 %{buildroot}/%{_mandir}/man5/gimprc.5
|
||||||
ln -snf gimp-console-%{allversion}.1 %{buildroot}/%{_mandir}/man1/gimp-console.1
|
ln -snf gimp-console-%{allversion}.1 %{buildroot}/%{_mandir}/man1/gimp-console.1
|
||||||
|
|
||||||
|
|
||||||
grep -E -rl '^#!\s*%{_bindir}/env\s+python' --include=\*.py "%{buildroot}" |
|
grep -E -rl '^#!\s*%{_bindir}/env\s+python' --include=\*.py "%{buildroot}" |
|
||||||
while read file; do
|
while read file; do
|
||||||
sed -r '1s,^#!\s*%{_bindir}/env\s+python,#!%{__python},' -i "$file"
|
sed -r '1s,^#!\s*%{_bindir}/env\s+python,#!%{__python},' -i "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
make check %{?_smp_mflags}
|
make check %{?_smp_mflags}
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
|
|
||||||
%files -f gimp.files
|
%files -f gimp.files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -233,7 +216,6 @@ make check %{?_smp_mflags}
|
|||||||
%{_datadir}/metainfo/*.metainfo.xml
|
%{_datadir}/metainfo/*.metainfo.xml
|
||||||
%{_datadir}/gimp/2.0/*
|
%{_datadir}/gimp/2.0/*
|
||||||
|
|
||||||
|
|
||||||
%dir /etc/gimp
|
%dir /etc/gimp
|
||||||
%dir /etc/gimp/2.0
|
%dir /etc/gimp/2.0
|
||||||
%config(noreplace) /etc/gimp/2.0/controllerrc
|
%config(noreplace) /etc/gimp/2.0/controllerrc
|
||||||
@ -252,9 +234,9 @@ make check %{?_smp_mflags}
|
|||||||
/usr/libexec/gimp-debug-tool-2.0
|
/usr/libexec/gimp-debug-tool-2.0
|
||||||
/usr/share/icons/hicolor/*/apps/gimp.png
|
/usr/share/icons/hicolor/*/apps/gimp.png
|
||||||
|
|
||||||
|
%files libs
|
||||||
%{_libdir}/libgimp*so.*
|
%{_libdir}/libgimp*so.*
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc HACKING README.i18n
|
%doc HACKING README.i18n
|
||||||
%doc /usr/share/gtk-doc
|
%doc /usr/share/gtk-doc
|
||||||
@ -269,11 +251,16 @@ make check %{?_smp_mflags}
|
|||||||
/usr/bin/gimptool-2.0
|
/usr/bin/gimptool-2.0
|
||||||
/usr/bin/gimptool
|
/usr/bin/gimptool
|
||||||
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 17 2020 hexiujun <hexiujun1@huawei.com> - 2:2.10.6-5
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:unpack libs subpackage
|
||||||
|
|
||||||
* Sun Jan 19 2020 daiqianwen <daiqianwen@huawei.com> - 2:2.10.6-4
|
* Sun Jan 19 2020 daiqianwen <daiqianwen@huawei.com> - 2:2.10.6-4
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user