sword/sword.spec

443 lines
15 KiB
RPMSpec
Raw Normal View History

2018-01-09 04:15:47 +00:00
%define soversion 1.8
2018-01-09 04:15:47 +00:00
Name: sword
Version: 1.8.1
2020-04-26 05:48:43 +00:00
Release: 19%{?dist}
Summary: Free Bible Software Project
2007-08-03 18:24:20 +00:00
License: GPLv2
URL: http://www.crosswire.org/sword/
2018-01-09 04:15:47 +00:00
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
2019-08-05 12:41:05 +00:00
Patch3: sword-1.8.1-swig-perl.diff
Patch4: sword-1.8.1-integer-types.diff
2020-04-26 05:48:43 +00:00
# svn diff -r3718:3721
Patch5: sword-1.8.1-fix-divs.diff
BuildRequires: cmake
BuildRequires: cmake-data
2014-08-05 08:46:17 +00:00
BuildRequires: openssl-devel
BuildRequires: curl-devel
2014-08-05 08:46:17 +00:00
BuildRequires: zlib-devel
BuildRequires: libidn-devel
BuildRequires: libicu-devel icu
BuildRequires: clucene-core-devel
BuildRequires: cppunit-devel
BuildRequires: swig
BuildRequires: python3-devel
2019-08-05 12:41:05 +00:00
BuildRequires: perl-devel
BuildRequires: gcc
2018-02-18 20:20:28 +00:00
BuildRequires: gcc-c++
%description
The SWORD Project is the CrossWire Bible Society's free Bible software
project. Its purpose is to create cross-platform open-source tools--
covered by the GNU General Public License-- that allow programmers and
Bible societies to write new Bible software more quickly and easily. We
also create Bible study software for all readers, students, scholars,
and translators of the Bible, and have a growing collection of over 200
texts in over 50 languages.
%package devel
Summary: Development files for the sword project
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
Requires: curl-devel clucene-core-devel libicu-devel
%description devel
This package contains the development headers and libraries for the
sword API. You need this package if you plan on compiling software
that uses the sword API, such as Gnomesword or Bibletime.
%package utils
Summary: Utilities for the sword project
Requires: %{name}%{?_isa} = %{version}-%{release}
%description utils
This package contains the pre-built utilities for use with the SWORD
Project. The SWORD Project developers encourage you to use the latest
development version of the utilities rather than those released with
a packaged release as updates to the utilities do not affect the
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}
Summary: Python bindings for Sword
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python3
%description -n python3-sword
Python bindings for The SWORD Library.
2019-08-05 12:41:05 +00:00
%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.
%prep
%setup -q
2018-01-09 04:15:47 +00:00
%patch0 -p1
%patch1 -p1
%patch2 -p1
2019-08-05 12:41:05 +00:00
%patch3 -p1
%patch4 -p1
2020-04-26 05:48:43 +00:00
%patch5 -p1
%build
mkdir build
pushd build
%cmake -DLIBSWORD_LIBRARY_TYPE=Shared \
-DSWORD_PYTHON_3:BOOL=TRUE \
2019-08-05 12:41:05 +00:00
-DSWORD_PERL:BOOL=TRUE \
2018-01-09 04:15:47 +00:00
-DSWORD_BUILD_UTILITIES="Yes" \
-DLIBSWORD_SOVERSION=%{soversion} \
-DLIBDIR=%{_libdir} \
2018-01-09 04:15:47 +00:00
-DSWORD_BUILD_TESTS=Yes \
-DSWORD_PYTHON_INSTALL_DIR="%{buildroot}%{_prefix}" \
..
make %{?_smp_mflags}
%install
pushd build
2014-08-05 08:46:17 +00:00
%make_install
popd
2008-05-27 02:27:06 +00:00
mkdir -p %{buildroot}%{_datadir}/sword/modules
2014-08-05 08:46:17 +00:00
find %{buildroot} -type f -name "*.la" -delete -print
2018-01-09 04:15:47 +00:00
%check
make tests
%files
%doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
%doc samples doc
# Re-enable after upstream includes it with CMake builds
2008-05-27 02:05:15 +00:00
%config(noreplace) %{_sysconfdir}/sword.conf
%{_libdir}/libsword.so.%{soversion}
%{_datadir}/sword
%files devel
%doc CODINGSTYLE
2014-08-05 08:46:17 +00:00
%{_includedir}/sword/
2008-05-27 02:05:15 +00:00
%{_libdir}/libsword.so
2014-08-05 08:46:17 +00:00
%{_libdir}/pkgconfig/sword.pc
%files utils
%{_bindir}/vs2osisref
%{_bindir}/vs2osisreftxt
%{_bindir}/mod2vpl
%{_bindir}/imp2ld
%{_bindir}/diatheke
%{_bindir}/mkfastmod
%{_bindir}/mod2zmod
%{_bindir}/xml2gbs
%{_bindir}/imp2vs
%{_bindir}/installmgr
%{_bindir}/osis2mod
%{_bindir}/tei2mod
%{_bindir}/vpl2mod
%{_bindir}/mod2imp
%{_bindir}/addld
%{_bindir}/imp2gbs
%{_bindir}/mod2osis
%{_bindir}/emptyvss
%files -n python3-sword
%{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
2019-08-05 12:41:05 +00:00
%files -n perl-sword
%{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto/
%exclude %{_libdir}/perl5/perllocal.pod
%changelog
2020-04-26 05:48:43 +00:00
* 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
2019-11-01 15:53:31 +00:00
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 1.8.1-17
- Rebuild for ICU 65
2019-10-03 12:39:10 +00:00
* 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
2019-08-19 09:06:34 +00:00
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-14
- Rebuilt for Python 3.8
2019-08-05 12:41:05 +00:00
* 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
2019-01-23 21:53:25 +00:00
* Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 1.8.1-10
- Rebuild for ICU 63
2018-09-24 05:09:15 +00:00
* Mon Sep 24 2018 Greg Hellings <greg.hellings@gmail.com> - 1.8.1-9
- Remove Python 2 binding build: BZ1627373
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jul 11 2018 Greg Hellings <greg.hellings@gmail.com> - 1.8.1-7
- Add flags for building ICU 61+
- Patch Python building for Python 2/3 combined
2018-07-10 20:44:42 +00:00
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 1.8.1-6
- Rebuild for ICU 62
2018-04-30 19:42:17 +00:00
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 1.8.1-5
- Rebuild for ICU 61.1
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.8.1-4
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Sun Feb 18 2018 Gregory Hellings <greg.hellings@gmail.com> - 1.8.1-3
- Remove post/postun for F28+
- Rename python-sword to python2-sword
- Add BR for gcc/g++ per F28+ changes
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-09 04:15:47 +00:00
* Mon Jan 08 2018 Greg Hellings <greg.hellings@gmail.com> - 1.8.1-1
- Upstream release 1.8.1
- Add check section
* Sat Dec 23 2017 Greg Hellings <greg.hellings@gmail.com> - 1.8.0-1
- Upstream release 1.8.0
* Tue Dec 5 2017 Greg Hellings <greg.hellings@gmail.com> - 1.7.906-1
- Testing 1.8.0RC6
2017-11-30 20:49:23 +00:00
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 1.7.4-15
- Rebuild for ICU 60.1
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.4-14
- Add Provides for the old name without %%_isa
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.4-13
- Python 2 binary package renamed to python2-sword
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-04-15 18:16:02 +00:00
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 1.7.4-7
- rebuild for ICU 57.1
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-10-28 13:08:56 +00:00
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 1.7.4-5
- rebuild for ICU 56.1
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-05-02 16:04:07 +00:00
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.7.4-3
- Rebuilt for GCC 5 C++11 ABI change
2015-01-26 16:08:19 +00:00
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 1.7.4-2
- rebuild for ICU 54.1
2014-12-24 20:41:21 +00:00
* Wed Dec 24 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.4-1
- New upstream release
- Removed upstreamed patches
2014-12-10 05:39:29 +00:00
* Tue Dec 09 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.3.900-3
- Fixed invalid pkg-config
* Mon Dec 08 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.3.900-2
- Changed to CMake
- Added Python bindings
2014-12-09 04:15:50 +00:00
* Wed Dec 03 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.3.900-1
- Upstream pre-release version bump
2014-10-28 03:11:24 +00:00
* Mon Oct 27 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.3-9
- Release bump
2014-08-26 11:57:33 +00:00
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 1.7.3-7
- rebuild for ICU 53.1
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Wed Aug 13 2014 Rex Dieter <rdieter@fedoraproject.org> - 1.7.3-5
- revert some incompatible "cleanup" (%%make_build undefined on < f21)
- -devel: drop extraneous lib deps (let pkgconfig autoreq handle it as needed)
2014-08-12 14:57:14 +00:00
* Mon Aug 11 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.3-4
- Change curl-devel for libcurl-devel
2014-08-05 08:46:17 +00:00
* Sat Aug 02 2014 Christopher Meng <rpm@cicku.me> - 1.7.3-3
- devel subpkg cleanup
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-07 02:09:54 +00:00
* Tue May 06 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.3-1
- New upstream version
2014-02-13 16:50:50 +00:00
* Thu Feb 13 2014 Greg Hellings <greg.hellings@gmail.com> - 1.7.2-2
- Rebuilt for ICU 52
2014-01-29 16:26:30 +00:00
* Wed Jan 29 2014 Deji Akingunola <dakingun@gmail.com> - 1.7.2-1
- Update to sword-1.7.2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-02-01 16:40:15 +00:00
* Fri Feb 01 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.6.2-10
- Rebuild for icu 50
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-05-20 05:11:21 +00:00
* Sun May 20 2012 Deji Akingunola <dakingun@gmail.com> - 1.6.2-8
- Rebuild for icu soname change
2012-02-23 03:57:36 +00:00
* Wed Feb 22 2012 Deji Akingunola <dakingun@gmail.com> - 1.6.2-7
- Fix compile error with gcc-4.7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-10-02 20:14:35 +00:00
* Sun Oct 2 2011 Tom Callaway <spot@fedoraproject.org> - 1.6.2-5
- fix compile against clucene2
2011-09-09 08:18:31 +00:00
* Fri Sep 09 2011 Caolán McNamara <caolanm@redhat.com> - 1.6.2-4
- rebuild for icu 4.8.1
2011-03-07 15:20:00 +00:00
* Mon Mar 07 2011 Caolán McNamara <caolanm@redhat.com> - 1.6.2-3
- rebuild for icu 4.6
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-10-23 02:58:39 +00:00
* Fri Oct 22 2010 Deji Akingunola <dakingun@gmail.com> - 1.6.2-1
- Update to version 1.6.2
2010-04-02 12:20:06 +00:00
* Fri Apr 02 2010 Caolán McNamara <caolanm@redhat.com> - 1.6.1-3
- rebuild for icu 4.4
* Sat Mar 20 2010 Deji Akingunola <dakingun@gmail.com> - 1.6.1-2
- Work around regression in curl-7.20.0 (Patch by Karl Kleinpaste), fix #569685
2010-01-13 18:38:03 +00:00
* Wed Jan 13 2010 Deji Akingunola <dakingun@gmail.com> - 1.6.1-1
- Update to version 1.6.1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-06-09 01:38:34 +00:00
* Thu May 14 2009 Deji Akingunola <dakingun@gmail.com> - 1.6.0-1
- Update to version 1.6.0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-04 20:43:53 +00:00
* Wed Feb 04 2009 Deji Akingunola <dakingun@gmail.com> - 1.5.11-3
- Add patch to build with gcc-4.4
2008-06-03 10:30:40 +00:00
* Tue Jun 03 2008 Caolán McNamara <caolanm@redhat.com> - 1.5.11-2
- rebuild for new icu
2008-05-27 02:05:15 +00:00
* Mon May 26 2008 Deji Akingunola <dakingun@gmail.com> - 1.5.11-1
- Update to version 1.5.11
* Thu Feb 21 2008 Deji Akingunola <dakingun@gmail.com> - 1.5.10-3
- Fix command injection bug (Bug #433723)
2008-01-10 18:35:10 +00:00
* Thu Jan 10 2008 Deji Akingunola <dakingun@gmail.com> - 1.5.10-2
- Fix build issue with gcc43
2007-11-05 12:11:03 +00:00
* Mon Nov 05 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.10-1
- Update to version 1.5.10
* Tue Sep 25 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.9-7
- Fix the build failure due to glibc open() check
2007-08-25 12:42:04 +00:00
* Sat Aug 25 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.9-6
- Rebuild
2007-08-03 18:24:20 +00:00
* Fri Aug 03 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.9-5
- License tag update
- Rebuild for new icu
2007-08-03 18:24:20 +00:00
* Sat Jan 20 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.9-4
- Fix an error (libicu-devel not icu-devel)
* Sat Jan 20 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.9-3
- Add Requires for the -devel subpackage
2007-01-15 00:37:56 +00:00
* Sun Jan 14 2007 Deji Akingunola <dakingun@gmail.com> - 1.5.9-2
- Rebuild with lucene support
* Wed Nov 08 2006 Deji Akingunola <dakingun@gmail.com> - 1.5.9-1
- New release
- Build with icu support
2006-10-04 22:36:34 +00:00
* Wed Sep 20 2006 Deji Akingunola <dakingun@gmail.com> - 1.5.8-9
- Take over from Michael A. Peters
- Rebuild for FC6
* Sat Jun 03 2006 Michael A. Peters <mpeters@mac.com> - 1.5.8-8
- Added pkgconfig to devel package Requires
2006-02-17 12:11:01 +00:00
* Fri Feb 17 2006 Michael A. Peters <mpeters@mac.com> - 1.5.8-7
- Rebuild in devel branch
2005-12-14 23:09:24 +00:00
* Wed Dec 14 2005 Michael A. Peters <mpeters@mac.com> - 1.5.8-6
- rebuild in devel branch with new compiler suite
- remove specific release from devel requires of main package
- do not build with %%{_smp_mflags}
2005-11-21 17:47:03 +00:00
* Mon Nov 21 2005 Michael A. Peters <mpeters@mac.com> - 1.5.8-5
- disable static library
2005-11-13 16:29:21 +00:00
* Sun Nov 13 2005 Michael A. Peters <mpeters@mac.com> - 1.5.8-4.1
- Rebuild against new openssl
2005-10-29 13:53:48 +00:00
* Sat Oct 29 2005 Michael A. Peters <mpeters@mac.com> - 1.5.8-4
- Added Arabic support files from Developer mailing list (they have
- been added to the upstream SVN version)
* Thu Jun 09 2005 Michael A. Peters <mpeters@mac.com> - 1.5.8-3
2005-06-09 14:32:22 +00:00
- fix line breaks
* Mon Jun 06 2005 Michael A. Peters <mpeters@mac.com> - 1.5.8-1
- initial CVS checkin for Fedora Extras