Accepting request 538179 from home:pluskalm:branches:GNOME:Factory
- Explicitly require python2 modules for devel package - Cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/538179 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk2?expand=0&rev=252
This commit is contained in:
parent
09a1733c9c
commit
350f4b1ff7
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 1 14:13:22 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Explicitly require python2 modules for devel package
|
||||||
|
- Cleanup with spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 27 12:26:52 UTC 2017 - dimstar@opensuse.org
|
Tue Jun 27 12:26:52 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
38
gtk2.spec
38
gtk2.spec
@ -18,9 +18,8 @@
|
|||||||
|
|
||||||
# When updating the binary version, do not forget to also update baselibs.conf
|
# When updating the binary version, do not forget to also update baselibs.conf
|
||||||
%define gtk_binary_version 2.10.0
|
%define gtk_binary_version 2.10.0
|
||||||
|
|
||||||
Name: gtk2
|
|
||||||
%define _name gtk+
|
%define _name gtk+
|
||||||
|
Name: gtk2
|
||||||
Version: 2.24.31
|
Version: 2.24.31
|
||||||
Release: 0
|
Release: 0
|
||||||
# FIXME: when updating to next version, check whether we can remove the workaround for bgo#596977 below (removing -fomit-frame-pointer)
|
# FIXME: when updating to next version, check whether we can remove the workaround for bgo#596977 below (removing -fomit-frame-pointer)
|
||||||
@ -72,6 +71,7 @@ BuildRequires: gobject-introspection-devel
|
|||||||
BuildRequires: libjasper-devel
|
BuildRequires: libjasper-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: pango-devel
|
BuildRequires: pango-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: translation-update-upstream
|
BuildRequires: translation-update-upstream
|
||||||
BuildRequires: pkgconfig(fontconfig)
|
BuildRequires: pkgconfig(fontconfig)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
@ -84,7 +84,6 @@ BuildRequires: pkgconfig(xi)
|
|||||||
BuildRequires: pkgconfig(xinerama)
|
BuildRequires: pkgconfig(xinerama)
|
||||||
BuildRequires: pkgconfig(xrandr) >= 1.2.99
|
BuildRequires: pkgconfig(xrandr) >= 1.2.99
|
||||||
BuildRequires: pkgconfig(xrender)
|
BuildRequires: pkgconfig(xrender)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GTK+ is a multi-platform toolkit for creating graphical user interfaces.
|
GTK+ is a multi-platform toolkit for creating graphical user interfaces.
|
||||||
@ -94,12 +93,12 @@ ranging from small one-off projects to complete application suites.
|
|||||||
%package -n libgtk-2_0-0
|
%package -n libgtk-2_0-0
|
||||||
Summary: The GTK+ toolkit library (version 2)
|
Summary: The GTK+ toolkit library (version 2)
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires(post): %{name}-tools >= 2.24.20
|
|
||||||
# While hicolor is not a Requires strictly speaking, we put it as
|
# While hicolor is not a Requires strictly speaking, we put it as
|
||||||
# such instead of as a Recommends because many applications just
|
# such instead of as a Recommends because many applications just
|
||||||
# assume it's there and we need to have a low-level package to
|
# assume it's there and we need to have a low-level package to
|
||||||
# bring it in.
|
# bring it in.
|
||||||
Requires: hicolor-icon-theme
|
Requires: hicolor-icon-theme
|
||||||
|
Requires(post): %{name}-tools >= 2.24.20
|
||||||
# gtk+ can work without branding/data/translations. Built in defaults will be used then.
|
# gtk+ can work without branding/data/translations. Built in defaults will be used then.
|
||||||
Recommends: %{name}-branding
|
Recommends: %{name}-branding
|
||||||
Recommends: %{name}-data = %{version}
|
Recommends: %{name}-data = %{version}
|
||||||
@ -117,10 +116,6 @@ Obsoletes: %{name} < %{version}
|
|||||||
# gail is part of gtk+ as of 2.13.x
|
# gail is part of gtk+ as of 2.13.x
|
||||||
Provides: gail = 1.22.1
|
Provides: gail = 1.22.1
|
||||||
Obsoletes: gail < 1.22.1
|
Obsoletes: gail < 1.22.1
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: gtk2-64bit
|
|
||||||
%endif
|
|
||||||
#
|
#
|
||||||
|
|
||||||
%description -n libgtk-2_0-0
|
%description -n libgtk-2_0-0
|
||||||
@ -273,9 +268,9 @@ ranging from small one-off projects to complete application suites.
|
|||||||
Summary: The GTK+ toolkit library (version 2) -- Upstream theme configuration
|
Summary: The GTK+ toolkit library (version 2) -- Upstream theme configuration
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: libgtk-2_0-0 = %{version}
|
Requires: libgtk-2_0-0 = %{version}
|
||||||
Provides: %{name}-branding = %{version}
|
|
||||||
Conflicts: otherproviders(%{name}-branding)
|
|
||||||
Supplements: packageand(%{name}:branding-upstream)
|
Supplements: packageand(%{name}:branding-upstream)
|
||||||
|
Conflicts: otherproviders(%{name}-branding)
|
||||||
|
Provides: %{name}-branding = %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
#BRAND: Provides /etc/gtk-2.0/gtkrc, to define default theme and icon theme.
|
#BRAND: Provides /etc/gtk-2.0/gtkrc, to define default theme and icon theme.
|
||||||
#BRAND: Do not forget to add proper Requires in branding package if changing
|
#BRAND: Do not forget to add proper Requires in branding package if changing
|
||||||
@ -291,17 +286,13 @@ Summary: The GTK+ toolkit library (version 2) -- Development Files
|
|||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
Requires: libgtk-2_0-0 = %{version}
|
Requires: libgtk-2_0-0 = %{version}
|
||||||
# gtk-builder-convert needs this.
|
# gtk-builder-convert needs this.
|
||||||
Requires: python-xml
|
Requires: python2-xml
|
||||||
Requires: typelib-1_0-Gtk-2_0 = %{version}
|
Requires: typelib-1_0-Gtk-2_0 = %{version}
|
||||||
# gail is part of gtk+ as of 2.13.x
|
# gail is part of gtk+ as of 2.13.x
|
||||||
Provides: gail-devel = 1.22.1
|
Provides: gail-devel = 1.22.1
|
||||||
Obsoletes: gail-devel < 1.22.1
|
Obsoletes: gail-devel < 1.22.1
|
||||||
Provides: gtk2-doc = %{version}
|
Provides: gtk2-doc = %{version}
|
||||||
Obsoletes: gtk2-doc < %{version}
|
Obsoletes: gtk2-doc < %{version}
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: gtk2-devel-64bit
|
|
||||||
%endif
|
|
||||||
#
|
#
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -312,6 +303,7 @@ ranging from small one-off projects to complete application suites.
|
|||||||
This package contains the development files for GTK+ 2.x.
|
This package contains the development files for GTK+ 2.x.
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
translation-update-upstream
|
translation-update-upstream
|
||||||
@ -359,7 +351,7 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot}%{_libdir} -name '*.la' -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%if 0%{?suse_version} <= 1130
|
%if 0%{?suse_version} <= 1130
|
||||||
rm %{buildroot}%{_datadir}/locale/kg/LC_MESSAGES/*
|
rm %{buildroot}%{_datadir}/locale/kg/LC_MESSAGES/*
|
||||||
%endif
|
%endif
|
||||||
@ -471,7 +463,6 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun -n libgtk-2_0-0 -p /sbin/ldconfig
|
%postun -n libgtk-2_0-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun immodule-amharic
|
%postun immodule-amharic
|
||||||
%{_gtk_query_immodules_update_cache}
|
%{_gtk_query_immodules_update_cache}
|
||||||
|
|
||||||
@ -502,7 +493,6 @@ if [ ! -f %{_bindir}/gtk-update-icon-cache-2.0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files -n libgtk-2_0-0
|
%files -n libgtk-2_0-0
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc AUTHORS COPYING README NEWS
|
%doc AUTHORS COPYING README NEWS
|
||||||
%if "%{_lib}" == "lib64"
|
%if "%{_lib}" == "lib64"
|
||||||
%doc README.SUSE
|
%doc README.SUSE
|
||||||
@ -528,43 +518,34 @@ fi
|
|||||||
%{_libdir}/libgtk-x11-2.0.so.*
|
%{_libdir}/libgtk-x11-2.0.so.*
|
||||||
|
|
||||||
%files -n typelib-1_0-Gtk-2_0
|
%files -n typelib-1_0-Gtk-2_0
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/girepository-1.0/Gdk-2.0.typelib
|
%{_libdir}/girepository-1.0/Gdk-2.0.typelib
|
||||||
%{_libdir}/girepository-1.0/GdkX11-2.0.typelib
|
%{_libdir}/girepository-1.0/GdkX11-2.0.typelib
|
||||||
%{_libdir}/girepository-1.0/Gtk-2.0.typelib
|
%{_libdir}/girepository-1.0/Gtk-2.0.typelib
|
||||||
|
|
||||||
%files immodule-amharic
|
%files immodule-amharic
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-am-et.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-am-et.so
|
||||||
|
|
||||||
%files immodule-inuktitut
|
%files immodule-inuktitut
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-inuktitut.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-inuktitut.so
|
||||||
|
|
||||||
%files immodule-multipress
|
%files immodule-multipress
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-multipress.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-multipress.so
|
||||||
%config %{_sysconfdir}/gtk-2.0/im-multipress.conf
|
%config %{_sysconfdir}/gtk-2.0/im-multipress.conf
|
||||||
|
|
||||||
%files immodule-thai
|
%files immodule-thai
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-thai.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-thai.so
|
||||||
|
|
||||||
%files immodules-tigrigna
|
%files immodules-tigrigna
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ti-er.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ti-er.so
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ti-et.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ti-et.so
|
||||||
|
|
||||||
%files immodule-vietnamese
|
%files immodule-vietnamese
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-viqr.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-viqr.so
|
||||||
|
|
||||||
%files immodule-xim
|
%files immodule-xim
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-xim.so
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-xim.so
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/gtk-query-immodules-2.0*
|
%{_bindir}/gtk-query-immodules-2.0*
|
||||||
%{_bindir}/gtk-update-icon-cache-2.0
|
%{_bindir}/gtk-update-icon-cache-2.0
|
||||||
%{_bindir}/gtk-update-icon-cache
|
%{_bindir}/gtk-update-icon-cache
|
||||||
@ -575,19 +556,16 @@ fi
|
|||||||
%{_mandir}/man1/gtk-update-icon-cache.1%{?ext_man}
|
%{_mandir}/man1/gtk-update-icon-cache.1%{?ext_man}
|
||||||
|
|
||||||
%files data
|
%files data
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_datadir}/themes/Default/
|
%{_datadir}/themes/Default/
|
||||||
%{_datadir}/themes/Emacs/
|
%{_datadir}/themes/Emacs/
|
||||||
%{_datadir}/themes/Raleigh/
|
%{_datadir}/themes/Raleigh/
|
||||||
|
|
||||||
%files branding-upstream
|
%files branding-upstream
|
||||||
%defattr(-,root,root)
|
|
||||||
%config %{_sysconfdir}/gtk-2.0/gtkrc
|
%config %{_sysconfdir}/gtk-2.0/gtkrc
|
||||||
|
|
||||||
%files lang -f gtk20.lang -f gtk20-properties.lang
|
%files lang -f gtk20.lang -f gtk20-properties.lang
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc %{_datadir}/gtk-doc/html/gail-libgail-util/
|
%doc %{_datadir}/gtk-doc/html/gail-libgail-util/
|
||||||
%doc %{_datadir}/gtk-doc/html/gdk2/
|
%doc %{_datadir}/gtk-doc/html/gdk2/
|
||||||
%doc %{_datadir}/gtk-doc/html/gtk2/
|
%doc %{_datadir}/gtk-doc/html/gtk2/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user