2 Commits
epel8 ... epel7

Author SHA1 Message Date
Matthias Runge
f03208e82f Merge branch 'master' of ssh://pkgs.fedoraproject.org/python-pint 2014-12-16 11:58:45 +01:00
Fedora Release Engineering
84201d34af Initial setup of the repo 2014-12-16 11:58:08 +01:00
3 changed files with 65 additions and 0 deletions

1
.gitignore vendored
View File

@@ -0,0 +1 @@
/Pint-0.6.zip

63
python-pint.spec Normal file
View File

@@ -0,0 +1,63 @@
%global pypi_name Pint
Name: python-pint
Version: 0.6
Release: 2%{?dist}
Summary: Physical quantities module
License: BSD
URL: https://github.com/hgrecco/pint
Source0: https://pypi.python.org/packages/source/P/%{pypi_name}/%{pypi_name}-%{version}.zip
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-sphinx
BuildRequires: python-setuptools
%description
Pint is Python module/package to define, operate and manipulate physical
quantities: the product of a numerical value and a unit of measurement.
It allows arithmetic operations between them and conversions from and
to different units.
It is distributed with a comprehensive list of physical units, prefixes
and constants.
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%{__python2} setup.py build
# generate html docs
export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%check
%{__python2} setup.py test
%files
%doc html LICENSE docs/_themes/LICENSE
%{python2_sitelib}/pint
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Dec 15 2014 Matthias Runge <mrunge@redhat.com> - 0.6-2
- change BR python-devel to python2-devel (rhbz#1173109)
* Thu Dec 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6-1
- Initial package.

View File

@@ -0,0 +1 @@
88aa0918019071546b10c5fbdc91ae5e Pint-0.6.zip