apevec pushed to python-oslo-middleware (master). "Initial import after review (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 23:16:51 UTC 2015
>From 077ceb545352ddad91ba93d4bcac513db9d508c3 Mon Sep 17 00:00:00 2001
From: Alan Pevec <alan.pevec at redhat.com>
Date: Tue, 31 Mar 2015 01:15:17 +0200
Subject: Initial import after review
https://bugzilla.redhat.com/show_bug.cgi?id=1206528
diff --git a/.gitignore b/.gitignore
index e69de29..35a0bdb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oslo.middleware-1.0.0.tar.gz
diff --git a/python-oslo-middleware.spec b/python-oslo-middleware.spec
new file mode 100644
index 0000000..79c6386
--- /dev/null
+++ b/python-oslo-middleware.spec
@@ -0,0 +1,80 @@
+%global pypi_name oslo.middleware
+
+Name: python-oslo-middleware
+Version: 1.0.0
+Release: 2%{?dist}
+Summary: OpenStack Oslo Middleware library
+
+License: ASL 2.0
+URL: https://launchpad.net/oslo
+Source0: https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-pbr
+# for docs build
+BuildRequires: python-oslo-config
+BuildRequires: python-oslo-context
+BuildRequires: python-oslo-i18n
+
+Requires: python-babel
+Requires: python-oslo-config
+Requires: python-oslo-context
+Requires: python-oslo-i18n
+Requires: python-six
+Requires: python-stevedore
+Requires: python-webob
+
+%description
+The OpenStack Oslo Middleware library.
+Oslo middleware library includes components that can be injected into wsgi
+pipelines to intercept request/response flows. The base class can be
+enhanced with functionality like add/delete/modification of http headers
+and support for limiting size/connection etc.
+
+%package doc
+Summary: Documentation for the Oslo Middleware library
+Group: Documentation
+
+BuildRequires: python-sphinx
+BuildRequires: python-oslo-sphinx
+
+%description doc
+Documentation for the Oslo Middleware library.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Let RPM handle the dependencies
+rm -f requirements.txt
+
+%build
+%{__python2} setup.py build
+
+# generate html docs
+sphinx-build doc/source html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo}
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+#delete tests
+rm -fr %{buildroot}%{python2_sitelib}/%{pypi_name}/tests/
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%doc README.rst
+%{python2_sitelib}/oslo_middleware
+%{python2_sitelib}/*.egg-info
+# compatibility oslo namespace
+%{python2_sitelib}/oslo
+%{python2_sitelib}/*-nspkg.pth
+
+%files doc
+%license LICENSE
+%doc html
+
+%changelog
+* Fri Mar 27 2015 Alan Pevec <apevec at redhat.com> - 1.0.0-2
+- Initial package based on openstack-packages spec by dprince
diff --git a/sources b/sources
index e69de29..3f7379a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5102848f299c777e8333d207149e87ab oslo.middleware-1.0.0.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-oslo-middleware.git/commit/?h=master&id=077ceb545352ddad91ba93d4bcac513db9d508c3
More information about the scm-commits
mailing list