[python-alchimia/f19] add specfile for python-alchimia

Vladan Popovic vpopovic at fedoraproject.org
Wed Nov 6 09:19:33 UTC 2013


commit c1f9ed18acc3c374b5b727d7d27c2301314a6387
Author: Vladan Popovic <vpopovic at redhat.com>
Date:   Wed Nov 6 10:16:53 2013 +0100

    add specfile for python-alchimia

 .gitignore           |    1 +
 python-alchimia.spec |   75 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cad2924 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/alchimia-0.4.tar.gz
diff --git a/python-alchimia.spec b/python-alchimia.spec
new file mode 100644
index 0000000..827a033
--- /dev/null
+++ b/python-alchimia.spec
@@ -0,0 +1,75 @@
+# python3 support isn't added because twisted isn't ported yet
+
+%global srcname alchimia
+
+Name:       python-%{srcname}
+Version:    0.4
+Release:    3%{?dist}
+Summary:    A Python library that integrates Twisted with SqlAlchemy
+
+Group:      Development/Libraries
+License:    MIT
+URL:        https://github.com/alex/%{srcname}
+Source0:    https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
+
+
+BuildArch: noarch
+
+
+BuildRequires: python-setuptools
+BuildRequires: pytest
+BuildRequires: python-twisted
+BuildRequires: python-sqlalchemy
+BuildRequires: python-pbr
+BuildRequires: python2-devel
+
+
+Requires: python-sqlalchemy
+Requires: python-twisted
+
+
+%description
+alchimia lets you use most of the SQLAlchemy-core API with Twisted,
+it does not allow you to use the ORM.
+
+
+%prep
+%setup -q -n %{srcname}-%{version}
+rm -rf %{srcname}.egg-info
+rm -f {test-,}requirements.txt
+
+
+%check
+%{__python2} setup.py test
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc README.rst AUTHORS CONTRIBUTING.rst LICENSE ChangeLog
+%{python2_sitelib}/%{srcname}/
+%{python2_sitelib}/%{srcname}-%{version}-py*.egg-info/
+
+
+%changelog
+* Wed Oct 16 2013 Vladan Popovic <vpopovic at redhat.com> - 0.4-3
+- Add build requirements python-pbr and python-devel
+- Move the deletion of unneeded files in the prep section
+- Remove requirements.txt and test-requirements.txt
+
+* Wed Oct 16 2013 Vladan Popovic <vpopovic at redhat.com> - 0.4-2
+- Remove prebuilt package egg
+- Remove EPEL5 parts
+- Shorten the licence name (only MIT)
+- Change the summary
+- Add files to %%doc
+- Fix typo Buildarch -> BuildArch
+
+* Thu Oct 10 2013 Vladan Popovic <vpopovic at redhat.com> - 0.4-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..36e789b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5464e9a342d53fc1807891770f2bfe90  alchimia-0.4.tar.gz


More information about the scm-commits mailing list