]>
Commit | Line | Data |
---|---|---|
fa23b7bb ER |
1 | # TODO |
2 | # - merge with fedora-ds-admin.spec | |
b9c2abc2 | 3 | Summary: Utility library for 389 administration |
4 | Name: 389-adminutil | |
5 | Version: 1.1.9 | |
6 | Release: 1 | |
fa23b7bb | 7 | License: LGPL v2 |
b9c2abc2 | 8 | Group: Development/Libraries |
9 | URL: http://directory.fedoraproject.org/wiki/AdminUtil | |
fa23b7bb ER |
10 | Source0: http://directory.fedoraproject.org/sources/%{name}-%{version}.tar.bz2 |
11 | # Source0-md5: da96a9673ac983b79475fd9c51b663c3 | |
b9c2abc2 | 12 | BuildRequires: icu |
13 | BuildRequires: libicu-devel | |
14 | BuildRequires: mozldap-devel | |
15 | BuildRequires: nspr-devel | |
16 | BuildRequires: nss-devel | |
17 | BuildRequires: svrcore-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
b9c2abc2 | 19 | |
20 | %description | |
21 | 389-adminutil is libraries of functions used to administer directory | |
fa23b7bb ER |
22 | servers, usually in conjunction with the admin server. 389-adminutil |
23 | is broken into two libraries - libadminutil contains the basic | |
b9c2abc2 | 24 | functionality, and libadmsslutil contains SSL versions and wrappers |
25 | around the basic functions. The PSET functions allow applications to | |
26 | store their preferences and configuration parameters in LDAP, without | |
27 | having to know anything about LDAP. The configuration is cached in a | |
28 | local file, allowing applications to function even if the LDAP server | |
29 | is down. The other code is typically used by CGI programs used for | |
30 | directory server management, containing GET/POST processing code as | |
31 | well as resource handling (ICU ures API). | |
32 | ||
33 | %package devel | |
34 | Summary: Development and header files for 389-adminutil | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: libicu-devel | |
38 | Requires: mozldap-devel | |
39 | Requires: nspr-devel | |
40 | Requires: nss-devel | |
41 | Requires: pkgconfig | |
42 | Requires: svrcore-devel | |
43 | Provides: adminutil-devel = %{version}-%{release} | |
44 | Obsoletes: adminutil-devel < 1.1.8-2 | |
45 | ||
46 | %description devel | |
47 | Development files and header files necessary to build applications | |
48 | that use 389-adminutil. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
b9c2abc2 | 54 | %configure \ |
55 | --disable-tests \ | |
56 | ||
fa23b7bb | 57 | %{__make} |
b9c2abc2 | 58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | %{__rm} -rf $RPM_BUILD_ROOT | |
62 | ||
fa23b7bb ER |
63 | %{__make} install \ |
64 | INSTALL="%{__install} -p" \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
b9c2abc2 | 66 | %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/lib*.a |
67 | %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
68 | ||
69 | %clean | |
fa23b7bb | 70 | rm -rf $RPM_BUILD_ROOT |
b9c2abc2 | 71 | |
fa23b7bb ER |
72 | %post -p /sbin/ldconfig |
73 | %postun -p /sbin/ldconfig | |
b9c2abc2 | 74 | |
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc README NEWS | |
fa23b7bb | 78 | %attr(755,root,root) %{_libdir}/*.so.*.*.* |
b9c2abc2 | 79 | %{_datadir}/%{name} |
80 | ||
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %{_pkgconfigdir}/%{name}.pc | |
84 | %{_libdir}/*.so | |
85 | %{_includedir}/libadminutil | |
86 | %{_includedir}/libadmsslutil |