730f308
%global sname oslo.i18n
730f308
730f308
Name:           python-oslo-i18n
23e73bb
Version:        1.3.0
82b4d22
Release:        1%{?dist}
730f308
Summary:        OpenStack i18n library
730f308
License:        ASL 2.0
82b4d22
URL:            https://github.com/openstack/%{sname}
730f308
Source0:        https://pypi.python.org/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
730f308
730f308
BuildRequires:  python2-devel
730f308
BuildRequires:  python-setuptools
730f308
BuildRequires:  python-pbr
730f308
BuildArch:      noarch
730f308
Requires:       python-setuptools
730f308
730f308
%description
730f308
The oslo.i18n library contain utilities for working with internationalization
730f308
(i18n) features, especially translation for text strings in an application
730f308
or library.
730f308
730f308
%package doc
730f308
Summary:    Documentation for OpenStack i18n library
730f308
BuildRequires: python-sphinx
730f308
BuildRequires: python-oslo-sphinx
730f308
730f308
%description doc
730f308
Documentation for the oslo.i18n library.
730f308
730f308
730f308
%prep
730f308
%setup -q -n %{sname}-%{version}
730f308
730f308
# Remove bundled egg-info
730f308
rm -rf %{sname}.egg-info
730f308
730f308
# make doc build compatible with python-oslo-sphinx RPM
730f308
sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
730f308
730f308
%build
730f308
%{__python2} setup.py build
730f308
730f308
%install
730f308
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
730f308
730f308
# Delete tests
730f308
rm -fr %{buildroot}%{python_sitelib}/tests
730f308
730f308
export PYTHONPATH="$( pwd ):$PYTHONPATH"
730f308
pushd doc
730f308
sphinx-build -b html -d build/doctrees   source build/html
730f308
popd
730f308
730f308
# Fix hidden-file-or-dir warnings
730f308
rm -fr doc/build/html/.buildinfo
730f308
730f308
%files
730f308
%doc AUTHORS ChangeLog CONTRIBUTING.rst HACKING.rst LICENSE PKG-INFO README.rst
730f308
%{python2_sitelib}/oslo
730f308
%{python2_sitelib}/*.egg-info
730f308
%{python2_sitelib}/*.pth
730f308
730f308
%files doc
730f308
%doc doc/build/html
730f308
730f308
%changelog
23e73bb
* Fri Jan 09 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.3.0-1
23e73bb
- update to 1.3.0 release
23e73bb
37b0f87
* Fri Dec 05 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-1
37b0f87
- update to 1.1.0 release
37b0f87
f826744
* Fri Sep 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
f826744
- update to 1.0.0 release
f826744
ea2ac21
* Thu Sep 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.4.0-1
ea2ac21
- update to 0.4.0 release
ea2ac21
1b6368d
* Wed Sep 10 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.3.0-1
1b6368d
- update to 0.3.0 release
1b6368d
82b4d22
* Thu Aug 21 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.2.0-1
82b4d22
- update to 0.2.0 release
82b4d22
730f308
* Thu Jul 10 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.0-2
730f308
- Use correct upstream URL
730f308
730f308
* Thu Jul 3 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.0-1
730f308
- Initial release