From 2cef3e5b88074d3cab1c6c949648d7de38b22855 Mon Sep 17 00:00:00 2001 From: Paul Whalen pwhalen@redhat.com Date: Tue, 25 Apr 2017 15:07:09 -0400 Subject: Initial import
--- .gitignore | 1 + pyjokes.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 84 insertions(+) create mode 100644 pyjokes.spec
diff --git a/.gitignore b/.gitignore index e69de29..b5ed1ae 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v0.5.0.tar.gz diff --git a/pyjokes.spec b/pyjokes.spec new file mode 100644 index 0000000..f9932e9 --- /dev/null +++ b/pyjokes.spec @@ -0,0 +1,82 @@ +%global pypi_name pyjokes +%global with_tests 0 +%global global_desc One line jokes for programmers (jokes as a service) + +Name: %{pypi_name} +Version: 0.5.0 +Release: 2%{?dist} +Summary: %{global_desc} + +License: BSD +URL: http://pyjok.es/ +Source0: https://github.com/%%7Bpypi_name%7D/%%7Bpypi_name%7D/archive/v%%7Bversion%7D... + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python2-devel +%if 0%{?with_tests} +BuildRequires: python2-pytest +BuildRequires: python3-pytest +%endif + + +%description +%{global_desc}. + +%package -n python2-%{pypi_name} +Summary: %{global_desc} + +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} +%{global_desc}. + +%package -n python3-%{pypi_name} +Summary: %{global_desc} + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{global_desc}. + +%prep +%setup -q -n %{pypi_name}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%if %{with_tests} +%{__python2} setup.py test +%{__python3} setup.py test +%endif + +%files -n python2-%{pypi_name} +%license LICENCE.txt +%doc docs/* +# For noarch packages: sitelib +%{_bindir}/pyjoke* +%{python2_sitelib}/pyjokes-* +%{python2_sitelib}/pyjokes/* + +%files -n python3-%{pypi_name} +%license LICENCE.txt +%doc docs/* +# For noarch packages: sitelib +%{_bindir}/pyjoke* +%{python3_sitelib}/pyjokes-* +%{python3_sitelib}/pyjokes/* + +%changelog +* Fri Mar 03 2017 Paul Whalen pwhalen@redhat.com - 0.5.0-2 +- Add %python_provide macro. +- Consistently use %pypi_name macro. +- Add global decription macro. + +* Fri Feb 24 2017 Paul Whalen pwhalen@redhat.com 0.5.0-1 +- Initial packaging. diff --git a/sources b/sources index e69de29..44eafd8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (v0.5.0.tar.gz) = 6c68d9bd08c84b29898b03c5252e9034303be259888f4c771c254726252a7581caa5b38a1342f66598ed4d20b3e8d90d071ab9bb8419247fdfe83211f84626b7
scm-commits@lists.fedoraproject.org