2020-02-14 11:31:53 +08:00
|
|
|
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
|
|
|
|
|
|
|
|
|
Name: system-config-printer
|
|
|
|
|
Summary: a graphical tool for CUPS administration
|
|
|
|
|
Version: 1.5.11
|
2024-11-26 22:48:33 +08:00
|
|
|
Release: 24
|
2020-02-14 11:31:53 +08:00
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://github.com/zdohnal/system-config-printer
|
|
|
|
|
Source0: https://github.com/zdohnal/system-config-printer/archive/%{version}.tar.gz
|
2022-07-21 17:43:07 +08:00
|
|
|
BuildRequires: libusb1-devel gcc gettext-devel systemd xmlto systemd-devel
|
2020-02-14 11:31:53 +08:00
|
|
|
BuildRequires: intltool cups-devel >= 1.2 desktop-file-utils >= 0.2.92 pkgconfig(glib-2.0)
|
|
|
|
|
Requires: desktop-file-utils >= 0.2.92 python3-dbus%{?_isa} gtk3%{?_isa} python3-gobject%{?_isa}
|
|
|
|
|
Requires: libnotify%{?_isa} python3-cairo%{?_isa} python3-cups >= 1.9.60 libcanberra-gtk3
|
|
|
|
|
Requires: python3-firewall PackageKit-gtk3-module desktop-notification-daemon dbus-x11
|
|
|
|
|
Requires: python3-pycurl gobject-introspection python3-gobject python3-dbus python3-requests
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
Obsoletes: %{name}-libs = %{version}-%{release} %{name}-applet = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-udev = %{version}-%{release} hal-cups-utils < 0.6.20
|
|
|
|
|
Provides: %{name}-libs = %{version}-%{release} %{name}-applet = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-udev = %{version}-%{release} hal-cups-utils = 0.6.20
|
|
|
|
|
|
2023-01-07 16:22:28 +08:00
|
|
|
Patch1: Fix-constructing-the-auth-dialog.patch
|
2023-01-09 10:10:20 +08:00
|
|
|
Patch2: Use-ValueError-instead-of-ImportError-to-catch-excep.patch
|
2023-01-09 15:19:34 +08:00
|
|
|
Patch3: Fix-typo.patch
|
2023-01-09 15:32:46 +08:00
|
|
|
Patch4: Update-da.po.patch
|
2023-01-09 15:44:28 +08:00
|
|
|
Patch5: Update-de.po.patch
|
2023-01-07 16:22:28 +08:00
|
|
|
|
2020-02-14 11:31:53 +08:00
|
|
|
%description
|
|
|
|
|
%{name} is a graphical tool for CUPS administration. It
|
|
|
|
|
uses IPP to configure a CUPS server.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
2024-11-26 22:48:33 +08:00
|
|
|
# workaround https://github.com/pypa/setuptools/issues/3143
|
|
|
|
|
sed -i 's/setup.py install --prefix=$(DESTDIR)$(prefix)/setup.py install --root $(DESTDIR) --prefix=$(prefix)/' Makefile*
|
2020-02-14 11:31:53 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./bootstrap
|
|
|
|
|
%configure --with-udev-rules
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install DESTDIR=%buildroot
|
|
|
|
|
|
|
|
|
|
install -d %buildroot%{_localstatedir}/run/udev-configure-printer
|
|
|
|
|
touch %buildroot%{_localstatedir}/run/udev-configure-printer/usb-uris
|
|
|
|
|
|
2022-03-31 15:28:31 +08:00
|
|
|
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}
|
2020-02-14 11:31:53 +08:00
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_bindir}/install-printerdriver
|
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/metainfo/%{name}.appdata.xml
|
|
|
|
|
%{_bindir}/%{name}-applet
|
|
|
|
|
%{_sysconfdir}/xdg/autostart/print-applet.desktop
|
|
|
|
|
%{_prefix}/lib/udev/rules.d/*.rules
|
|
|
|
|
%{_prefix}/lib/udev/udev-*-printer
|
|
|
|
|
%ghost %dir %{_localstatedir}/run/udev-configure-printer
|
2020-09-08 20:33:29 +08:00
|
|
|
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %attr(0644,root,root) %{_localstatedir}/run/udev-configure-printer/usb-uris
|
2020-02-14 11:31:53 +08:00
|
|
|
%{_unitdir}/configure-printer@.service
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
|
|
%{_datadir}/dbus-1/services/*.service
|
|
|
|
|
%{_bindir}/scp-dbus-service
|
|
|
|
|
%dir %{_sysconfdir}/cupshelpers
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/cupshelpers/preferreddrivers.xml
|
2024-11-26 22:48:33 +08:00
|
|
|
%{python3_sitelib}/cupshelpers-1.0-py%{python3_version}.egg-info/*
|
|
|
|
|
%{python3_sitelib}/cupshelpers/*
|
2020-02-14 11:31:53 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc po/ChangeLog NEWS ABOUT-NLS AUTHORS ChangeLog-OLD
|
|
|
|
|
%{_mandir}/man1/%{name}-applet.1*
|
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
rm -rf /var/cache/foomatic/foomatic.pickle
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-11-26 22:48:33 +08:00
|
|
|
* Tue Nov 26 2024 yangzhenyu <dev11101@linx-info.com> - 1.5.11-24
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Fix ModuleNotFoundError: No module named 'cupshelpers'
|
|
|
|
|
|
2023-02-21 15:06:31 +08:00
|
|
|
* Tue Feb 21 2023 yaoxin <yaoxin30@h-partners.com> - 1.5.11-23
|
|
|
|
|
- Fix build failed
|
|
|
|
|
|
2023-01-09 15:44:28 +08:00
|
|
|
* Mon Jan 09 2023 xuxinyu <xuxinyu@xfusion.com> - 1.5.11-22
|
|
|
|
|
- Update de.po
|
|
|
|
|
|
2023-01-09 15:32:46 +08:00
|
|
|
* Mon Jan 09 2023 xuxinyu <xuxinyu@xfusion.com> - 1.5.11-21
|
|
|
|
|
- Update da.po
|
|
|
|
|
|
2023-01-09 15:19:34 +08:00
|
|
|
* Mon Jan 09 2023 xuxinyu <xuxinyu@xfusion.com> - 1.5.11-20
|
|
|
|
|
- Fix typo
|
|
|
|
|
|
2023-01-09 10:10:20 +08:00
|
|
|
* Mon Jan 09 2023 xuxinyu <xuxinyu@xfusion.com> - 1.5.11-19
|
|
|
|
|
- Use ValueError instead of ImportError to catch exception
|
|
|
|
|
- when importing GIR bindings
|
|
|
|
|
|
|
|
|
|
* Sat Jan 07 2023 xuxinyu <xuxinyu@xfusion.com> - 1.5.11-18
|
2023-01-07 16:22:28 +08:00
|
|
|
- Fix constructing the auth dialog
|
|
|
|
|
|
2022-07-21 17:43:07 +08:00
|
|
|
* Thu Jul 21 2022 yaoxin <yaoxin30@h-partners.com> - 1.5.11-17
|
|
|
|
|
- Remove unneeded dependdencies python3-devel
|
|
|
|
|
|
2022-03-31 15:28:31 +08:00
|
|
|
* Thu Mar 31 2022 baizhonggui <baizhonggui@huawei.com> - 1.5.11-16
|
|
|
|
|
- Modify byte_compile syntax to fix build error
|
|
|
|
|
|
2020-09-08 20:33:29 +08:00
|
|
|
* Tue Sep 08 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.5.11-15
|
|
|
|
|
- Resolve installation failure
|
|
|
|
|
|
2020-02-14 11:31:53 +08:00
|
|
|
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 1.5.11-14
|
|
|
|
|
- Package init
|