From 0d36622ab6e44d8110a9f29984288f7fb981b729 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Oct 03 2016 16:25:44 +0000 Subject: Initial import (rhbz 1380671) --- diff --git a/.gitignore b/.gitignore index e69de29..4a406bf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +*.rpm +*.tar* +results_*/ diff --git a/python-jcconv.spec b/python-jcconv.spec new file mode 100644 index 0000000..04e4a09 --- /dev/null +++ b/python-jcconv.spec @@ -0,0 +1,113 @@ +%if 0%{?fedora} || 0%{?rhel} >= 8 +%bcond_without python3 +%else # 0#{?fedora} || 0#{?rhel} >= 8 +%bcond_with python3 +%endif # 0#{?fedora} || 0#{?rhel} >= 8 + +%global pypi_name jcconv +%global common_desc \ +%{summary} - inter-convert hiragana, katakana, \ +half-width kana. + + +Name: python-%{pypi_name} +Version: 0.2.4 +Release: 1%{?dist} +Summary: JapaneseCharacterCONVerter + +License: MIT +URL: https://pypi.python.org/pypi/%{pypi_name} +Source0: https://github.com/besser82/jcconv/archive/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{common_desc} + + +%package -n python2-%{pypi_name} +Summary:%{summary} + +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-six + +Requires: python2-six + +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} +%{common_desc} + + +%if %{with python3} +%package -n python3-%{pypi_name} +Summary:%{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-six + +Requires: python3-six + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{common_desc} +%endif # with python3 + + +%prep +%autosetup -n %{pypi_name}-%{version} + + +%build +%py2_build +%if %{with python3} +%py3_build +%endif # with python3 + + +%install +%if %{with python3} +%py3_install +%endif # with python3 +%py2_install + + +%check +%{__python2} setup.py test -vv +%if %{with python3} +%{__python3} setup.py test -vv +%endif + + +%files -n python2-%{pypi_name} +%license LICENSE.txt +%doc %{pypi_name}.egg-info/PKG-INFO README.rst +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info + + +%if %{with python3} +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc %{pypi_name}.egg-info/PKG-INFO README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%endif # with python3 + + +%changelog +* Mon Oct 03 2016 Björn Esser - 0.2.4-1 +- Initial import (rhbz 1380671) + +* Sat Oct 01 2016 Björn Esser - 0.2.4-0.1 +- Update to new release + +* Fri Sep 30 2016 Björn Esser - 0.2.3-0.2 +- Add Python 3 support +- Informed upstream of missing license + +* Thu Sep 29 2016 Björn Esser - 0.2.3-0.1 +- Initial package (rhbz 1380671) diff --git a/sources b/sources index e69de29..98476b2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4626404b61ac2e8fa20265c499f7658c jcconv-0.2.4.tar.gz