diff --git a/.gitignore b/.gitignore index e69de29..d14080c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/iso639-0.1.4.tar.gz diff --git a/python-iso639.spec b/python-iso639.spec new file mode 100644 index 0000000..4fa812c --- /dev/null +++ b/python-iso639.spec @@ -0,0 +1,64 @@ +%global modname iso639 + +Name: python-%{modname} +Version: 0.1.4 +Release: 1%{?dist} +Summary: ISO639-2 support for Python + +License: MIT +URL: https://github.com/janpipek/iso639-python +Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%description +A simple (really simple) library for working with ISO639-2 language codes. + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools + +%description -n python2-%{modname} +A simple (really simple) library for working with ISO639-2 language codes. + +Python 2 version. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-%{modname} +A simple (really simple) library for working with ISO639-2 language codes. + +Python 3 version. + +%prep +%autosetup -n %{modname}-python-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-%{modname} +%license LICENSE +%doc README.md +%{python2_sitelib}/%{modname}-*.egg-info/ +%{python2_sitelib}/%{modname}/ + +%files -n python3-%{modname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{modname}-*.egg-info/ +%{python3_sitelib}/%{modname}/ + +%changelog +* Wed Jun 08 2016 Igor Gnatenko - 0.1.4-1 +- Initial package diff --git a/sources b/sources index e69de29..459c384 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (iso639-0.1.4.tar.gz) = a8dfed87526a9952d01004108ae2ba5af9bfbf4e9ec07b39469a54e24e0bcee08c1b613582b4f47b77cfb8241b80321e415ac07de27469f89fc17a03e58ef0be