Blob Blame History Raw
%global srcname chardet
Name:           python3-%{srcname}
Version:        2.3.0
Release:        3%{?dist}
Summary:        Character encoding auto-detection in Python

License:        LGPLv2
URL:            https://github.com/%{srcname}/%{srcname}
Source0:        https://pypi.python.org/packages/source/c/%{srcname}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-setuptools

%description
Character encoding auto-detection in Python. As 
smart as your browser. Open source.

%package -n python%{python3_pkgversion}-%{srcname}
Summary:        Character encoding auto-detection in Python 3

%description -n python%{python3_pkgversion}-%{srcname}
Character encoding auto-detection in Python. As 
smart as your browser. Open source.


%prep
%setup -q -n %{srcname}-%{version}
sed -ie '1{/^#!/d}' %{srcname}/chardetect.py


%build
%py3_build


%install
%py3_install
mv %{buildroot}%{_bindir}/{,python%{python3_pkgversion}-}chardetect


%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/python%{python3_pkgversion}-chardetect


%changelog
* Thu Jan 14 2016 Orion Poplwski <orion@cora.nwra.com> - 2.3.0-3
- Drop group, use new macros

* Wed Jan 13 2016 Orion Poplwski <orion@cora.nwra.com> - 2.3.0-2
- Remove unneeded shebang

* Tue Dec 29 2015 Orion Poplwski <orion@cora.nwra.com> - 2.3.0-1
- Initial EPEL7 package