mrunge pushed to python-fasteners (f22). "initial import"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Jun 15 19:43:30 UTC 2015


From 0533ce989edba7ab523017fa462c7b414ac83c58 Mon Sep 17 00:00:00 2001
From: Matthias Runge <mrunge at redhat.com>
Date: Mon, 15 Jun 2015 21:36:18 +0200
Subject: initial import


diff --git a/.gitignore b/.gitignore
index e69de29..291d8cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fasteners-0.9.0.tar.gz
diff --git a/python-fasteners.spec b/python-fasteners.spec
new file mode 100644
index 0000000..95c8163
--- /dev/null
+++ b/python-fasteners.spec
@@ -0,0 +1,119 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%endif
+
+%global pypi_name fasteners
+
+Name:           python-%{pypi_name}
+Version:        0.9.0
+Release:        2%{?dist}
+Summary:        A python package that provides useful locks
+
+License:        ASL 2.0
+URL:            https://github.com/harlowja/fasteners
+Source0:        https://codeload.github.com/harlowja/fasteners/tar.gz/%{version}#/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+
+BuildRequires:  python-six
+Requires:       python-six
+
+# tests:
+BuildRequires:  python-testtools
+BuildRequires:  python-nose
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary:        A python package that provides useful locks
+
+BuildRequires:  python3-six
+BuildRequires:  python3-devel
+
+# tests
+BuildRequires:  python3-testtools
+BuildRequires:  python3-nose
+
+Requires:  python3-six
+
+%description -n python3-%{pypi_name}
+A python package that provides useful locks.
+
+
+%endif
+
+
+%description
+A python package that provides useful locks.
+
+
+%prep
+%setup -qc
+mv %{pypi_name}-%{version} python2
+pushd python2
+
+# copy LICENSE etc. to top level dir
+cp -a LICENSE ..
+cp -a README.rst ..
+
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+popd
+
+%if 0%{?with_python3}
+cp -a python2 python3
+%endif
+
+
+%build
+pushd python2
+%{__python2} setup.py build
+popd
+
+%if 0%{?with_python3}
+pushd python3
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+pushd python2
+%{__python2} setup.py install --skip-build --root %{buildroot}
+popd
+
+%if 0%{?with_python3}
+pushd python3
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%check
+nosetests-2.7
+
+%if 0%{?with_python3}
+nosetests-3.4
+%endif # with_python3
+
+%files
+%doc README.rst
+%license LICENSE
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py%{python_version}.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.rst
+%license LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
+%endif # with_python3
+
+
+%changelog
+* Fri Jun 12 2015 Matthias Runge <mrunge at redhat.com> - 0.9.0-2
+- switch to github sourcecode, license included
+- add tests, fix conditionals for python3
+
+* Thu Jun 11 2015 Matthias Runge <mrunge at redhat.com> - 0.9.0-1
+- Initial package. (rhbz#1230548)
diff --git a/sources b/sources
index e69de29..accdcb3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+361228fcb6a39011655307a4bb310bbe  fasteners-0.9.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-fasteners.git/commit/?h=f22&id=0533ce989edba7ab523017fa462c7b414ac83c58


More information about the scm-commits mailing list