[packages/python-peewee] new, version 2.3.2

glen glen at pld-linux.org
Tue May 10 09:52:34 CEST 2016


commit 4dfba3c334aa777a75e3a764041b7dcf92361fc3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue May 10 10:51:50 2016 +0300

    new, version 2.3.2
    
    based on fedora package, d7a90c5

 python-peewee.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/python-peewee.spec b/python-peewee.spec
new file mode 100644
index 0000000..b64c4e3
--- /dev/null
+++ b/python-peewee.spec
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	peewee
+Summary:	A small, expressive ORM
+Name:		python-%{module}
+Version:	2.3.2
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	e4a9ce2cf3166ced975b8f7fecca6271
+URL:		http://github.com/coleifer/peewee/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A small, expressive ORM written in Python with built-in support for
+Sqlite, MySQL and PostgreSQL and special extensions like hstore. For
+flask integration, including an admin interface and RESTful API, check
+out flask-peewee.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%py_install
+%py_postclean
+
+mv $RPM_BUILD_ROOT%{_bindir}/{pwiz.py,pwiz}
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/pwiz.*
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/playhouse/test_*
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/playhouse/tests_*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%attr(755,root,root) %{_bindir}/pwiz
+%{py_sitescriptdir}/peewee.py[co]
+%{py_sitescriptdir}/peewee-%{version}-py*.egg-info
+%{py_sitescriptdir}/playhouse
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-peewee.git/commitdiff/4dfba3c334aa777a75e3a764041b7dcf92361fc3



More information about the pld-cvs-commit mailing list