Commit 8279b55df8fa08d2965a40d6721cf4ee4c1145d6
1 parent
176170ff
Exists in
master
and in
7 other branches
Added mailman-api repo specs
Showing
2 changed files
with
134 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,51 @@ | @@ -0,0 +1,51 @@ | ||
| 1 | +%define name bottle | ||
| 2 | +%define version 0.13_dev | ||
| 3 | +%define unmangled_version 0.13-dev | ||
| 4 | +%define unmangled_version 0.13-dev | ||
| 5 | +%define release 1 | ||
| 6 | + | ||
| 7 | +Summary: Fast and simple WSGI-framework for small web-applications. | ||
| 8 | +Name: %{name} | ||
| 9 | +Version: %{version} | ||
| 10 | +Release: %{release} | ||
| 11 | +Source0: %{name}-%{unmangled_version}.tar.gz | ||
| 12 | +License: MIT | ||
| 13 | +Group: Development/Libraries | ||
| 14 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
| 15 | +Prefix: %{_prefix} | ||
| 16 | +BuildArch: noarch | ||
| 17 | +Vendor: Marcel Hellkamp <marc@gsites.de> | ||
| 18 | +Url: http://bottlepy.org/ | ||
| 19 | +Requires: python >= 2.7 | ||
| 20 | +BuildRequires: python >= 2.7 | ||
| 21 | +BuildRequires: python-devel >= 2.7 | ||
| 22 | +BuildRequires: python-setuptools >= 0.9.8 | ||
| 23 | + | ||
| 24 | +%description | ||
| 25 | + | ||
| 26 | +Bottle is a fast and simple micro-framework for small web applications. It | ||
| 27 | +offers request dispatching (Routes) with url parameter support, templates, | ||
| 28 | +a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and | ||
| 29 | +template engines - all in a single file and with no dependencies other than the | ||
| 30 | +Python Standard Library. | ||
| 31 | + | ||
| 32 | +Homepage and documentation: http://bottlepy.org/ | ||
| 33 | + | ||
| 34 | +Copyright (c) 2014, Marcel Hellkamp. | ||
| 35 | +License: MIT (see LICENSE for details) | ||
| 36 | + | ||
| 37 | + | ||
| 38 | +%prep | ||
| 39 | +%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} | ||
| 40 | + | ||
| 41 | +%build | ||
| 42 | +python setup.py build | ||
| 43 | + | ||
| 44 | +%install | ||
| 45 | +python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
| 46 | + | ||
| 47 | +%clean | ||
| 48 | +rm -rf $RPM_BUILD_ROOT | ||
| 49 | + | ||
| 50 | +%files -f INSTALLED_FILES | ||
| 51 | +%defattr(-,root,root) |
| @@ -0,0 +1,83 @@ | @@ -0,0 +1,83 @@ | ||
| 1 | +%define name mailman-api | ||
| 2 | +%define version 0.2.9 | ||
| 3 | +%define unmangled_version 0.2.9 | ||
| 4 | +%define unmangled_version 0.2.9 | ||
| 5 | +%define release 1 | ||
| 6 | + | ||
| 7 | +Summary: REST API daemon to interact with Mailman 2 | ||
| 8 | +Name: %{name} | ||
| 9 | +Version: %{version} | ||
| 10 | +Release: %{release} | ||
| 11 | +Source0: %{name}-%{unmangled_version}.tar.gz | ||
| 12 | +License: LICENSE.txt | ||
| 13 | +Group: Development/Libraries | ||
| 14 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
| 15 | +Prefix: %{_prefix} | ||
| 16 | +BuildArch: noarch | ||
| 17 | +Vendor: Sergio Oliveira <sergio@tracy.com.br> | ||
| 18 | +Requires: mailman, python >= 2.7, python-paste >= 1.7.5.1, bottle >= 0.11.6 | ||
| 19 | +Url: http://pypi.python.org/pypi/mailman-api/ | ||
| 20 | + | ||
| 21 | +BuildRequires: python >= 2.7, python-devel >= 2.7, python-setuptools >= 0.9.8 | ||
| 22 | + | ||
| 23 | +%description | ||
| 24 | +mailman-api | ||
| 25 | +=========== | ||
| 26 | + | ||
| 27 | +`mailman-api` provides a daemon that will listen to HTTP requests, | ||
| 28 | +providing access to a REST API that can be used to interact with a | ||
| 29 | +locally-installed Mailman instance. | ||
| 30 | + | ||
| 31 | +Documentation | ||
| 32 | +-------------- | ||
| 33 | + | ||
| 34 | +Documentation available at: http://mailman-api.readthedocs.org/ | ||
| 35 | + | ||
| 36 | + | ||
| 37 | +Licensing information | ||
| 38 | +--------------------- | ||
| 39 | + | ||
| 40 | +Copyright (C) 2013-2014 Sergio Oliveira | ||
| 41 | + | ||
| 42 | +This program is free software; you can redistribute it and/or modify | ||
| 43 | +it under the terms of the GNU General Public License as published by | ||
| 44 | +the Free Software Foundation; either version 2 of the License, or | ||
| 45 | +(at your option) any later version. | ||
| 46 | + | ||
| 47 | +This program is distributed in the hope that it will be useful, | ||
| 48 | +but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 49 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 50 | +GNU General Public License for more details. | ||
| 51 | + | ||
| 52 | +You should have received a copy of the GNU General Public License along | ||
| 53 | +with this program; if not, write to the Free Software Foundation, Inc., | ||
| 54 | +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| 55 | + | ||
| 56 | +%{?systemd_requires} | ||
| 57 | + | ||
| 58 | +%prep | ||
| 59 | +%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} | ||
| 60 | + | ||
| 61 | +%build | ||
| 62 | +python setup.py build | ||
| 63 | + | ||
| 64 | +%install | ||
| 65 | +python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
| 66 | +mkdir -p $RPM_BUILD_ROOT%{_unitdir} | ||
| 67 | +cp init/systemd/%{name}.service $RPM_BUILD_ROOT%{_unitdir} | ||
| 68 | + | ||
| 69 | +%post | ||
| 70 | +%service_add_post mailman-api.service | ||
| 71 | + | ||
| 72 | +%preun | ||
| 73 | +%systemd_preun mailman-api.service | ||
| 74 | + | ||
| 75 | +%postun | ||
| 76 | +%systemd_postun mailman-api.service | ||
| 77 | + | ||
| 78 | +%clean | ||
| 79 | +rm -rf $RPM_BUILD_ROOT | ||
| 80 | + | ||
| 81 | +%files -f INSTALLED_FILES | ||
| 82 | +%{_unitdir}/%{name}.service | ||
| 83 | +%defattr(-,root,root) |