Compare commits

...
Sign in to create a new pull request.

67 commits

Author SHA1 Message Date
Python Maint
9cc0caea74 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:58:40 +02:00
Python Maint
1e2cc791e1 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:19:25 +02:00
František Zatloukal
61def2183b Rebuilt for icu 77.1 2025-08-06 09:58:04 +02:00
Aaron Rainbolt
a65616c2a9 Set the version number right 2025-07-26 21:35:46 -05:00
Aaron Rainbolt
a99ba19821 Create changelog entry 2025-07-26 21:29:50 -05:00
Aaron Rainbolt
b6db4ed1e7 Migrate InstallMgr test to tmt framework (rhbz#2383081) 2025-07-26 21:27:34 -05:00
Aaron Rainbolt
b731c1ca12 Set non-standard CMake variables back to expected values (rhbz#2381665) 2025-07-26 21:26:59 -05:00
Aaron Rainbolt
90aaa0eea0 Set minimum CMake version to 3.5 (rhbz#2381472) 2025-07-26 21:26:02 -05:00
Fedora Release Engineering
59dccf301b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 18:58:24 +00:00
Jitka Plesnikova
b29427f84d Perl 5.42 rebuild 2025-07-07 16:27:13 +02:00
Python Maint
5b21f8175b Rebuilt for Python 3.14 2025-06-02 20:44:59 +02:00
Fedora Release Engineering
46af13b431 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 12:07:25 +00:00
Pete Walter
cc86d291b2 Rebuild for ICU 76 2024-12-08 22:47:18 +00:00
Fedora Release Engineering
e11297126c Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 06:51:31 +00:00
Jitka Plesnikova
c90940a034 Perl 5.40 rebuild 2024-06-12 13:06:36 +02:00
Python Maint
8ddee760f9 Rebuilt for Python 3.13 2024-06-07 09:06:40 +02:00
Pete Walter
f3151a9cdf Rebuild for ICU 74 2024-01-31 20:16:20 +00:00
Fedora Release Engineering
8d87410824 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 04:59:42 +00:00
Miroslav Suchý
b014cd4adb Correct SPDX license formula
GPLv2 is not the correct SPDX id.
2023-10-07 07:04:41 +00:00
Aaron Rainbolt
7b1439e7bc Revamp packaging, fix Python bindings build failure (fedora#2241414) 2023-10-05 14:22:52 -06:00
4dc4afda3c Unretirement request: https://pagure.io/releng/issue/11700 2023-10-05 10:29:23 +02:00
Miro Hrončok
196b7b658c Retired: Fails to install
See https://pagure.io/releng/issue/11685
2023-09-26 12:05:27 +02:00
Fedora Release Engineering
ec35210df3 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 02:58:09 +00:00
František Zatloukal
2d7873622a Rebuilt for ICU 73.2 2023-07-11 22:22:19 +02:00
Jitka Plesnikova
202d0fd0e1 Perl 5.38 rebuild 2023-07-11 15:29:44 +02:00
Jitka Plesnikova
65f444fb04 Replace requirement of meta-package perl by perl-interpreter 2023-06-30 12:04:16 +02:00
Python Maint
ec2d653471 Rebuilt for Python 3.12 2023-06-13 20:54:52 +02:00
Fedora Release Engineering
34d01c04f1 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 04:27:05 +00:00
Pete Walter
678d8d45ec Rebuild for ICU 72 2022-12-31 03:22:39 +00:00
Jitka Plesnikova
c122a88faa Add BR perl-generators to automatically generates run-time dependencies 2022-12-12 14:36:02 +01:00
František Zatloukal
ad38702005 Rebuilt for ICU 71.1 2022-08-01 15:11:07 +02:00
Fedora Release Engineering
602758a0b0 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 09:53:33 +00:00
Python Maint
d0c48bd7cf Rebuilt for Python 3.11 2022-06-13 15:27:58 +02:00
Jitka Plesnikova
945d67d6ba Perl 5.36 rebuild 2022-05-30 19:43:46 +02:00
Fedora Release Engineering
a63565abdc - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 02:06:39 +00:00
Fedora Release Engineering
9aab7600b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 18:42:33 +00:00
Gregory Hellings
305cf0bc62 Update to follow latest Python guidelines 2021-06-14 12:09:43 -05:00
Gregory Hellings
fee6086aa9 Correct subpackage deps 2021-06-09 13:00:33 -05:00
Python Maint
6684563c07 Rebuilt for Python 3.10 2021-06-04 21:16:05 +02:00
Gregory Hellings
e58637efac Add epoch tag to hopefully fix sorting 2021-05-24 12:49:46 -05:00
Jitka Plesnikova
af12ea8ed1 Perl 5.34 rebuild 2021-05-21 12:26:49 +02:00
Pete Walter
f800d0b211 Rebuild for ICU 69 2021-05-19 16:50:16 +01:00
Fedora Release Engineering
0f2b46bdaa - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 21:26:53 +00:00
Tom Stellard
db795738b5 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 22:08:46 +00:00
Miroslav Vadkerti
0c3d3e143c Pass yes to installmgr --init
Othewise tests hang on this

```
[root@ip-172-31-26-137 str]# ./installmgr.sh
+ OPTS=--allow-internet-access-and-risk-tracing-and-jail-or-martyrdom
+ installmgr --allow-internet-access-and-risk-tracing-and-jail-or-martyrdom -init

While connecting to an encrypted install source, SWORD can allow
unverified peers, e.g., self-signed certificates. While this is
generally considered safe because SWORD only retrieves Bible content
and does not send any data to the server, it could still possibly
allow a malicious actor to sit between you and the server, as with
unencrypted sources.  Type no to turn this off.

Would you like to allow unverified peers? [yes] ^C
```

Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
2020-12-16 12:17:30 +01:00
Gregory Hellings
2d98604e2a Add changelog for previous commit 2020-12-14 14:46:55 -06:00
Gregory Hellings
8c2bff53f6 Restore PERL bindings 2020-12-14 14:45:27 -06:00
Greg Hellings
e8736bb849 Remove unused patches 2020-12-02 10:30:09 -06:00
Greg Hellings
c82f2d9de5 Sword 1.9.0 2020-12-01 10:49:44 -06:00
Miro Hrončok
388b610e8f https://fedoraproject.org/wiki/Changes/Python_Upstream_Architecture_Names 2020-10-02 20:25:11 +02:00
Gregory Hellings
1de7ee5f06 Sword 1.9.0RC3 2020-10-02 09:55:02 -05:00
Gregory Hellings
0b1ab536aa Sword 1.9.0RC1 2020-09-11 13:29:52 -05:00
Fedora Release Engineering
edc64a5466 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 09:24:29 +00:00
Fedora Release Engineering
d2c9fcbd12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 11:55:10 +00:00
Jitka Plesnikova
1b24e9bc66 Perl 5.32 rebuild 2020-06-22 19:11:01 +02:00
Miro Hrončok
10cc2cdb25 Rebuilt for Python 3.9 2020-05-26 03:51:21 +02:00
Pete Walter
e797d3ac9a Rebuild for ICU 67 2020-05-15 14:14:42 +01:00
Gregory Hellings
a3361d5879 Add patch to fix divs 2020-04-26 00:48:43 -05:00
Fedora Release Engineering
7661d12043 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 00:52:12 +00:00
Pete Walter
c9641078a7 Rebuild for ICU 65 2019-11-01 15:53:31 +00:00
Miro Hrončok
c3adb3f974 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 14:39:10 +02:00
Gregory Hellings
6ad2f353df Add tests 2019-08-27 22:15:36 -05:00
Jaak Ristioja
fddb031c12
Fixed potentially conflicting integer types being defined 2019-08-24 14:47:02 +03:00
Miro Hrončok
c2639a5649 Rebuilt for Python 3.8 2019-08-19 11:06:34 +02:00
Dominique Corbex
8b9dd20df6 Add Perl bindings 2019-08-05 14:41:05 +02:00
Fedora Release Engineering
7ab2dc8c5e - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 00:45:30 +00:00
Miro Hrončok
849d9d02d2 Relax the %files glob, prep for Python 3.8 2019-05-19 19:15:06 +02:00
13 changed files with 469 additions and 344 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

3
.gitignore vendored
View file

@ -8,3 +8,6 @@ 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
/sword-1.9.0RC3.tar.gz
/sword-1.9.0.tar.gz

3
LICENSE_README Normal file
View file

@ -0,0 +1,3 @@
Files under the CMake directory originate from code licensed under the BSD-3-Clause license, the Boost Software License or (possibly) the BSD-2-Clause license. Modifications to these files made by the SWORD developers are licensed under GPLv2, effectively mixing code of two different licenses into the same file.
The files sword-1.9.0/include/ftpparse.h and sword-1.9.0/src/utilfuns/ftpparse.c contain an informal non-free license, however their author (D. J. Bernstein) has placed them into the public domain and alternately allowed them to be used under any one of several FOSS licenses. (See https://cr.yp.to/distributors.html, section "What are the distribution terms for ftpparse?") The versions of these files in SWORD aren't *quite* identical to the originals (they appear to have been modified to work properly and safely in SWORD), but they're very nearly identical. The License field of the package contains the three Fedora-allowable licenses given.

105
cmake-perl-bindings.diff Normal file
View file

@ -0,0 +1,105 @@
diff -bru a/bindings/swig/perl/CMakeLists.txt b/bindings/swig/perl/CMakeLists.txt
--- a/bindings/swig/perl/CMakeLists.txt 2020-07-29 18:59:48.000000000 +0200
+++ b/bindings/swig/perl/CMakeLists.txt 2020-11-01 19:56:20.825016280 +0100
@@ -1,68 +1,35 @@
-# This method works but there is no good way to install the results of it
-#FIND_PACKAGE(PerlLibs REQUIRED)
-#INCLUDE_DIRECTORIES(${PERL_INCLUDE_PATH})
-#
-#SET_SOURCE_FILES_PROPERTIES(../sword.i PROPERTIES CPLUSPLUS ON)
-#SET_SOURCE_FILES_PROPERTIES(../sword.i PROPERTIES SWIG_FLAGS "")
-#
-#SWIG_ADD_MODULE(Sword perl
-# "../sword.i"
-#)
-#
-#SWIG_LINK_LIBRARIES(Sword ${PERL_LIBRARY} ${SWORD_LINK_NAME})
-
-FIND_PACKAGE(Perl REQUIRED)
-
-SET(PERL_MAKEFILE "#!${PERL_EXECUTABLE}
-
-use ExtUtils::MakeMaker;
-
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written
-WriteMakefile(
- 'NAME' => 'Sword',
- 'VERSION' => '${SWORD_VERSION}',
- 'INC' => '-I\"${CMAKE_SOURCE_DIR}/include\" -I\"${CMAKE_CURRENT_SOURCE_DIR}/..\"',
- 'DEFINE' => '-DSWIG',
- 'LIBS' => '-L\"${CMAKE_BINARY_DIR}\" -lsword -lz',
- 'FIRST_MAKEFILE' => 'Makefile.perlswig',
- 'PREREQ_PM' => {},
- ($] >= 5.005 ? ## Add these new keywords supported since 5.005
- (ABSTRACT => 'Sword Project perl bindings', # retrieve abstract from module
- AUTHOR => 'Sword Project <sword-devel@crosswire.org>') : ()),
-);
-
-rename 'Makefile.perlswig', 'Makefile.perlswig.old' or die \"Can't rename Makefile\";
-open(INPUT, '<Makefile.perlswig.old') or die \"Can't open input Makefile.old\";
-open(OUTPUT,'>Makefile.perlswig') or die \"Can't open output Makefile\";
-while (<INPUT>) {
- s/\\-lsword/\\-lsword \\-lstdc\\+\\+/;
- print OUTPUT \"$_\";
-}
-
-close INPUT;
-close OUTPUT;")
-FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Makefile.PL "${PERL_MAKEFILE}")
-
-SET(SKIP_MAKEFILE "\\.old
-~$
-\\.bak
-^CVS
-Makefile$")
-FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Makefile.SKIP "${SKIP_MAKEFILE}")
-
-SWORD_SWIG_GENERATE(perl)
-
-ADD_CUSTOM_COMMAND(OUTPUT MANIFEST Makefile.perlswig
- COMMAND ${PERL_EXECUTABLE} Makefile.PL && make -f Makefile.perlswig clean
- COMMAND ${PERL_EXECUTABLE} Makefile.PL && make -f Makefile.perlswig manifest
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
-
-ADD_CUSTOM_TARGET(perlswig ALL
- COMMAND make -f Makefile.perlswig
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Sword.cxx ${CMAKE_CURRENT_BINARY_DIR}/Makefile.perlswig ${SWORD_LINK_NAME}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+# Perl Swig bindings
-INSTALL(SCRIPT install.cmake)
+cmake_minimum_required(VERSION 3.14.7)
+cmake_policy(SET CMP0078 NEW)
+cmake_policy(SET CMP0086 NEW)
+set(UseSWIG_MODULE_VERSION 2)
-MESSAGE(STATUS "Perl: yes")
+find_package(SWIG REQUIRED)
+include(${SWIG_USE_FILE})
+
+find_package(PerlLibs REQUIRED)
+include_directories(${PERL_INCLUDE_PATH})
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
+
+
+set_source_files_properties(../sword.i PROPERTIES CPLUSPLUS ON)
+
+SWIG_ADD_LIBRARY(Sword
+ TYPE SHARED
+ LANGUAGE perl SOURCES ../sword.i
+ )
+TARGET_LINK_LIBRARIES(Sword ${PERL_LIBRARIES} ${SWORD_LINK_NAME})
+
+
+install(
+ TARGETS Sword
+ LIBRARY DESTINATION "${LIB_INSTALL_DIR}/perl5/vendor_perl/auto/Sword"
+)
+get_target_property(SWIG_BUILDIR Sword SWIG_SUPPORT_FILES_DIRECTORY)
+
+message(STATUS "SWIG_BUILDIR=${SWIG_BUILDIR}")
+install(
+ FILES ${SWIG_BUILDIR}/Sword.pm
+ DESTINATION "${LIB_INSTALL_DIR}/perl5/vendor_perl"
+)

7
installmgr_test.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
set -ex
OPTS="--allow-internet-access-and-risk-tracing-and-jail-or-martyrdom"
yes | installmgr $OPTS -init
installmgr $OPTS -sc
installmgr $OPTS -r CrossWire

View file

@ -0,0 +1,82 @@
From 07b31a74ea920077fa0d69cdab2ab188dd17b322 Mon Sep 17 00:00:00 2001
From: Aaron Rainbolt <arraybolt3@gmail.com>
Date: Wed, 27 Sep 2023 10:51:27 -0600
Subject: [PATCH] Migrate to setuptools
---
bindings/swig/oldmake/Makefile.am | 2 +-
bindings/swig/package/Makefile.am | 3 +--
bindings/swig/package/Makefile.in | 3 +--
bindings/swig/python/CMakeLists.txt | 7 +++++--
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/bindings/swig/oldmake/Makefile.am b/bindings/swig/oldmake/Makefile.am
index 45a37ef..789813b 100644
--- a/bindings/swig/oldmake/Makefile.am
+++ b/bindings/swig/oldmake/Makefile.am
@@ -76,7 +76,7 @@ python_makebuild: $(PYTHONSWIG)
echo "writing python/setup.py"
@echo "#! /usr/bin/python" > python/setup.py
@echo "" >> python/setup.py
- @echo "from distutils.core import setup, Extension" >> python/setup.py
+ @echo "from setuptools import setup, Extension" >> python/setup.py
@echo "setup (name = \"sword\"," >> python/setup.py
@echo " version = \"$(VERSION)\"," >> python/setup.py
@echo " maintainer = \"Sword Developers\"," >> python/setup.py
diff --git a/bindings/swig/package/Makefile.am b/bindings/swig/package/Makefile.am
index 14500c3..f44974d 100644
--- a/bindings/swig/package/Makefile.am
+++ b/bindings/swig/package/Makefile.am
@@ -84,8 +84,7 @@ python_makebuild: $(PYTHONSWIG)
echo "writing python/setup.py"
@echo "#! /usr/bin/python" > python/setup.py
@echo "" >> python/setup.py
- @echo "from distutils.core import setup" >> python/setup.py
- @echo "from distutils.extension import Extension" >> python/setup.py
+ @echo "from setuptools import setup, Extension" >> python/setup.py
@echo "import commands" >> python/setup.py
@echo "" >> python/setup.py
@echo "def pkgconfig(*packages, **kw):" >> python/setup.py
diff --git a/bindings/swig/package/Makefile.in b/bindings/swig/package/Makefile.in
index b5f05c9..370a9e7 100644
--- a/bindings/swig/package/Makefile.in
+++ b/bindings/swig/package/Makefile.in
@@ -938,8 +938,7 @@ python_makebuild: $(PYTHONSWIG)
echo "writing python/setup.py"
@echo "#! /usr/bin/python" > python/setup.py
@echo "" >> python/setup.py
- @echo "from distutils.core import setup" >> python/setup.py
- @echo "from distutils.extension import Extension" >> python/setup.py
+ @echo "from setuptools import setup, Extension" >> python/setup.py
@echo "import commands" >> python/setup.py
@echo "" >> python/setup.py
@echo "def pkgconfig(*packages, **kw):" >> python/setup.py
diff --git a/bindings/swig/python/CMakeLists.txt b/bindings/swig/python/CMakeLists.txt
index cbb4058..247bc79 100644
--- a/bindings/swig/python/CMakeLists.txt
+++ b/bindings/swig/python/CMakeLists.txt
@@ -25,7 +25,7 @@ ENDIF(NOT PYTHONLIBS_FOUND)
SET(PY_SCRIPT "#!${PYTHON_EXECUTABLE}
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
setup(
name='sword',
version='${SWORD_VERSION}',
@@ -51,8 +51,11 @@ ADD_CUSTOM_TARGET(swordswig_python${SWORD_PYTHON_VERSION} ALL
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
# Allow user installation to custom directory
+IF(NOT SWORD_PYTHON_INSTALL_ROOT STREQUAL "")
+ SET(SETUP_ARGS "\"--root=${SWORD_PYTHON_INSTALL_ROOT}\"")
+ENDIF(NOT SWORD_PYTHON_INSTALL_ROOT STREQUAL "")
IF(NOT SWORD_PYTHON_INSTALL_DIR STREQUAL "")
- SET(SETUP_ARGS "\"--prefix=${SWORD_PYTHON_INSTALL_DIR}\"")
+ SET(SETUP_ARGS "${SETUP_ARGS}\"--prefix=${SWORD_PYTHON_INSTALL_DIR}\"")
ENDIF(NOT SWORD_PYTHON_INSTALL_DIR STREQUAL "")
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/install.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/install.cmake")
--
2.41.0

5
plans.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Run installmgr tests
discover:
how: fmf
execute:
script: installmgr_tests.sh

View file

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

View file

@ -1,13 +0,0 @@
diff --git a/cmake/options.cmake b/cmake/options.cmake
index 81981c8..19b7004 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -44,7 +44,7 @@ _SET_FANCY(SYSCONF_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/etc" "Directory to insta
_SET_FANCY(SHARE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share" "Directory to install global data files. Defaults to ${SWORD_INSTALL_DIR}/share.")
-_SET_FANCY(SWORD_PYTHON_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}" CACHE STRING "Directory where the Python bindings will be installed. Defaults to default Python path.")
+_SET_FANCY(SWORD_PYTHON_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}" STRING "Directory where the Python bindings will be installed. Defaults to default Python path.")
# Post-processing of variables
MACRO(PROCESS_VERSION LEVEL VALUE)

View file

@ -1,138 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5cbd06a..1d3a2d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,4 @@
-# TODO: write FindICU (icu-config only for 2.2 and up) -- currently taken from another CMake system
-# limit pkg-config version to >= 0.14, demo, utilities, doc, tests
+# TODO: limit pkg-config version to >= 0.14, demo, utilities, doc, tests
# use BUILD_SHARED_LIBS
# convince perl swig bindings to build properly
#
@@ -13,7 +12,7 @@
# all posterity and eternity, wherever such transfer is possible. Where it is
# not, then this file is released under the GPLv2 by myself.
PROJECT(libsword CXX C)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.7.0)
SET(SWORD_VERSION 1.8.1)
# Make sure it's an out-of-stream build
@@ -56,7 +55,8 @@ IF(MSVC)
ELSE(MSVC)
FIND_PACKAGE(BZIP2 QUIET)
FIND_PACKAGE(XZ QUIET)
- FIND_PACKAGE(ICU QUIET)
+ FIND_PACKAGE(ICU
+ COMPONENTS data i18n io uc)
FIND_PACKAGE(CURL QUIET)
ENDIF(MSVC)
FIND_PACKAGE(CLucene QUIET)
@@ -237,7 +237,11 @@ ENDIF(WITH_CLUCENE)
IF(WITH_ICU)
INCLUDE_DIRECTORIES(${ICU_INCLUDE_DIRS})
ADD_DEFINITIONS(${ICU_DEFINITIONS})
- SET(SWORD_LINK_LIBRARIES ${SWORD_LINK_LIBRARIES} ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
+ MESSAGE(STATUS "ICU Version: ${ICU_VERSION}")
+ IF("${ICU_VERSION}" VERSION_GREATER "61")
+ ADD_DEFINITIONS(-DU_USING_ICU_NAMESPACE)
+ ENDIF("${ICU_VERSION}" VERSION_GREATER "61")
+ SET(SWORD_LINK_LIBRARIES ${SWORD_LINK_LIBRARIES} ${ICU_LIBRARIES})
ENDIF(WITH_ICU)
IF(REGEX_FOUND AND CROSS_COMPILE_MINGW32)
SET(SWORD_LINK_LIBRARIES ${SWORD_LINK_LIBRARIES} ${REGEX_LIBRARY})
diff --git a/cmake/FindICU.cmake b/cmake/FindICU.cmake
deleted file mode 100644
index 451c2f3..0000000
--- a/cmake/FindICU.cmake
+++ /dev/null
@@ -1,68 +0,0 @@
-# Finds the International Components for Unicode (ICU) Library
-#
-# ICU_FOUND - True if ICU found.
-# ICU_I18N_FOUND - True if ICU's internationalization library found.
-# ICU_INCLUDE_DIRS - Directory to include to get ICU headers
-# Note: always include ICU headers as, e.g.,
-# unicode/utypes.h
-# ICU_LIBRARIES - Libraries to link against for the common ICU
-# ICU_I18N_LIBRARIES - Libraries to link against for ICU internationaliation
-# (note: in addition to ICU_LIBRARIES)
-
-# Look for the header file.
-find_path(
- ICU_INCLUDE_DIR
- NAMES unicode/utypes.h
- DOC "Include directory for the ICU library")
-mark_as_advanced(ICU_INCLUDE_DIR)
-
-# Look for the library.
-find_library(
- ICU_LIBRARY
- NAMES icuuc cygicuuc cygicuuc32
- DOC "Libraries to link against for the common parts of ICU")
-mark_as_advanced(ICU_LIBRARY)
-
-# Copy the results to the output variables.
-if(ICU_INCLUDE_DIR AND ICU_LIBRARY)
- set(ICU_FOUND 1)
- set(ICU_LIBRARIES ${ICU_LIBRARY})
- set(ICU_INCLUDE_DIRS ${ICU_INCLUDE_DIR})
-
- # Look for the ICU internationalization libraries
- find_library(
- ICU_I18N_LIBRARY
- NAMES icuin icui18n cygicuin cygicuin32
- DOC "Libraries to link against for ICU internationalization")
- if(MSVC)
- find_library(ICU_DATA_LIBRARY
- NAMES icudt
- DOC "Libraries to link against for ICU data")
- set(ICU_LIBRARIES ${ICU_LIBRARIES} ${ICU_DATA_LIBRARY})
- endif(MSVC)
- mark_as_advanced(ICU_I18N_LIBRARY)
- mark_as_advanced(ICU_DATA_LIBRARY)
- if (ICU_I18N_LIBRARY)
- set(ICU_I18N_FOUND 1)
- set(ICU_I18N_LIBRARIES ${ICU_I18N_LIBRARY})
- else (ICU_I18N_LIBRARY)
- set(ICU_I18N_FOUND 0)
- set(ICU_I18N_LIBRARIES)
- endif (ICU_I18N_LIBRARY)
-else(ICU_INCLUDE_DIR AND ICU_LIBRARY)
- set(ICU_FOUND 0)
- set(ICU_I18N_FOUND 0)
- set(ICU_LIBRARIES)
- set(ICU_I18N_LIBRARIES)
- set(ICU_INCLUDE_DIRS)
-endif(ICU_INCLUDE_DIR AND ICU_LIBRARY)
-
-IF(ICU_FOUND)
- IF(NOT ICU_FIND_QUIETLY)
- MESSAGE(STATUS "ICU: Yes ${ICU_I18N_LIBRARY}")
- ENDIF(NOT ICU_FIND_QUIETLY)
-ELSE(ICU_FOUND)
- IF(ICU_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "ICU: No")
- ENDIF(ICU_FIND_REQUIRED)
-ENDIF(ICU_FOUND)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 30818a8..08bc573 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -75,10 +75,12 @@ ENDFOREACH(TEST ${test_PROGRAMS})
########################################################################################
# The following tests require extra libraries to run
-#
-FOREACH(ICUTEST icutest translittest)
- TARGET_LINK_LIBRARIES(${ICUTEST} ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
-ENDFOREACH(ICUTEST icutest translittest)
+#
+IF(WITH_ICU)
+ FOREACH(ICUTEST icutest translittest)
+ TARGET_LINK_LIBRARIES(${ICUTEST} ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
+ ENDFOREACH(ICUTEST icutest translittest)
+ENDIF(WITH_ICU)
# Excluded until I know we have the tests working
ADD_SUBDIRECTORY(testsuite)

View file

@ -1,154 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d3a2d2..f627850 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -293,9 +293,10 @@ INCLUDE("${CMAKE_CURRENT_SOURCE_DIR}/cmake/install.cmake")
# Bindings are good, right?
#
-IF(NOT SWORD_BINDINGS STREQUAL "" AND SWORD_BINDINGS)
+MESSAGE(STATUS "${SWORD_SWIG_BINDINGS}")
+IF(SWORD_SWIG_BINDINGS)
ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/bindings")
-ENDIF(NOT SWORD_BINDINGS STREQUAL "" AND SWORD_BINDINGS)
+ENDIF(SWORD_SWIG_BINDINGS)
##############################################################################################
# Utilities are hawt
diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 9caf6d6..729b499 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -1,5 +1,3 @@
-IF(SWORD_BINDINGS MATCHES ".*Python.*"
- OR SWORD_BINDINGS MATCHES ".*Perl.*")
+IF(SWORD_SWIG_BINDINGS)
ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/swig")
-ENDIF(SWORD_BINDINGS MATCHES ".*Python.*"
- OR SWORD_BINDINGS MATCHES ".*Perl.*")
+ENDIF(SWORD_SWIG_BINDINGS)
diff --git a/bindings/swig/CMakeLists.txt b/bindings/swig/CMakeLists.txt
index d2f4b16..93d55f1 100644
--- a/bindings/swig/CMakeLists.txt
+++ b/bindings/swig/CMakeLists.txt
@@ -15,27 +15,33 @@ IF(NOT SWIG_FOUND)
MESSAGE(FATAL_ERROR "Swig: no")
ELSE(NOT SWIG_FOUND)
MESSAGE(STATUS "Swig: yes")
-
+
SET(CMAKE_SWIG_FLAGS "-w-451,-402;-shadow;-c++")
-
+
MACRO(SWORD_SWIG_GENERATE LANG)
- ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Sword.cxx
+ ADD_CUSTOM_COMMAND(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Sword.cxx"
COMMAND ${SWIG_EXECUTABLE} ${CMAKE_SWIG_FLAGS} -${LANG} -o "${CMAKE_CURRENT_BINARY_DIR}/Sword.cxx"
"-I${CMAKE_SOURCE_DIR}/bindings/swig" ${SWIG_INCLUDES} "${CMAKE_SOURCE_DIR}/bindings/swig/sword.i"
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
ENDMACRO(SWORD_SWIG_GENERATE)
-
+
GET_DIRECTORY_PROPERTY(cmake_include_directories INCLUDE_DIRECTORIES)
SET(SWIG_INCLUDES)
FOREACH(directory ${cmake_include_directories})
SET(SWIG_INCLUDES ${SWIG_INCLUDES} "-I${directory}")
ENDFOREACH(directory ${cmake_include_directories})
-
- IF(SWORD_BINDINGS MATCHES ".*Python.*")
- ADD_SUBDIRECTORY(python)
- ENDIF(SWORD_BINDINGS MATCHES ".*Python.*")
-
- IF(SWORD_BINDINGS MATCHES ".*Perl.*")
+
+ IF(SWORD_PYTHON_2)
+ SET(SWORD_PYTHON_VERSION 2)
+ ADD_SUBDIRECTORY(python python2)
+ ENDIF(SWORD_PYTHON_2)
+
+ IF(SWORD_PYTHON_3)
+ SET(SWORD_PYTHON_VERSION 3)
+ ADD_SUBDIRECTORY(python python3)
+ ENDIF(SWORD_PYTHON_3)
+
+ IF(SWORD_PERL)
ADD_SUBDIRECTORY(perl)
- ENDIF(SWORD_BINDINGS MATCHES ".*Perl.*")
+ ENDIF(SWORD_PERL)
ENDIF(NOT SWIG_FOUND)
diff --git a/bindings/swig/python/CMakeLists.txt b/bindings/swig/python/CMakeLists.txt
index bbf7561..eced324 100644
--- a/bindings/swig/python/CMakeLists.txt
+++ b/bindings/swig/python/CMakeLists.txt
@@ -11,6 +11,11 @@
#
#SWIG_LINK_LIBRARIES(Sword ${PYTHON_LIBRARIES} ${SWORD_LINK_NAME})
+UNSET(PYTHON_EXECUTABLE CACHE)
+UNSET(PYTHON_LIBS CACHE)
+SET(PythonInterp_FIND_VERSION "${SWORD_PYTHON_VERSION}")
+SET(PythonInterp_FIND_VERSION_MAJOR "${SWORD_PYTHON_VERSION}")
+SET(PythonLibs_FIND_VERSION "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
FIND_PACKAGE(PythonInterp REQUIRED)
FIND_PACKAGE(PythonLibs)
@@ -38,10 +43,10 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/setup.py "${PY_SCRIPT}")
SWORD_SWIG_GENERATE(python)
-ADD_CUSTOM_TARGET(swordswig ALL
- COMMAND python setup.py build
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Sword.cxx ${SWORD_LINK_NAME}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+ADD_CUSTOM_TARGET(swordswig_python${SWORD_PYTHON_VERSION} ALL
+ COMMAND "${PYTHON_EXECUTABLE}" setup.py build
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Sword.cxx" ${SWORD_LINK_NAME}
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
# Allow user installation to custom directory
IF(NOT SWORD_PYTHON_INSTALL_DIR STREQUAL "")
diff --git a/bindings/swig/python/install.cmake.in b/bindings/swig/python/install.cmake.in
index 5dbd52e..9b7da58 100644
--- a/bindings/swig/python/install.cmake.in
+++ b/bindings/swig/python/install.cmake.in
@@ -1,4 +1,4 @@
EXECUTE_PROCESS(COMMAND
- python setup.py install @SETUP_ARGS@
+ "@PYTHON_EXECUTABLE@" setup.py install @SETUP_ARGS@
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)
diff --git a/cmake/options.cmake b/cmake/options.cmake
index 19b7004..b20370e 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -46,6 +46,12 @@ _SET_FANCY(SHARE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share" "Directory to in
_SET_FANCY(SWORD_PYTHON_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}" STRING "Directory where the Python bindings will be installed. Defaults to default Python path.")
+_SET_FANCY(SWORD_PYTHON_2 FALSE STRING "Set to TRUE to build Swig Python bindings for Python 2")
+
+_SET_FANCY(SWORD_PYTHON_3 FALSE STRING "Set to TRUE to build Swig Python bindings for Python 3")
+
+_SET_FANCY(SWORD_PERL FALSE STRING "Set to TRUE to build Swig Perl bindings")
+
# Post-processing of variables
MACRO(PROCESS_VERSION LEVEL VALUE)
SET(SWORD_VERSION_${LEVEL} ${VALUE})
@@ -74,3 +80,16 @@ SET(SWORD_VERSION_STR "${SWORD_VERSION}")
SET(SWORD_VERSION_NUM "${SWORD_VERSION_MAJOR}${MINOR}${MICRO}${NANO}")
MESSAGE(STATUS "SWORD Version ${SWORD_VERSION_NUM}")
+
+IF(SWORD_PYTHON_2 OR SWORD_PYTHON_3 OR SWORD_PERL)
+ MESSAGE(STATUS "Building SWIG Bindings")
+ SET(SWORD_SWIG_BINDINGS 1)
+ELSE()
+ SET(SWORD_SWIG_BINDINGS 0)
+ENDIF()
+
+IF(SWORD_SWIG_BINDINGS)
+ SET(SWORD_BINDINGS TRUE)
+ELSE()
+ SET(SWORD_BINDINGS FALSE)
+ENDIF()

View file

@ -1,26 +1,36 @@
%define soversion 1.8
%global soversion 1.9
Name: sword
Version: 1.8.1
Release: 11%{?dist}
Epoch: 1
Version: 1.9.0
Release: 36%{?dist}
Summary: Free Bible Software Project
License: GPLv2
License: GPL-2.0-only AND LicenseRef-Fedora-Public-Domain AND Apache-2.0 AND LGPL-2.0-or-later AND Zlib AND LGPL-2.1-or-later AND (0BSD OR MIT-0 OR MIT)
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
# Source0 tarball is generated by sword_gen_free_tarball.sh, which documents
# repack rationale and automates tarball fetching and repacking
Source0: sword-1.9.0.tar.gz
Source1: sword_gen_free_tarball.sh
Source2: LICENSE_README
# Patch0 was created by a SWORD developer, not applied upstream
Patch0: cmake-perl-bindings.diff
# Patch1 emailed to upstream
Patch1: migrate-to-setuptools.diff
BuildRequires: make
BuildRequires: cmake
BuildRequires: cmake-data
BuildRequires: openssl-devel
BuildRequires: curl-devel
BuildRequires: zlib-devel
BuildRequires: libidn-devel
BuildRequires: libicu-devel icu
BuildRequires: libicu-devel
BuildRequires: icu
BuildRequires: clucene-core-devel
BuildRequires: cppunit-devel
BuildRequires: swig
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: gcc
BuildRequires: gcc-c++
@ -35,9 +45,11 @@ texts in over 50 languages.
%package devel
Summary: Development files for the sword project
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: pkgconfig
Requires: curl-devel clucene-core-devel libicu-devel
Requires: curl-devel
Requires: clucene-core-devel
Requires: libicu-devel
%description devel
This package contains the development headers and libraries for the
@ -46,7 +58,7 @@ that uses the sword API, such as Gnomesword or Bibletime.
%package utils
Summary: Utilities for the sword project
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
%description utils
This package contains the pre-built utilities for use with the SWORD
@ -57,51 +69,63 @@ release schedule of the library. However, these utilities were the
latest at the time of the current library release.
%package -n python3-sword
%{?python_provide:%python_provide python3-sword}
%py_provides python3-sword
Summary: Python bindings for Sword
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: python3
%description -n python3-sword
Python bindings for The SWORD Library.
%package -n perl-sword
Summary: Perl bindings for Sword
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: perl-interpreter
Requires: perl-XML-LibXML
Requires: perl-HTML-Strip
%description -n perl-sword
Perl bindings for The SWORD Library.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%autosetup -p1
%build
mkdir build
pushd build
%cmake -DLIBSWORD_LIBRARY_TYPE=Shared \
%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
%if "%{?_lib}" == "lib64"
%{?_cmake_lib_suffix64} \
%endif
-DLIBSWORD_LIBRARY_TYPE=Shared \
-DSWORD_PYTHON_3:BOOL=TRUE \
-DSWORD_BUILD_UTILITIES="Yes" \
-DSWORD_PERL:BOOL=TRUE \
-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_ROOT="%{buildroot}" \
-DSWORD_PYTHON_INSTALL_DIR="%{_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
%check
make tests
%files
%doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
%doc samples doc
%doc AUTHORS ChangeLog NEWS README
%doc samples/
%doc doc/
%license COPYING LICENSE
# Re-enable after upstream includes it with CMake builds
%config(noreplace) %{_sysconfdir}/sword.conf
%{_libdir}/libsword.so.%{soversion}
%{_datadir}/sword
%{_datadir}/sword/
%files devel
%doc CODINGSTYLE
@ -130,12 +154,182 @@ make tests
%{_bindir}/emptyvss
%files -n python3-sword
%{python3_sitearch}/Sword.py
%{python3_sitearch}/_Sword.cpython-%{python3_version_nodots}m-%{_arch}-linux-gnu*.so
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/sword-%{version}-py%{python3_version}.egg-info
%pycached %{python3_sitearch}/Sword.py
%{python3_sitearch}/_Sword%{python3_ext_suffix}
%{python3_sitearch}/sword-%{version}-py%{python3_version}.egg-info/
%files -n perl-sword
%{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto/
%changelog
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1:1.9.0-36
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1:1.9.0-35
- Rebuilt for Python 3.14.0rc2 bytecode
* Wed Aug 06 2025 František Zatloukal <fzatlouk@redhat.com> - 1:1.9.0-34
- Rebuilt for icu 77.1
* Sat Jul 26 2025 Aaron Rainbolt <arraybolt@fedoraproject.org> - 1:1.9.0-33
- Set minimum CMake version to 3.5 (rhbz#2381472)
- Set non-standard CMake variables back to expected values (rhbz#2381665)
- Migrate InstallMgr test to tmt framework (rhbz#2383081)
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Jul 07 2025 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9.0-31
- Perl 5.42 rebuild
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 1:1.9.0-30
- Rebuilt for Python 3.14
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Dec 08 2024 Pete Walter <pwalter@fedoraproject.org> - 1:1.9.0-28
- Rebuild for ICU 76
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jun 12 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9.0-26
- Perl 5.40 rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1:1.9.0-25
- Rebuilt for Python 3.13
* Wed Jan 31 2024 Pete Walter <pwalter@fedoraproject.org> - 1:1.9.0-24
- Rebuild for ICU 74
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Sep 29 2023 Aaron Rainbolt <arraybolt3@fedoraproject.org> - 1:1.9.0-22
- Replace distutils with setuptools in python setup scripts (rhbz#2220606)
- Don't install the INSTALL file as part of the documentation
- Remove Android bindings as they contain a prebuild binary
- Remove gSOAP bindings as they contain a non-free source file
- Remove Objective C bindings as they contain a non-free source file
- Remove win32-related utility code as it is non-free
- Remove some sort of pre-built PalmOS application binary
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 František Zatloukal <fzatlouk@redhat.com> - 1:1.9.0-20
- Rebuilt for ICU 73.2
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9.0-19
- Perl 5.38 rebuild
* Fri Jun 30 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9.0-18
- Replace requirement of meta-package perl by perl-interpreter
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:1.9.0-17
- Rebuilt for Python 3.12
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Dec 31 2022 Pete Walter <pwalter@fedoraproject.org> - 1:1.9.0-15
- Rebuild for ICU 72
* Mon Dec 12 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9.0-14
- Add BR perl-generators to automatically generates run-time dependencies
for installed Perl files
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 1:1.9.0-13
- Rebuilt for ICU 71.1
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:1.9.0-11
- Rebuilt for Python 3.11
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9.0-10
- Perl 5.36 rebuild
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jun 09 2021 Greg Hellings <greg.hellings@gmail.com> - 1:1.9.0-7
- Correct dependencies for subpackages
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1:1.9.0-6
- Rebuilt for Python 3.10
* Mon May 24 2021 Greg Hellings <greg.hellings@gmail.com> - 1:1.9.0-5
- Add Epoch tag
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.9.0-5
- Perl 5.34 rebuild
* Wed May 19 2021 Pete Walter <pwalter@fedoraproject.org> - 1.9.0-4
- Rebuild for ICU 69
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Dec 14 2020 Greg Hellings <greg.hellings@gmail.com> - 1.9.0-2
- Restore Perl bindings
* Tue Dec 1 2020 Greg Hellings <greg.hellings@gmail.com> - 1.9.0-1
- Upstream 1.9.0 release
* Fri Oct 2 2020 Greg Hellings <greg.hellings@gmail.com> - 1.8.903-1
- Upstream 1.9.0RC3 release
* Fri Sep 11 2020 Greg Hellings <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
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.8.1-22
- Perl 5.32 rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-21
- Rebuilt for Python 3.9
* Fri May 15 2020 Pete Walter <pwalter@fedoraproject.org> - 1.8.1-20
- Rebuild for ICU 67
* Sun Apr 26 2020 Greg Hellings <greg.hellings@gmail.com> - 1.8.1-19
- Added patch to fix upstream markup bug
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 1.8.1-17
- Rebuild for ICU 65
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-16
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Jaak Ristioja <jaak@ristioja.ee> - 1.8.1-15
- Fixed conflicting integer types being defined
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-14
- Rebuilt for Python 3.8
* Sun Aug 04 2019 Dominique Corbex <dominique@corbex.org> - 1.8.1-13
- Added Perl bindings
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

30
sword_gen_free_tarball.sh Executable file
View file

@ -0,0 +1,30 @@
#!/bin/bash
# SWORD's gSOAP bindings contain a file at bindings/gsoap/include/stdsoap.h
# that is labeled "All rights reserved." We therefore have to repack the
# tarball to eliminate this file. Doing so most likely ruins the gSOAP
# bindings, so we just remove the gSOAP bindings altogether.
#
# The Objective C bindings have the same problem as the gSOAP bindings.
#
# There's some win32-related code that has a similar problem too.
#
# Also some sort of PalmOS application binary needs removed.
#
# We also remove the Android bindings since they contain a prebuilt .jar file.
# This could be handled in %prep but it's just as easy and probably a bit
# faster to do it here.
set -e
wget http://www.crosswire.org/ftpmirror/pub/sword/source/v1.9/sword-1.9.0.tar.gz
test "$(sha512sum sword-1.9.0.tar.gz | cut -d' ' -f1)" = "9ed3fbb5024af1f93b1473bae0d95534d02a5b00b3c9d41a0f855cee8106dc4e330844080adbee7c3f74c0e5ce1480bf16c87c842421337a341f641bae11137f"
tar -xf sword-1.9.0.tar.gz
rm sword-1.9.0.tar.gz
rm -r sword-1.9.0/bindings/gsoap
rm -r sword-1.9.0/bindings/Android
rm -r sword-1.9.0/bindings/objc
rm -r sword-1.9.0/src/utilfuns/win32
rm sword-1.9.0/utilities/diatheke/pqa/Diatheke.pqa
tar -czf sword-1.9.0.tar.gz sword-1.9.0
rm -r sword-1.9.0