]>
Commit | Line | Data |
---|---|---|
e540dfd7 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | ||
5 | %define collection_version 0.6.1 | |
6 | %define dhash_version 0.4.3 | |
7 | %define ini_config_version 0.6.2 | |
8 | %define path_utils_version 0.2.1 | |
9 | %define ref_array_version 0.1.2 | |
301bff7b | 10 | Summary: "Ding is not GLib" assorted utility libraries |
11 | Name: ding-libs | |
12 | Version: 0.1.3 | |
e540dfd7 ER |
13 | # NOTE: do not decrease Release on Version change, unless ALL subpackage versions have been increased too |
14 | Release: 1 | |
15 | License: LGPL v3+ | |
301bff7b | 16 | Group: Development/Libraries |
17 | URL: http://fedorahosted.org/sssd/ | |
18 | Source0: http://fedorahosted.org/releases/d/i/ding-libs/%{name}-%{version}.tar.gz | |
19 | # Source0-md5: b4f5e03b0b1bd0ab765902a7a466f749 | |
301bff7b | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
22 | BuildRequires: check-devel | |
23 | BuildRequires: doxygen | |
24 | BuildRequires: libtool | |
25 | BuildRequires: m4 | |
e540dfd7 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
301bff7b | 27 | |
28 | %description | |
29 | A set of helpful libraries used by projects such as SSSD. | |
30 | ||
e540dfd7 ER |
31 | %package -n libcollection |
32 | Summary: Collection data-type for C | |
33 | Version: %{collection_version} | |
34 | License: LGPL v3+ | |
301bff7b | 35 | Group: Development/Libraries |
36 | ||
e540dfd7 ER |
37 | %description -n libcollection |
38 | A data-type to collect data in a hierarchical structure for easy | |
bd36927a | 39 | iteration and serialization. |
301bff7b | 40 | |
e540dfd7 ER |
41 | %package -n libcollection-devel |
42 | Summary: Development files for libcollection | |
43 | Version: %{collection_version} | |
44 | License: LGPL v3+ | |
301bff7b | 45 | Group: Development/Libraries |
e540dfd7 | 46 | Requires: libcollection = %{collection_version}-%{release} |
301bff7b | 47 | |
e540dfd7 ER |
48 | %description -n libcollection-devel |
49 | A data-type to collect data in a hierarchical structure for easy | |
bd36927a | 50 | iteration and serialization. |
301bff7b | 51 | |
52 | %package -n libdhash | |
53 | Summary: Dynamic hash table | |
54 | Version: %{dhash_version} | |
e540dfd7 | 55 | License: LGPL v3+ |
301bff7b | 56 | Group: Development/Libraries |
57 | ||
58 | %description -n libdhash | |
59 | A hash table which will dynamically resize to achieve optimal storage | |
bd36927a | 60 | & access time properties. |
301bff7b | 61 | |
62 | %package -n libdhash-devel | |
63 | Summary: Development files for libdhash | |
64 | Version: %{dhash_version} | |
e540dfd7 | 65 | License: LGPL v3+ |
301bff7b | 66 | Group: Development/Libraries |
67 | Requires: libdhash = %{dhash_version}-%{release} | |
68 | ||
69 | %description -n libdhash-devel | |
70 | A hash table which will dynamically resize to achieve optimal storage | |
bd36927a | 71 | & access time properties. |
301bff7b | 72 | |
e540dfd7 ER |
73 | %package -n libini_config |
74 | Summary: INI file parser for C | |
75 | Version: %{ini_config_version} | |
76 | License: LGPL v3+ | |
301bff7b | 77 | Group: Development/Libraries |
78 | ||
e540dfd7 ER |
79 | %description -n libini_config |
80 | Library to process config files in INI format into a libcollection | |
bd36927a | 81 | data structure. |
301bff7b | 82 | |
e540dfd7 ER |
83 | %package -n libini_config-devel |
84 | Summary: Development files for libini_config | |
85 | Version: %{ini_config_version} | |
86 | License: LGPL v3+ | |
301bff7b | 87 | Group: Development/Libraries |
e540dfd7 | 88 | Requires: libini_config = %{ini_config_version}-%{release} |
301bff7b | 89 | |
e540dfd7 ER |
90 | %description -n libini_config-devel |
91 | Library to process config files in INI format into a libcollection | |
bd36927a | 92 | data structure. |
301bff7b | 93 | |
e540dfd7 ER |
94 | %package -n libpath_utils |
95 | Summary: Filesystem Path Utilities | |
96 | Version: %{path_utils_version} | |
97 | License: LGPL v3+ | |
98 | Group: Development/Libraries | |
301bff7b | 99 | |
e540dfd7 | 100 | %description -n libpath_utils |
bd36927a | 101 | Utility functions to manipulate filesystem pathnames. |
301bff7b | 102 | |
e540dfd7 ER |
103 | %package -n libpath_utils-devel |
104 | Summary: Development files for libpath_utils | |
105 | Version: %{path_utils_version} | |
106 | License: LGPL v3+ | |
107 | Group: Development/Libraries | |
108 | Requires: libpath_utils = %{path_utils_version}-%{release} | |
301bff7b | 109 | |
e540dfd7 | 110 | %description -n libpath_utils-devel |
bd36927a | 111 | Utility functions to manipulate filesystem pathnames. |
301bff7b | 112 | |
113 | %package -n libref_array | |
114 | Summary: A refcounted array for C | |
115 | Version: %{ref_array_version} | |
e540dfd7 | 116 | License: LGPL v3+ |
301bff7b | 117 | Group: Development/Libraries |
118 | ||
119 | %description -n libref_array | |
bd36927a | 120 | A dynamically-growing, reference-counted array. |
301bff7b | 121 | |
122 | %package -n libref_array-devel | |
123 | Summary: Development files for libref_array | |
124 | Version: %{ref_array_version} | |
e540dfd7 | 125 | License: LGPL v3+ |
301bff7b | 126 | Group: Development/Libraries |
127 | Requires: libref_array = %{ref_array_version}-%{release} | |
128 | ||
129 | %description -n libref_array-devel | |
bd36927a | 130 | A dynamically-growing, reference-counted array. |
301bff7b | 131 | |
301bff7b | 132 | %prep |
133 | %setup -q | |
134 | ||
135 | %build | |
136 | %configure \ | |
137 | --disable-static | |
138 | ||
e540dfd7 | 139 | %{__make} all docs |
301bff7b | 140 | |
e540dfd7 ER |
141 | %if %{with tests} |
142 | %{__make} check | |
143 | %endif | |
301bff7b | 144 | |
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
e540dfd7 ER |
147 | %{__make} install \ |
148 | DESTDIR=$RPM_BUILD_ROOT | |
301bff7b | 149 | |
150 | # Remove .la files created by libtool | |
e540dfd7 | 151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
301bff7b | 152 | |
153 | # Remove the example files from the output directory | |
154 | # We will copy them directly from the source directory | |
155 | # for packaging | |
e540dfd7 | 156 | %{__rm} \ |
301bff7b | 157 | $RPM_BUILD_ROOT%{_docdir}/ding-libs/README.* \ |
158 | $RPM_BUILD_ROOT%{_docdir}/ding-libs/examples/dhash_example.c \ | |
159 | $RPM_BUILD_ROOT%{_docdir}/ding-libs/examples/dhash_test.c | |
160 | ||
161 | # Remove document install script. RPM is handling this | |
e540dfd7 | 162 | %{__rm} -f */doc/html/installdox |
301bff7b | 163 | |
164 | %clean | |
165 | rm -rf $RPM_BUILD_ROOT | |
e540dfd7 ER |
166 | |
167 | %post -n libcollection -p /sbin/ldconfig | |
168 | %postun -n libcollection -p /sbin/ldconfig | |
169 | ||
170 | %post -n libdhash -p /sbin/ldconfig | |
171 | %postun -n libdhash -p /sbin/ldconfig | |
172 | ||
173 | %post -n libini_config -p /sbin/ldconfig | |
174 | %postun -n libini_config -p /sbin/ldconfig | |
175 | ||
176 | %post -n libpath_utils -p /sbin/ldconfig | |
177 | %postun -n libpath_utils -p /sbin/ldconfig | |
178 | ||
179 | %post -n libref_array -p /sbin/ldconfig | |
180 | %postun -n libref_array -p /sbin/ldconfig | |
181 | ||
182 | %files -n libcollection | |
183 | %defattr(644,root,root,755) | |
184 | %attr(755,root,root) %{_libdir}/libcollection.so.*.*.* | |
185 | %ghost %{_libdir}/libcollection.so.2 | |
186 | ||
187 | %files -n libcollection-devel | |
188 | %defattr(644,root,root,755) | |
189 | %doc collection/doc/html | |
190 | %{_includedir}/collection.h | |
191 | %{_includedir}/collection_tools.h | |
192 | %{_includedir}/collection_queue.h | |
193 | %{_includedir}/collection_stack.h | |
194 | %{_libdir}/libcollection.so | |
195 | %{_pkgconfigdir}/collection.pc | |
196 | ||
197 | %files -n libdhash | |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_libdir}/libdhash.so.*.*.* | |
200 | %{_libdir}/libdhash.so.1 | |
201 | ||
202 | %files -n libdhash-devel | |
203 | %defattr(644,root,root,755) | |
204 | %doc dhash/README.dhash | |
205 | %doc dhash/examples | |
206 | %{_includedir}/dhash.h | |
207 | %{_libdir}/libdhash.so | |
208 | %{_pkgconfigdir}/dhash.pc | |
209 | ||
210 | %files -n libini_config | |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_libdir}/libini_config.so.*.*.* | |
213 | %ghost %{_libdir}/libini_config.so.2 | |
214 | ||
215 | %files -n libini_config-devel | |
216 | %defattr(644,root,root,755) | |
217 | %doc ini/doc/html/ | |
218 | %{_includedir}/ini_config.h | |
219 | %{_libdir}/libini_config.so | |
220 | %{_pkgconfigdir}/ini_config.pc | |
221 | ||
222 | %files -n libpath_utils | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_libdir}/libpath_utils.so.*.*.* | |
225 | %ghost %{_libdir}/libpath_utils.so.1 | |
226 | ||
227 | %files -n libpath_utils-devel | |
228 | %defattr(644,root,root,755) | |
229 | %doc path_utils/README.path_utils | |
230 | %doc path_utils/doc/html | |
231 | %{_includedir}/path_utils.h | |
232 | %{_libdir}/libpath_utils.so | |
233 | %{_pkgconfigdir}/path_utils.pc | |
234 | ||
235 | %files -n libref_array | |
236 | %defattr(644,root,root,755) | |
237 | %attr(755,root,root) %{_libdir}/libref_array.so.*.*.* | |
238 | %ghost %{_libdir}/libref_array.so.1 | |
239 | ||
240 | %files -n libref_array-devel | |
241 | %defattr(644,root,root,755) | |
242 | %doc refarray/README.ref_array | |
243 | %doc refarray/doc/html | |
244 | %{_includedir}/ref_array.h | |
245 | %{_libdir}/libref_array.so | |
246 | %{_pkgconfigdir}/ref_array.pc |