%global srcname pysword %global commit cc9f0637e364b215da683168aa8fa9c8085d0322 %global sum Open source python API wrapper for Sword Bible files %global desc %{expand: A native Python reader of the SWORD Project Bible Modules. Reads SWORD bible files (not commentaries etc.) Detection of locally installed Swrod bible modules. Supports all known SWORD module formats (ztext, ztext4, rawtext, rawtext4) Read from zipped modules, like those available from http://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles Cleans the extracted text of OSIS, GBF or ThML tags. Supports both python 2 and 3 (tested with 2.7 and 3.5) } Summary: %{sum} Name: python-%{srcname} Version: 0.2.5 Release: 1%{?dist} Source0: https://gitlab.com/tgc-dk/%{srcname}/repository/archive.tar.gz?ref=%{version}#/%{srcname}-%{version}.tar.gz Source1: testdata-0.2.5.tar.gz License: GPLv2 BuildArch: noarch URL: https://gitlab.com/tgc-dk/pysword BuildRequires: desktop-file-utils BuildRequires: python3-devel BuildRequires: python3-setuptools %description %{desc} %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{desc} %prep %autosetup -n %{srcname}-%{version}-%{commit} %autosetup -N -T -D -a 1 -n %{srcname}-%{version}-%{commit} %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib} %changelog * Fri Mar 23 2018 Tim Bentley - 0.2.5-1 - 0.2.5 Release repackage * Sat Mar 17 2018 Tim Bentley - 0.2.4-1 - 0.2.4 Release repackage * Sun Feb 11 2018 Tim Bentley - 0.2.3-1 - 0.2.3 Release repackage * Sat Nov 26 2016 Tim Bentley - 0.2.3-0 - 0.2.3 Release