chandankumar pushed to python-barbicanclient (f22). "Initial import bz#1208454."

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 5 04:25:49 UTC 2015


>From 4c8e63ca1c7f4ba7673791bad1a3c4d30e2eda77 Mon Sep 17 00:00:00 2001
From: Chandan Kumar <chkumar246 at gmail.com>
Date: Sun, 5 Apr 2015 09:47:34 +0530
Subject: Initial import bz#1208454.


diff --git a/.gitignore b/.gitignore
index e69de29..d071bc4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-barbicanclient-3.0.3.tar.gz
diff --git a/python-barbicanclient.spec b/python-barbicanclient.spec
new file mode 100644
index 0000000..c24e5d7
--- /dev/null
+++ b/python-barbicanclient.spec
@@ -0,0 +1,98 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2:        %global __python2 /usr/bin/python2}
+%{!?python2_sitelib:  %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+%{!?_licensedir:%global license %%doc}
+
+Name:           python-barbicanclient
+Version:        3.0.3
+Release:        1%{?dist}
+Summary:        Client Library for OpenStack Barbican Key Management API
+
+License:        ASL 2.0
+URL:            https://pypi.python.org/pypi/python-barbicanclient
+Source0:        https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-pbr
+BuildRequires:  python-setuptools
+
+Requires:       python-setuptools
+Requires:       python-requests
+Requires:       python-six >= 1.9.0
+Requires:       python-keystoneclient
+Requires:       python-cliff
+Requires:       python-oslo-i18n
+Requires:       python-oslo-serialization
+Requires:       python-oslo-utils
+Requires:       python-iso8601
+Requires:       python-babel
+Requires:       python-oslo-config
+Requires:       python-netaddr
+Requires:       python-prettytable
+Requires:       python-stevedore
+Requires:       pyparsing
+Requires:       python-cmd2
+Requires:       pytz
+Requires:       python-msgpack
+
+%description
+This is a client for the Barbican Key Management API. There is a
+Python library for accessing the API (barbicanclient module), and
+a command-line script (barbican).
+
+%package doc
+Summary: Documentation for OpenStack Barbican API client
+
+BuildRequires:  python-sphinx
+BuildRequires:  python-oslo-sphinx
+BuildRequires:  python-oslo-utils
+BuildRequires:  dos2unix
+BuildRequires:  python-oslo-i18n
+
+%description doc
+Documentation for the barbicanclient module
+
+%prep
+%setup -q -n %{name}-%{version}
+# Remove bundled egg-info
+rm -rf %{name}.egg-info
+# let RPM handle deps
+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 -rf {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
+%{_bindir}/barbican
+%{python2_sitelib}/barbicanclient
+%{python2_sitelib}/python_barbicanclient-%{version}-py?.?.egg-info
+
+%files doc
+%doc doc/build/html
+%license LICENSE
+
+%changelog
+* Thu Apr 02 2015 Chandan Kumar <chkumar246 at gmail.com> - 3.0.3-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..a693ca1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a4e17dae428831f1de2d5174481fa860  python-barbicanclient-3.0.3.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-barbicanclient.git/commit/?h=f22&id=4c8e63ca1c7f4ba7673791bad1a3c4d30e2eda77


More information about the scm-commits mailing list