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