adamwill pushed to python-cached_property (f20). "initial import"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 00:40:53 UTC 2015


>From a5698437ff1f3f210483cb922e01507a84bbdcf3 Mon Sep 17 00:00:00 2001
From: Pete Travis <immanetize at fedoraproject.org>
Date: Sat, 21 Mar 2015 09:50:36 -0600
Subject: initial import


diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1d6b3ae
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cached-property-2990020888089841314ad9dd4b0aa6f4d63c4d25.tar.gz
diff --git a/python-cached_property.spec b/python-cached_property.spec
new file mode 100644
index 0000000..c6928e0
--- /dev/null
+++ b/python-cached_property.spec
@@ -0,0 +1,71 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+%global projectname cached-property
+%global modulename cached_property
+%global commit 2990020888089841314ad9dd4b0aa6f4d63c4d25 
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           python-%{modulename}
+Version:        1.0.0 
+Release:        2%{?dist}
+Summary:        A cached-property for decorating methods in Python classes
+License:        BSD
+URL:            https://github.com/pydanny/%{projectname}
+Source0:        https://github.com/pydanny/%{projectname}/archive/%{commit}/%{projectname}-%{commit}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-tox
+BuildRequires:  python-freezegun
+BuildRequires:  python3-devel
+BuildRequires:  python3-freezegun
+
+%description
+cached_property allows properties in Python classes to be cached until the cache
+is invalidated or expired.
+
+%package -n python3-%{projectname}
+Summary:        A cached-property for decorating methods in Python classes.
+
+%description -n python3-%{projectname}
+cached_property allows properties in Python classes to be cached until the cache
+is invalidated or expired.
+
+%prep
+%setup -q -n %{projectname}-%{commit}
+cp -a . %{py3dir}
+
+%build
+%{__python2} setup.py build
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+popd
+
+%check
+tox --sitepackages --skip-missing-interpreters
+
+%files
+%doc AUTHORS.rst HISTORY.rst CONTRIBUTING.rst README.rst
+%license LICENSE
+%{python2_sitelib}/%{modulename}*
+
+%files -n python3-%{projectname}
+%doc AUTHORS.rst HISTORY.rst CONTRIBUTING.rst README.rst
+%license LICENSE
+%{python3_sitelib}/%{modulename}*
+%{python3_sitelib}/__pycache__/%{modulename}*
+
+%changelog
+* Fri Mar 13 2015 Pete Travis <me at petetravis.com> - 1.0.0-2
+- Use the module name for the package name.
+
+* Fri Feb 20 2015 Pete Travis <me at petetravis.com> 1.0.0-1
+- Initial packaging. 
diff --git a/sources b/sources
new file mode 100644
index 0000000..e6c68c4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+aea1e7c3d0b0c670d87aa6381fefe65c  cached-property-2990020888089841314ad9dd4b0aa6f4d63c4d25.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-cached_property.git/commit/?h=f20&id=a5698437ff1f3f210483cb922e01507a84bbdcf3


More information about the scm-commits mailing list