Blame python-ufolib.spec

16f5b63
%global srcname ufoLib
16f5b63
%global pkgname ufolib
16f5b63
16f5b63
Name:           python-%{pkgname}
62244ac
Version:        2.1.0
62244ac
Release:        1%{?dist}
16f5b63
Summary:        A low-level UFO reader and writer
16f5b63
16f5b63
License:        BSD
16f5b63
URL:            https://pypi.python.org/pypi/%{srcname}
62244ac
Source0:        https://github.com/unified-font-object/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
16f5b63
16f5b63
BuildArch:      noarch
16f5b63
16f5b63
%description
16f5b63
ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format
16f5b63
that stores fonts source files.
16f5b63
16f5b63
%package -n python2-%{pkgname}
16f5b63
Summary:        %{summary}
16f5b63
%{?python_provide:%python_provide python2-%{pkgname}}
16f5b63
16f5b63
BuildRequires:  python2-devel
16f5b63
BuildRequires:  python2-setuptools
16f5b63
BuildRequires:  python2-pytest
16f5b63
BuildRequires:  python2-pytest-runner
16f5b63
BuildRequires:  python2-fonttools
16f5b63
Requires: python2-fonttools
16f5b63
16f5b63
%description -n python2-%{pkgname}
16f5b63
ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format
16f5b63
that stores fonts source files.
16f5b63
16f5b63
16f5b63
%package -n python3-%{pkgname}
16f5b63
Summary:        %{summary}
16f5b63
%{?python_provide:%python_provide python3-%{pkgname}}
16f5b63
16f5b63
BuildRequires:  python3-devel
16f5b63
BuildRequires:  python3-setuptools
16f5b63
BuildRequires:  python3-pytest
16f5b63
BuildRequires:  python3-pytest-runner
16f5b63
BuildRequires:  python3-fonttools
16f5b63
Requires: python3-fonttools
16f5b63
16f5b63
%description -n python3-%{pkgname}
16f5b63
ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format
16f5b63
that stores fonts source files.
16f5b63
16f5b63
16f5b63
%prep
16f5b63
%autosetup -n %{srcname}-%{version}
16f5b63
16f5b63
%build
16f5b63
%py2_build
16f5b63
%py3_build
16f5b63
16f5b63
%install
16f5b63
%py2_install
16f5b63
%py3_install
16f5b63
16f5b63
%check
16f5b63
%{__python2} setup.py test
16f5b63
%{__python3} setup.py test
16f5b63
16f5b63
%files -n python2-%{pkgname}
16f5b63
%license LICENSE.txt
16f5b63
%doc README.md
16f5b63
%dir %{python2_sitelib}/%{srcname}
16f5b63
%{python2_sitelib}/%{srcname}-*.egg-info
16f5b63
%{python2_sitelib}/%{srcname}/*.py*
16f5b63
%{python2_sitelib}/%{srcname}/test
16f5b63
16f5b63
%files -n python3-%{pkgname}
16f5b63
%license LICENSE.txt
16f5b63
%doc README.md
16f5b63
%dir %{python3_sitelib}/%{srcname}
16f5b63
%{python3_sitelib}/%{srcname}-*.egg-info
16f5b63
%{python3_sitelib}/%{srcname}/*.py
16f5b63
%{python3_sitelib}/%{srcname}/__pycache__
16f5b63
%{python3_sitelib}/%{srcname}/test
16f5b63
16f5b63
%changelog
62244ac
* Thu May 25 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.1.0-1
62244ac
- New version
62244ac
- Change link in source, since upstream used a 'v' for the new tag
62244ac
16f5b63
* Sun Mar 19 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-4
16f5b63
- Rename the package to lowercase
16f5b63
- Use summary tag for subpackages instead of defining one
16f5b63
16f5b63
* Sat Mar 18 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-3
16f5b63
- Own directory under sitelib
16f5b63
16f5b63
* Sat Mar 18 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-2
16f5b63
- Reintroduce testdata
16f5b63
16f5b63
* Sat Mar 18 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-1
16f5b63
- Initial package