diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-11-28 23:23:03 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-12-03 11:31:08 +0100 |
commit | 2a91c62cba43150a8ca79cb2a37fac792b6bca70 (patch) | |
tree | 8250b5dc8e14f5f586b8e0a3a9f1aab95bf9c2bf | |
parent | 63c1ba4160c3e9a4bd85310daeddc8a2a7c949f0 (diff) | |
download | kittystore-2a91c62cba43150a8ca79cb2a37fac792b6bca70.tar.gz kittystore-2a91c62cba43150a8ca79cb2a37fac792b6bca70.tar.xz kittystore-2a91c62cba43150a8ca79cb2a37fac792b6bca70.zip |
Add specfile
-rw-r--r-- | MANIFEST.in | 2 | ||||
-rw-r--r-- | kittystore.spec | 64 | ||||
-rwxr-xr-x | setup.py | 1 |
3 files changed, 66 insertions, 1 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 2ca8ea4..7efa2e3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include AUTHORS.txt COPYING.txt pylintrc distribute_setup.py requirements.txt +include AUTHORS.txt COPYING.txt pylintrc distribute_setup.py requirements.txt kittystore.spec graft kittystore/test/testdata diff --git a/kittystore.spec b/kittystore.spec new file mode 100644 index 0000000..633640b --- /dev/null +++ b/kittystore.spec @@ -0,0 +1,64 @@ +%global pypi_name KittyStore +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +Name: kittystore +Version: 0.1.3 +Release: 1%{?dist} +Summary: A storage engine for GNU Mailman v3 archives + +License: GPLv3 +URL: https://fedorahosted.org/hyperkitty/ +Source0: http://pypi.python.org/packages/source/K/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python-devel + +BuildRequires: python-nose +BuildRequires: python-mock +BuildRequires: python-dateutil < 2.0 +BuildRequires: python-storm +BuildRequires: python-zope-interface +BuildRequires: mailman >= 3.0.0b2 +Requires: python-mock +Requires: python-dateutil < 2.0 +Requires: python-storm +Requires: python-zope-interface +Requires: mailman >= 3.0.0b2 + +%description +KittyStore is the archiving library for HyperKitty, the Mailman 3 archiver. +It provides an interface to different storage systems. Currenty only the Storm +ORM system is supported. + +The code is available from: +https://github.com/pypingou/kittystore + + +%prep +%setup -q -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install --skip-build --root %{buildroot} + +%check +%{__python} %{_bindir}/nosetests +#%{__python} setup.py test + +%files +%doc README.rst COPYING.txt AUTHORS.txt +%{_bindir}/kittystore-* +%{python_sitelib}/kittystore +%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + + +%changelog +* Wed Nov 28 2012 Aurelien Bompard <abompard@fedoraproject.org> - 0.1.3 +- initial package @@ -40,6 +40,7 @@ setup( packages=find_packages(), include_package_data=True, install_requires=filetolist("requirements.txt"), + test_suite = "kittystore.test", entry_points={ 'console_scripts': [ 'kittystore-import = kittystore.import:main', |