]>
Commit | Line | Data |
---|---|---|
9e8d9d27 | 1 | # TODO: |
2637a487 | 2 | # - Package icu-sword and add bcond for it here |
e937b4c4 | 3 | # |
4 | # Conditional build: | |
2637a487 | 5 | #%bcond_with icusword |
2637a487 CM |
6 | %bcond_without clucene |
7 | %bcond_without curl | |
8 | %bcond_without icu | |
9 | %bcond_without utilities | |
9e8d9d27 | 10 | |
e937b4c4 | 11 | %define debug_package 0 |
12 | ||
9e8d9d27 CM |
13 | Summary: The SWORD Project framework for manipulating Bible texts |
14 | Name: sword | |
4211460e | 15 | Version: 1.7.3 |
3f516494 | 16 | Release: 5 |
9e8d9d27 CM |
17 | License: GPL |
18 | Group: Libraries | |
4211460e JR |
19 | Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.7/%{name}-%{version}.tar.gz |
20 | # Source0-md5: bd2ffadaa9f92f7b6e657e323e27a028 | |
1a93d102 | 21 | Patch0: %{name}-curl.patch |
9e8d9d27 | 22 | URL: http://www.crosswire.org/sword |
f83c9fd0 | 23 | BuildRequires: pakchois-devel |
0879d3a4 | 24 | BuildRequires: pkgconfig |
f83c9fd0 | 25 | BuildRequires: sqlite3-devel |
2637a487 CM |
26 | %{?with_clucene:BuildRequires: clucene-core-devel} |
27 | %{?with_clucene:Requires: clucene-core} | |
28 | %{?with_curl:BuildRequires: curl-devel} | |
29 | %{?with_curl:Requires: curl} | |
30 | %{?with_icu:BuildRequires: icu} | |
8f244d31 | 31 | %{?with_icu:BuildRequires: libicu-devel} |
2637a487 CM |
32 | %{?with_icu:Requires: icu} |
33 | #%{?with_icusword:BuildRequires: icu-sword} | |
34 | #%{?with_icusword:Requires: icu-sword} | |
4211460e | 35 | Requires: wwwbrowser |
9e8d9d27 CM |
36 | Requires: zlib |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
b4a0907c CM |
40 | The SWORD Project creats cross-platform open-source tools that allow |
41 | programmers and Bible societies to write new Bible software more | |
42 | quickly and easily. The SWORD Bible Framework allows easy manipulation | |
43 | of Bible texts, commentaries, lexicons, dictionaries, etc. Many | |
44 | frontends are built using this framework. An installed module set may | |
45 | be shared between any frontend using the framework. | |
9e8d9d27 | 46 | |
2637a487 | 47 | %package utilities |
b4a0907c | 48 | Summary: Utility programs that use the sword libraries |
2637a487 | 49 | Group: Applications |
2637a487 | 50 | Requires: %{name} = %{version}-%{release} |
b4a0907c | 51 | Provides: diatheke |
2637a487 CM |
52 | |
53 | %description utilities | |
b4a0907c | 54 | Utility programs that use the sword libraries. |
2637a487 | 55 | |
9e8d9d27 | 56 | %package devel |
4211460e | 57 | Summary: Include files for developing sword applications |
9e8d9d27 | 58 | Group: Development/Libraries |
2637a487 | 59 | Requires: %{name} = %{version}-%{release} |
b4a0907c | 60 | Requires: curl-devel >= 7.10.5 |
9e8d9d27 CM |
61 | Requires: zlib-devel |
62 | ||
63 | %description devel | |
4211460e | 64 | Include files for developing sword applications. |
9e8d9d27 CM |
65 | This package is required to compile Sword frontends, too. |
66 | ||
4211460e JR |
67 | %package static |
68 | Summary: Static libraries for developing sword applications | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-devel = %{version}-%{release} | |
71 | ||
72 | %description static | |
73 | Static libraries for developing sword applications. | |
74 | ||
9e8d9d27 CM |
75 | %prep |
76 | %setup -q | |
1a93d102 CM |
77 | %if %{with_curl} |
78 | %patch0 -p0 | |
79 | %endif | |
9e8d9d27 CM |
80 | |
81 | %build | |
82 | %{configure} \ | |
20289b0b | 83 | --with-conf \ |
2637a487 CM |
84 | --with%{!?with_clucene:out}-clucene \ |
85 | --with%{!?with_curl:out}-curl \ | |
86 | --with%{!?with_icu:out}-icu \ | |
9e8d9d27 | 87 | --disable-debug \ |
20289b0b CM |
88 | --disable-dependency-tracking \ |
89 | --disable-examples \ | |
90 | --disable-tests \ | |
91 | --%{?with_utilities:en}%{!?with_utilities:dis}able-utilities \ | |
2637a487 | 92 | #--with%{!?with_icusword:out}-icusword \ |
9e8d9d27 CM |
93 | |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install-strip \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install_config \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
4211460e | 105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsword.la |
9e8d9d27 | 106 | |
4211460e JR |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
9e8d9d27 | 109 | |
4211460e JR |
110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
9e8d9d27 CM |
112 | |
113 | %files | |
114 | %defattr(644,root,root,755) | |
4211460e JR |
115 | %doc README AUTHORS NEWS INSTALL |
116 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sword.conf | |
2637a487 CM |
117 | %dir %{_datadir}/sword |
118 | %dir %{_datadir}/sword/mods.d | |
119 | %dir %{_datadir}/sword/locales.d | |
4211460e JR |
120 | %{_datadir}/sword/mods.d/globals.conf |
121 | %{_datadir}/sword/locales.d/*.conf | |
122 | %attr(755,root,root) %{_libdir}/libsword-%{version}.so | |
9e8d9d27 | 123 | |
2637a487 CM |
124 | %files utilities |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_bindir}/* | |
127 | ||
9e8d9d27 CM |
128 | %files devel |
129 | %defattr(644,root,root,755) | |
130 | %doc doc/* | |
131 | %{_pkgconfigdir}/sword.pc | |
132 | %{_includedir}/sword | |
4211460e | 133 | %attr(755,root,root) %{_libdir}/libsword.so |
9e8d9d27 | 134 | |
4211460e JR |
135 | %files static |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libsword.a |