2 # - Package icu-sword and add bcond for it here
9 %bcond_without utilities
11 %define debug_package 0
13 Summary: The SWORD Project framework for manipulating Bible texts
19 Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.6/%{name}-%{version}.tar.gz
20 # Source0-md5: a7dc4456e20e915fec46d774b690e305
21 Patch0: %{name}-curl.patch
22 Patch1: %{name}-gcc47.patch
23 Patch2: %{name}-clucene2.patch
24 URL: http://www.crosswire.org/sword
25 BuildRequires: pakchois-devel
26 BuildRequires: pkgconfig
27 BuildRequires: sqlite3-devel
28 BuildRequires: xulrunner-devel >= 1.9.2.3
29 %{?with_clucene:BuildRequires: clucene-core-devel}
30 %{?with_clucene:Requires: clucene-core}
31 %{?with_curl:BuildRequires: curl-devel}
32 %{?with_curl:Requires: curl}
33 %{?with_icu:BuildRequires: icu}
34 %{?with_icu:BuildRequires: libicu-devel}
35 %{?with_icu:Requires: icu}
36 #%{?with_icusword:BuildRequires: icu-sword}
37 #%{?with_icusword:Requires: icu-sword}
38 Requires: xulrunner >= 1.9.2.3
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 The SWORD Project creats cross-platform open-source tools that allow
44 programmers and Bible societies to write new Bible software more
45 quickly and easily. The SWORD Bible Framework allows easy manipulation
46 of Bible texts, commentaries, lexicons, dictionaries, etc. Many
47 frontends are built using this framework. An installed module set may
48 be shared between any frontend using the framework.
51 Summary: Utility programs that use the sword libraries
53 Requires: %{name} = %{version}-%{release}
56 %description utilities
57 Utility programs that use the sword libraries.
60 Summary: Include files and static libraries for developing sword applications
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: curl-devel >= 7.10.5
67 Include files and static libraries for developing sword applications.
68 This package is required to compile Sword frontends, too.
81 --with%{!?with_clucene:out}-clucene \
82 --with%{!?with_curl:out}-curl \
83 --with%{!?with_icu:out}-icu \
85 --disable-dependency-tracking \
88 --%{?with_utilities:en}%{!?with_utilities:dis}able-utilities \
89 #--with%{!?with_icusword:out}-icusword \
94 rm -rf $RPM_BUILD_ROOT
96 %{__make} install-strip \
97 DESTDIR=$RPM_BUILD_ROOT
99 %{__make} install_config \
100 DESTDIR=$RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{_libdir}/sword
105 %post devel -p /sbin/ldconfig
107 %postun devel -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %config %{_sysconfdir}/sword.conf
112 %dir %{_datadir}/sword
113 %dir %{_datadir}/sword/mods.d
114 %dir %{_datadir}/sword/locales.d
115 %config %{_datadir}/sword/mods.d/globals.conf
116 %config %{_datadir}/sword/locales.d/*.conf
117 %doc README AUTHORS NEWS INSTALL
118 %attr(755,root,root) %{_libdir}/libsword*.so*
119 %dir %{_libdir}/sword
120 %dir %{_libdir}/sword/*icu*
121 %{_libdir}/sword/*/*.res
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/*
128 %defattr(644,root,root,755)
130 %{_pkgconfigdir}/sword.pc
132 %{_libdir}/libsword*.*a
135 rm -rf $RPM_BUILD_ROOT