]>
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 | |
21c6568e | 15 | Version: 1.6.2 |
0ac19eae | 16 | Release: 5 |
9e8d9d27 CM |
17 | License: GPL |
18 | Group: Libraries | |
19 | Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.6/%{name}-%{version}.tar.gz | |
21c6568e | 20 | # Source0-md5: a7dc4456e20e915fec46d774b690e305 |
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 |
0879d3a4 | 26 | BuildRequires: xulrunner-devel >= 1.9.2.3 |
2637a487 CM |
27 | %{?with_clucene:BuildRequires: clucene-core-devel} |
28 | %{?with_clucene:Requires: clucene-core} | |
29 | %{?with_curl:BuildRequires: curl-devel} | |
30 | %{?with_curl:Requires: curl} | |
31 | %{?with_icu:BuildRequires: icu} | |
8f244d31 | 32 | %{?with_icu:BuildRequires: libicu-devel} |
2637a487 CM |
33 | %{?with_icu:Requires: icu} |
34 | #%{?with_icusword:BuildRequires: icu-sword} | |
35 | #%{?with_icusword:Requires: icu-sword} | |
0879d3a4 | 36 | Requires: xulrunner >= 1.9.2.3 |
9e8d9d27 CM |
37 | Requires: zlib |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | The SWORD Project is an effort to create an ever expanding software | |
42 | package for research and study of God and His Word. The SWORD Bible | |
43 | Framework allows easy manipulation of Bible texts, commentaries, | |
44 | lexicons, dictionaries, etc. Many frontends are build using this | |
45 | framework. An installed module set may be shared between any frontend | |
46 | using the framework. | |
47 | ||
2637a487 CM |
48 | %package utilities |
49 | Summary: Utility programes using the sword libraries. | |
50 | Group: Applications | |
51 | Provides: diatheke | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description utilities | |
55 | Utility programes using the sword libraries. | |
56 | ||
9e8d9d27 CM |
57 | %package devel |
58 | Summary: Include files and static libraries for developing sword applications | |
59 | Group: Development/Libraries | |
60 | Requires: curl-devel >= 7.10.5 | |
2637a487 | 61 | Requires: %{name} = %{version}-%{release} |
9e8d9d27 CM |
62 | Requires: zlib-devel |
63 | ||
64 | %description devel | |
65 | Include files and static libraries for developing sword applications. | |
66 | This package is required to compile Sword frontends, too. | |
67 | ||
68 | %prep | |
69 | %setup -q | |
1a93d102 CM |
70 | %if %{with_curl} |
71 | %patch0 -p0 | |
72 | %endif | |
9e8d9d27 CM |
73 | |
74 | %build | |
75 | %{configure} \ | |
20289b0b | 76 | --with-conf \ |
2637a487 CM |
77 | --with%{!?with_clucene:out}-clucene \ |
78 | --with%{!?with_curl:out}-curl \ | |
79 | --with%{!?with_icu:out}-icu \ | |
9e8d9d27 | 80 | --disable-debug \ |
20289b0b CM |
81 | --disable-dependency-tracking \ |
82 | --disable-examples \ | |
83 | --disable-tests \ | |
84 | --%{?with_utilities:en}%{!?with_utilities:dis}able-utilities \ | |
2637a487 | 85 | #--with%{!?with_icusword:out}-icusword \ |
9e8d9d27 CM |
86 | |
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install-strip \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
95 | %{__make} install_config \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
98 | install -d $RPM_BUILD_ROOT%{_libdir}/sword | |
99 | exit 0 | |
100 | ||
101 | %post devel -p /sbin/ldconfig | |
102 | ||
103 | %postun devel -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %config %{_sysconfdir}/sword.conf | |
2637a487 CM |
108 | %dir %{_datadir}/sword |
109 | %dir %{_datadir}/sword/mods.d | |
110 | %dir %{_datadir}/sword/locales.d | |
9e8d9d27 CM |
111 | %config %{_datadir}/sword/mods.d/globals.conf |
112 | %config %{_datadir}/sword/locales.d/*.conf | |
113 | %doc README AUTHORS NEWS INSTALL | |
114 | %attr(755,root,root) %{_libdir}/libsword*.so* | |
115 | %dir %{_libdir}/sword | |
2637a487 | 116 | %dir %{_libdir}/sword/*icu* |
9e8d9d27 CM |
117 | %{_libdir}/sword/*/*.res |
118 | ||
2637a487 CM |
119 | %files utilities |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_bindir}/* | |
122 | ||
9e8d9d27 CM |
123 | %files devel |
124 | %defattr(644,root,root,755) | |
125 | %doc doc/* | |
126 | %{_pkgconfigdir}/sword.pc | |
127 | %{_includedir}/sword | |
128 | %{_libdir}/libsword*.*a | |
129 | ||
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT |