Sword 1.9.0RC1

This commit is contained in:
Gregory Hellings 2020-09-11 13:29:52 -05:00
parent edc64a5466
commit 0b1ab536aa
3 changed files with 26 additions and 39 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ sword-1.6.1.tar.gz
/sword-1.7.3.900.tar.gz
/sword-1.7.4.tar.gz
/sword-1.8.1.tar.gz
/sword-1.9.0RC1.tar.gz

View File

@ -1 +1 @@
SHA512 (sword-1.8.1.tar.gz) = 5c08c070ea0c86b7d929bbf94c89730eb5a487986deb9edf01c08d1710356aecd1ab3bde4437a778e5fc1ceb05b63287612ec6161381c0986a36344c27d2ab36
SHA512 (sword-1.9.0RC1.tar.gz) = 465931a4c83037850c08cf8e00bf389ebdf8098e1fbc7395d913a8bb6d49a9965bdb5b7b10b50f3e780919887daf3e5555131d42086c69f0f1300f771953e16b

View File

@ -1,19 +1,13 @@
%define soversion 1.8
%define pkg_version 1.8.901
Name: sword
Version: 1.8.1
Release: 24%{?dist}
Version: 1.9.0RC1
Release: 1%{?dist}
Summary: Free Bible Software Project
License: GPLv2
URL: http://www.crosswire.org/sword/
Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-%{version}.tar.gz
Patch0: sword-1.8.1-cmake.diff
Patch1: sword-1.8.1-icu61.diff
Patch2: sword-1.8.1-swig.diff
Patch3: sword-1.8.1-swig-perl.diff
Patch4: sword-1.8.1-integer-types.diff
# svn diff -r3718:3721
Patch5: sword-1.8.1-fix-divs.diff
BuildRequires: cmake
BuildRequires: cmake-data
BuildRequires: openssl-devel
@ -70,44 +64,33 @@ Requires: python3
%description -n python3-sword
Python bindings for The SWORD Library.
%package -n perl-sword
%{?perl_provide:%perl_provide perl-sword}
Summary: Perl bindings for Sword
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: perl
Requires: perl-XML-LibXML
Requires: perl-HTML-Strip
#%package -n perl-sword
#%{?perl_provide:%perl_provide perl-sword}
#Summary: Perl bindings for Sword
#Requires: %{name}%{?_isa} = %{version}-%{release}
#Requires: perl
#Requires: perl-XML-LibXML
#Requires: perl-HTML-Strip
%description -n perl-sword
Perl bindings for The SWORD Library.
#%description -n perl-sword
#Perl bindings for The SWORD Library.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
mkdir build
pushd build
%cmake -DLIBSWORD_LIBRARY_TYPE=Shared \
-DSWORD_PYTHON_3:BOOL=TRUE \
-DSWORD_PERL:BOOL=TRUE \
-DSWORD_BUILD_UTILITIES="Yes" \
-DSWORD_BUILD_UTILS="Yes" \
-DLIBSWORD_SOVERSION=%{soversion} \
-DLIBDIR=%{_libdir} \
-DSWORD_BUILD_TESTS=Yes \
-DSWORD_PYTHON_INSTALL_DIR="%{buildroot}%{_prefix}" \
..
make %{?_smp_mflags}
-DSWORD_PYTHON_INSTALL_DIR="%{buildroot}%{_prefix}"
%cmake_build
%install
pushd build
%make_install
popd
%cmake_install
mkdir -p %{buildroot}%{_datadir}/sword/modules
find %{buildroot} -type f -name "*.la" -delete -print
@ -153,15 +136,18 @@ make tests
%{python3_sitearch}/Sword.py
%{python3_sitearch}/_Sword.cpython-%{python3_version_nodots}*-%{_arch}-linux-gnu*.so
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/sword-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/sword-%{pkg_version}-py%{python3_version}.egg-info
%files -n perl-sword
%{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto/
%exclude %{_libdir}/perl5/perllocal.pod
#%files -n perl-sword
#%{perl_vendorarch}/*
#%exclude %dir %{perl_vendorarch}/auto/
#%exclude %{_libdir}/perl5/perllocal.pod
%changelog
* Fri Sep 11 2020 Greg Helling <greg.hellings@gmail.com> - 1.8.901-1
- Upstream 1.9.0RC1 release
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-24
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild