GTK2 is not in CentOS Stream 10, dont ship libs-ui subpackage there

This commit is contained in:
Zdenek Dohnal 2023-04-05 10:48:55 +02:00
parent ce2f83998a
commit 9721e0cb73
2 changed files with 37 additions and 13 deletions

View File

@ -5,6 +5,12 @@
#%%global majminver 5.3
%global majminver $(echo %{version} | sed -E 's/\.[0-9]+$//')
%if 0%{?rhel} <= 9 || 0%{?fedora}
%bcond_without gtk2
%else
%bcond_with gtk2
%endif
Name: gutenprint
Summary: Printer Drivers Package
Version: 5.3.4
@ -53,8 +59,6 @@ BuildRequires: libtool
BuildRequires: make
# we use pkgconfig in spec file to get correct devel packages
BuildRequires: pkgconfig
# gutenprint library uses functions from GTK2 for gutenprint UI library
BuildRequires: pkgconfig(gtk+-2.0)
# for gutenprint usb backend gutenprintMAJMIN+usb
BuildRequires: pkgconfig(libusb-1.0)
# Make sure we get postscriptdriver tags - for automatic driver installation
@ -72,6 +76,10 @@ BuildRequires: sed
BuildRequires: pkgconfig(gimpui-2.0)
%endif
%if %{with gtk2}
# gutenprint library uses functions from GTK2 for gutenprint UI library
BuildRequires: pkgconfig(gtk+-2.0)
%endif
## NOTE ##
# The README file in this package contains suggestions from upstream
@ -95,6 +103,7 @@ Summary: libgutenprint library
%description libs
This package includes libgutenprint library, necessary to run gutenprint.
%if %{with gtk2}
%package libs-ui
Summary: libgutenprintui2 library
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
@ -102,11 +111,14 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description libs-ui
This package includes libgutenprintui2 library, which contains
GTK+ widgets, which may be used for print dialogs etc.
%endif
%package devel
Summary: Library development files for gutenprint
Requires: %{name}%{?_isa} = %{version}-%{release}
%if %{with gtk2}
Requires: gtk2-devel
%endif
%description devel
This package contains headers and libraries required to build applications that
@ -174,14 +186,17 @@ sed -i -e 's,^#!/usr/bin/python3,#!%{__python3},' src/cups/cups-genppdupdate.in
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
%configure --disable-dependency-tracking \
--disable-static \
--enable-samples \
--enable-escputil \
--enable-test \
--disable-rpath \
--enable-cups-1_2-enhancements \
--disable-cups-ppds \
--enable-simplified-cups-ppds
--disable-static \
--enable-samples \
--enable-escputil \
--enable-test \
--disable-rpath \
--enable-cups-1_2-enhancements \
--disable-cups-ppds \
%if %{without gtk2}
--disable-libgutenprintui2 \
%endif
--enable-simplified-cups-ppds
%make_build
@ -251,19 +266,24 @@ exit 0
%{_libdir}/libgutenprint.so.9
%{_libdir}/libgutenprint.so.9.5.0
%if %{with gtk2}
%files libs-ui
%{_libdir}/libgutenprintui2.so.2
%{_libdir}/libgutenprintui2.so.2.5.0
%endif
%files devel
%doc ChangeLog doc/developer/reference-html doc/developer/gutenprint.pdf
%doc doc/gutenprint doc/gutenprintui2
%doc doc/gutenprint
%{_includedir}/gutenprint/
%{_includedir}/gutenprintui2/
%{_libdir}/*.so
%{_libdir}/pkgconfig/gutenprint.pc
%{_libdir}/pkgconfig/gutenprintui2.pc
%exclude %{_libdir}/*.la
%if %{with gtk2}
%doc doc/gutenprintui2
%{_includedir}/gutenprintui2/
%{_libdir}/pkgconfig/gutenprintui2.pc
%endif
%if 0%{?rhel} <= 8 || 0%{?fedora}
%files plugin
@ -288,6 +308,9 @@ exit 0
%{_mandir}/man8/cups-genppd*8*.gz
%changelog
* Wed Apr 05 2023 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-11
- GTK2 is not in CentOS Stream 10, dont ship libs-ui subpackage there
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

1
pes_event Normal file
View File

@ -0,0 +1 @@
gutenprint-libs-ui removed between C9S and C10S