]> git.pld-linux.org Git - packages/sword.git/blame - sword.spec
- release 4 (by relup.sh)
[packages/sword.git] / sword.spec
CommitLineData
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
13Summary: The SWORD Project framework for manipulating Bible texts
14Name: sword
4211460e 15Version: 1.7.3
0ecb923e 16Release: 4
9e8d9d27
CM
17License: GPL
18Group: Libraries
4211460e
JR
19Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.7/%{name}-%{version}.tar.gz
20# Source0-md5: bd2ffadaa9f92f7b6e657e323e27a028
1a93d102 21Patch0: %{name}-curl.patch
9e8d9d27 22URL: http://www.crosswire.org/sword
f83c9fd0 23BuildRequires: pakchois-devel
0879d3a4 24BuildRequires: pkgconfig
f83c9fd0 25BuildRequires: 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 35Requires: wwwbrowser
9e8d9d27
CM
36Requires: zlib
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
b4a0907c
CM
40The SWORD Project creats cross-platform open-source tools that allow
41programmers and Bible societies to write new Bible software more
42quickly and easily. The SWORD Bible Framework allows easy manipulation
43of Bible texts, commentaries, lexicons, dictionaries, etc. Many
44frontends are built using this framework. An installed module set may
45be shared between any frontend using the framework.
9e8d9d27 46
2637a487 47%package utilities
b4a0907c 48Summary: Utility programs that use the sword libraries
2637a487 49Group: Applications
2637a487 50Requires: %{name} = %{version}-%{release}
b4a0907c 51Provides: diatheke
2637a487
CM
52
53%description utilities
b4a0907c 54Utility programs that use the sword libraries.
2637a487 55
9e8d9d27 56%package devel
4211460e 57Summary: Include files for developing sword applications
9e8d9d27 58Group: Development/Libraries
2637a487 59Requires: %{name} = %{version}-%{release}
b4a0907c 60Requires: curl-devel >= 7.10.5
9e8d9d27
CM
61Requires: zlib-devel
62
63%description devel
4211460e 64Include files for developing sword applications.
9e8d9d27
CM
65This package is required to compile Sword frontends, too.
66
4211460e
JR
67%package static
68Summary: Static libraries for developing sword applications
69Group: Development/Libraries
70Requires: %{name}-devel = %{version}-%{release}
71
72%description static
73Static 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
97rm -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
108rm -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
This page took 0.092998 seconds and 4 git commands to generate.