[packages/python-pushover] cleanups

glen glen at pld-linux.org
Mon Apr 11 11:14:17 CEST 2016


commit 6fbb082585a4dc49602437195568ce9cf3b93217
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 11 12:13:40 2016 +0300

    cleanups

 python-pushover.spec | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/python-pushover.spec b/python-pushover.spec
index 3432f0a..024d8f6 100644
--- a/python-pushover.spec
+++ b/python-pushover.spec
@@ -1,3 +1,4 @@
+#
 # Conditional build:
 %bcond_with	tests	# do not perform "make test"
 %bcond_without	python2 # CPython 2.x module
@@ -55,10 +56,8 @@ service.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %if %{with python2}
 %py_install
-
 %py_postclean
 %endif
 
@@ -73,18 +72,16 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS.rst CHANGES.rst README.rst
-%{py_sitescriptdir}/%{module}.*
-%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}.py[co]
 %{py_sitescriptdir}/python_%{module}-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
 %doc AUTHORS.rst CHANGES.rst README.rst
 %attr(755,root,root) %{_bindir}/pushover
-%{py3_sitescriptdir}/__pycache__/%{module}.*
-%{py3_sitescriptdir}/%{module}.*
+%{py3_sitescriptdir}/%{module}.py
+%{py3_sitescriptdir}/__pycache__/%{module}.*.pyc
 %{py3_sitescriptdir}/python_%{module}-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pushover.git/commitdiff/6fbb082585a4dc49602437195568ce9cf3b93217



More information about the pld-cvs-commit mailing list