[packages/python-pushover] - initial
arekm
arekm at pld-linux.org
Mon Apr 11 10:52:11 CEST 2016
commit e5b70bd6edcd59427ad7ac627c8469d1f0fcd46b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Apr 11 10:51:53 2016 +0200
- initial
python-pushover.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 88 insertions(+)
---
diff --git a/python-pushover.spec b/python-pushover.spec
new file mode 100644
index 0000000..3627da9
--- /dev/null
+++ b/python-pushover.spec
@@ -0,0 +1,88 @@
+# Conditional build:
+%bcond_with tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module pushover
+Summary: Bindings for the Pushover notification service
+Name: python-%{module}
+Version: 0.2
+Release: 1
+License: GPL v3+
+Group: Libraries/Python
+Source0: https://github.com/Thibauth/python-pushover/archive/v%{version}.tar.gz
+# Source0-md5: 8cb91ab69e6c58a2e831e35f2c092001
+URL: https://github.com/Thibauth/python-pushover
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.713
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Bindings for the Pushover notification service
+
+%package -n python3-%{module}
+Summary: Bindings and command line utility for the Pushover notification service
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-%{module}
+Bindings and command line utility for the Pushover notification
+service.
+
+%prep
+%setup -q
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.rst CHANGES.rst README.rst
+%{py_sitescriptdir}/%{module}.*
+%if "%{py_ver}" > "2.4"
+%{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}/python_%{module}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pushover.git/commitdiff/e5b70bd6edcd59427ad7ac627c8469d1f0fcd46b
More information about the pld-cvs-commit
mailing list