From b47435072ac4074d8e24d77d17da4b695d30dce4 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Jan 26 2016 18:20:59 +0000 Subject: add spec file --- diff --git a/python-flr.spec b/python-flr.spec new file mode 100644 index 0000000..1f25165 --- /dev/null +++ b/python-flr.spec @@ -0,0 +1,54 @@ +%global srcname flr +%global sum Fedora Lib Rel-Eng python module + +Name: python-%{srcname} +Version: 0.0.1 +Release: 1%{?dist} +Summary: %{sum} + +License: GPLv2+ +URL: http://pypi.python.org/pypi/%{srcname} +Source0: http://pypi.python.org/packages/source/e/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel + +%description +This is a library dedicated to making Release Engineering tasks for Fedora as +generic and re-usable as possible with the primary goal to make all scripts +housed in the Fedora Release Engineering pagure git repo be small simple glue +code around calls to functions found within these library modules. + +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +This is a library dedicated to making Release Engineering tasks for Fedora as +generic and re-usable as possible with the primary goal to make all scripts +housed in the Fedora Release Engineering pagure git repo be small simple glue +code around calls to functions found within these library modules. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build + +%install +# Must do the python2 install first because the scripts in /usr/bin are +# overwritten with every setup.py install, and in general we want the +# python3 version to be the default. +%py2_install + +%check +%{__python2} setup.py test + +# Note that there is no %%files section for the unversioned python module if we are building for several python runtimes +%files -n python2-%{srcname} +%license COPYING +%doc README.rst +%{python2_sitelib}/* + +%changelog +