Commit 8279b55df8fa08d2965a40d6721cf4ee4c1145d6

Authored by Lucas Kanashiro
1 parent 176170ff
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Added mailman-api repo specs

specs/mailman-api/bottle.spec 0 → 100644
... ... @@ -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)
... ...
specs/mailman-api/mailman-api.spec 0 → 100644
... ... @@ -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)
... ...