commit
dd203701b4
BIN
1.5.11.tar.gz
Normal file
BIN
1.5.11.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# system-config-printer
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# system-config-printer
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
87
system-config-printer.spec
Normal file
87
system-config-printer.spec
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
%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
|
||||||
|
Release: 14
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://github.com/zdohnal/system-config-printer
|
||||||
|
Source0: https://github.com/zdohnal/system-config-printer/archive/%{version}.tar.gz
|
||||||
|
BuildRequires: libusb1-devel gcc gettext-devel systemd xmlto systemd-devel python3-devel
|
||||||
|
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
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{name} is a graphical tool for CUPS administration. It
|
||||||
|
uses IPP to configure a CUPS server.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%py_byte_compile %{__python3} %%{buildroot}%{python3_sitelib}/cupshelpers
|
||||||
|
%py_byte_compile %{__python3} %%{buildroot}%{datadir}/%{name}
|
||||||
|
|
||||||
|
%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
|
||||||
|
%ghost %verify(not md5 size mtime) %config(noreplace,missingok)
|
||||||
|
%attr(0644,root,root)
|
||||||
|
%{_localstatedir}/run/udev-configure-printer/usb-uris
|
||||||
|
%{_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
|
||||||
|
%{python3_sitelib}/cupshelpers
|
||||||
|
%{python3_sitelib}/*.egg-info
|
||||||
|
|
||||||
|
%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
|
||||||
|
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 1.5.11-14
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user