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