chandankumar pushed to python-oslo-context (master). "Initial import bz#1201325"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Mar 27 16:41:35 UTC 2015


>From 42f732f6116c86e28018a9f375a130b449b28699 Mon Sep 17 00:00:00 2001
From: Chandan Kumar <chkumar246 at gmail.com>
Date: Fri, 27 Mar 2015 22:11:01 +0530
Subject: Initial import bz#1201325


diff --git a/.gitignore b/.gitignore
index e69de29..2dd6602 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oslo.context-0.2.0.tar.gz
diff --git a/python-oslo-context.spec b/python-oslo-context.spec
new file mode 100644
index 0000000..bc16734
--- /dev/null
+++ b/python-oslo-context.spec
@@ -0,0 +1,92 @@
+# Created by pyp2rpm-1.1.0b
+%global pypi_name oslo.context
+
+Name:           python-oslo-context
+Version:        0.2.0
+Release:        5%{?dist}
+Summary:        OpenStack Oslo Context library
+
+License:        ASL 2.0
+URL:            https://pypi.python.org/pypi/oslo.context
+Source0:        https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-pbr
+
+Requires:       python-setuptools
+Requires:       python-babel
+Requires:       pytz
+
+%description
+The OpenStack Oslo context library has helpers to maintain
+useful information about a request context.
+The request context is usually populated in the
+WSGI pipeline and used by various modules such as logging.
+
+%package doc
+Summary:        Documentation for the OpenStack Oslo context library
+
+BuildRequires:  python-sphinx
+BuildRequires:  python-oslo-sphinx
+BuildRequires:  python-fixtures
+BuildRequires:  dos2unix
+
+%description doc
+Documentation for the OpenStack Oslo context library.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+# Let RPM handle the dependencies
+sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
+
+# make doc build compatible with python-oslo-sphinx RPM
+sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
+
+rm -f {test-,}requirements.txt
+
+%build
+%{__python2} setup.py build
+# doc
+export PYTHONPATH="$( pwd ):$PYTHONPATH"
+pushd doc
+sphinx-build -b html -d build/doctrees   source build/html
+popd
+# Fix hidden-file-or-dir warnings
+rm -fr doc/build/html/.buildinfo
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+dos2unix doc/build/html/_static/jquery.js
+
+%files
+%license LICENSE
+%doc AUTHORS CONTRIBUTING.rst README.rst PKG-INFO ChangeLog
+%{python2_sitelib}/oslo_context
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%files doc
+%doc doc/build/html
+%license LICENSE
+
+%changelog
+* Fri Mar 27 2015 Chandan Kumar <chkumar246 at gmail.com> - 0.2.0-5
+- Fixed Doc issue and added missing dependencies
+
+* Wed Mar 25 2015 Chandan Kumar <chkumar246 at gmail.com> - 0.2.0-4
+- Fixed docs
+
+* Tue Mar 24 2015 Chandan Kumar <chkumar246 at gmail.com> - 0.2.0-3
+- Fixes typo in spec file
+
+* Tue Mar 24 2015 Chandan Kumar <chkumar246 at gmail.com> - 0.2.0-2
+- Added docs
+
+* Thu Mar 12 2015 Chandan Kumar <chkumar246 at gmail.com> - 0.2.0-1
+- Updated the spec file for oslo-context 0.2.0 release
+
+* Sat Dec 20 2014 Dan Prince <dprince at redhat.com> -XXX
+- Initial package.
diff --git a/sources b/sources
index e69de29..1e7a4ad 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f6ae1896dab2c77ad016e35cd7c4a20d  oslo.context-0.2.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-oslo-context.git/commit/?h=master&id=42f732f6116c86e28018a9f375a130b449b28699


More information about the scm-commits mailing list