python-cups-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. %{?filter_setup:
  2. %filter_provides_in %{python_sitearch}/.*\.so$
  3. %filter_setup
  4. }
  5. Summary: Python bindings for CUPS
  6. Name: python-cups
  7. Version: 2.0.1
  8. Release: 1%{?_dist_release}
  9. Group: programming
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. License: GPLv2+
  13. URL: https://github.com/OpenPrinting/pycups
  14. Source: https://github.com/OpenPrinting/pycups/releases/download/v%{version}/pycups-%{version}.tar.gz
  15. BuildRequires: cups-devel
  16. BuildRequires: python3-rpm-macros
  17. BuildRequires: python3-devel
  18. %description
  19. This package provides Python bindings for CUPS API,
  20. known as pycups. It was written for use with
  21. system-config-printer, but can be put to other uses as well.
  22. %package -n python3-cups
  23. Summary: Python3 bindings for CUPS API, known as pycups.
  24. Group: programming
  25. %description -n python3-cups
  26. This package provides Python bindings for CUPS API,
  27. known as pycups. It was written for use with
  28. system-config-printer, but can be put to other uses as well.
  29. This is a ported release for python 3
  30. %package doc
  31. Summary: Documentation for python-cups
  32. Group: documentation
  33. BuildArch: noarch
  34. %description doc
  35. Documentation for python-cups.
  36. %prep
  37. %setup -q -n pycups-%{version}
  38. sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py
  39. %build
  40. %py3_build
  41. %install
  42. make install-rpmhook DESTDIR="%{buildroot}"
  43. %py3_install
  44. %ifarch x86_64
  45. export PYTHONPATH=%{buildroot}%{python3_sitearch}
  46. %{__python3} -m pydoc -w cups
  47. rm -rf html
  48. mkdir html
  49. mv cups.html html
  50. %endif
  51. %files -n python3-cups
  52. %license COPYING
  53. %doc README NEWS
  54. %{python3_sitearch}/cups.cpython-3*.so
  55. %{python3_sitearch}/pycups*.egg-info
  56. %{_rpmconfigdir}/fileattrs/psdriver.attr
  57. %{_rpmconfigdir}/postscriptdriver.prov
  58. %ifarch x86_64
  59. %files doc
  60. %doc examples html
  61. %endif
  62. %changelog
  63. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.1-1
  64. - new upstream release.
  65. - built with python3 only.
  66. * Wed Apr 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.74-1
  67. - new upstream release.
  68. * Sat Nov 17 2018 Toshiaki Ara <ara_t@384.jp> 1.9.72-1
  69. - new upstream release.
  70. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.66-1
  71. - new upstream release.
  72. * Sat Sep 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.58-1
  73. - new upstream release.
  74. - built for Vine Linux.
  75. * Thu Jun 9 2011 Tim Waugh <twaugh@redhat.com> - 1.9.57-1
  76. - 1.9.57. Fixes rpm provides script (bug #712027).
  77. * Sun Mar 20 2011 Tim Waugh <twaugh@redhat.com> - 1.9.55-1
  78. - 1.9.55. Support for IPP "resolution" type.
  79. * Wed Feb 23 2011 Tim Waugh <twaugh@redhat.com> - 1.9.54-1
  80. - 1.9.54. The rpm hook is now upstream.
  81. * Wed Feb 23 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-5
  82. - Use rpmconfigdir macro throughout.
  83. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.53-4
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  85. * Tue Jan 25 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-3
  86. - Fixed typo in psdriver.attr that prevented PPD files from being
  87. scanned when generating postscriptdriver tags.
  88. * Thu Jan 20 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-2
  89. - Moved postscriptdriver RPM tagging machinery here. Fixed
  90. leading/trailing whitespace in tags as well.
  91. * Wed Dec 15 2010 Tim Waugh <twaugh@redhat.com> - 1.9.53-1
  92. - 1.9.53 fixing a thread-local storage issue (bug #662805).
  93. * Wed Nov 17 2010 Jiri Popelka <jpopelka@redhat.com> - 1.9.52-2
  94. - Fixed rpmlint errors/warnings (#648986)
  95. - doc subpackage
  96. * Mon Nov 01 2010 Jiri Popelka <jpopelka@redhat.com> - 1.9.52-1
  97. - Initial RPM spec file