]>
Commit | Line | Data |
---|---|---|
066a70d9 | 1 | %define nspr_version 4.6 |
6a6d7c73 | 2 | %define nspr_evr 1:%{nspr_version} |
066a70d9 | 3 | %define nss_version 3.11 |
6a6d7c73 | 4 | %define nss_evr 1:%{nss_version} |
161e36e8 | 5 | %define svrcore_version 4.0.3 |
42ecd1b3 | 6 | Summary: Mozilla LDAP C SDK |
d3333563 | 7 | Summary(pl.UTF-8): Biblioteki Mozilla LDAP C SDK |
42ecd1b3 | 8 | Name: mozldap |
ac175915 | 9 | Version: 6.0.5 |
04cbdac9 | 10 | Release: 1 |
6a6d7c73 | 11 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
6c4abaa1 | 12 | Group: Libraries |
f18a767a | 13 | Source0: ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v%{version}/src/%{name}-%{version}.tar.gz |
ac175915 | 14 | # Source0-md5: 9719bd5b9efc13f810c85a47fb8c6412 |
c3d97cae | 15 | Patch0: %{name}-link.patch |
906691f8 | 16 | Patch1: %{name}-ac.patch |
a9cfc858 | 17 | URL: http://wiki.mozilla.org/LDAP_C_SDK |
34e8310d JB |
18 | BuildRequires: autoconf >= 2.13 |
19 | BuildRequires: cyrus-sasl-devel >= 2.0 | |
53e90225 | 20 | BuildRequires: gawk |
dcc2ecbf | 21 | BuildRequires: libstdc++-devel |
066a70d9 ER |
22 | BuildRequires: nspr-devel >= %{nspr_evr} |
23 | BuildRequires: nss-devel >= %{nss_evr} | |
dcc2ecbf | 24 | BuildRequires: perl-base |
42ecd1b3 | 25 | BuildRequires: pkgconfig |
285e2759 | 26 | BuildRequires: svrcore-devel >= %{svrcore_version} |
066a70d9 ER |
27 | Requires: nspr >= %{nspr_evr} |
28 | Requires: nss >= %{nss_evr} | |
42ecd1b3 MWP |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
f18a767a | 31 | %define _noautoreqdep libldap60.so libprldap60.so libssldap60.so libldif60.so |
295cd715 | 32 | |
42ecd1b3 MWP |
33 | %description |
34 | The Mozilla LDAP C SDK is a set of libraries that allow applications | |
35 | to communicate with LDAP directory servers. These libraries are | |
36 | derived from the University of Michigan and Netscape LDAP libraries. | |
37 | They use Mozilla NSPR and NSS for crypto. | |
38 | ||
8a0946ca JR |
39 | %description -l pl.UTF-8 |
40 | Mozilla LDAP C SDK to zestaw bibliotek pozwalających aplikacjom | |
41 | komunikować się z serwerami usług katalogowych LDAP. Biblioteki te | |
42 | wywodzą się z bibliotek LDAP University of Michigan i Netscape. | |
43 | Wykorzystują biblioteki Mozilla NSPR i NSS do kryptografii. | |
6c4abaa1 | 44 | |
42ecd1b3 | 45 | %package devel |
6c4abaa1 | 46 | Summary: Development files and examples for Mozilla LDAP C SDK |
d3333563 | 47 | Summary(pl.UTF-8): Pliki programistyczne i przykłady dla bibliotek Mozilla LDAP C SDK |
42ecd1b3 | 48 | Group: Development/Libraries |
285e2759 | 49 | Requires: %{name} = %{version}-%{release} |
6a6d7c73 JB |
50 | Requires: nspr-devel >= %{nspr_evr} |
51 | Requires: nss-devel >= %{nss_evr} | |
42ecd1b3 MWP |
52 | |
53 | %description devel | |
6c4abaa1 | 54 | Header and other files for doing development with the Mozilla LDAP C |
da7536bf | 55 | SDK. |
56 | ||
8a0946ca JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe i inne do tworzenia oprogramowania z użyciem | |
6c4abaa1 JB |
59 | bibliotek Mozilla LDAP C SDK |
60 | ||
da7536bf | 61 | %package static |
62 | Summary: Static Mozilla LDAP C SDK libraries | |
d3333563 | 63 | Summary(pl.UTF-8): Statyczne biblioteki Mozilla LDAP C SDK |
da7536bf | 64 | Group: Development/Libraries |
285e2759 | 65 | Requires: %{name}-devel = %{version}-%{release} |
da7536bf | 66 | |
67 | %description static | |
68 | Static Mozilla LDAP C SDK libraries. | |
69 | ||
8a0946ca | 70 | %description static -l pl.UTF-8 |
da7536bf | 71 | Statyczne biblioteki Mozilla LDAP C SDK. |
42ecd1b3 | 72 | |
6a6d7c73 JB |
73 | %package tools |
74 | Summary: Tools for the Mozilla LDAP C SDK | |
d3333563 | 75 | Summary(pl.UTF-8): Narzędzia dla bibliotek Mozilla LDAP C SDK |
6a6d7c73 | 76 | Group: Applications/System |
285e2759 | 77 | Requires: %{name} = %{version}-%{release} |
161e36e8 | 78 | Requires: svrcore >= %{svrcore_version} |
6a6d7c73 JB |
79 | |
80 | %description tools | |
81 | The mozldap-tools package provides the ldapsearch, ldapmodify, and | |
82 | ldapdelete tools that use the Mozilla LDAP C SDK libraries. | |
83 | ||
8a0946ca JR |
84 | %description tools -l pl.UTF-8 |
85 | Ten pakiet dostarcza narzędzia ldapsearch, ldapmodify i ldapdelete | |
86 | wykorzystujące biblioteki Mozilla LDAP C SDK. | |
6a6d7c73 | 87 | |
42ecd1b3 | 88 | %prep |
04cbdac9 | 89 | %setup -q |
c3d97cae | 90 | %patch0 -p1 |
906691f8 | 91 | %patch1 -p1 |
42ecd1b3 MWP |
92 | |
93 | %build | |
19760960 | 94 | cd mozilla/directory/c-sdk |
34e8310d | 95 | %{__autoconf} |
6c4abaa1 JB |
96 | %configure \ |
97 | %ifarch %{x8664} ia64 ppc64 s390x | |
98 | --enable-64bit \ | |
99 | %endif | |
100 | --disable-debug \ | |
34e8310d | 101 | --enable-clu \ |
6c4abaa1 | 102 | --enable-optimize \ |
34e8310d | 103 | --with-sasl \ |
34e8310d | 104 | --with-system-nspr \ |
161e36e8 JB |
105 | --with-system-nss \ |
106 | --with-system-svrcore | |
42ecd1b3 | 107 | |
81aa9159 | 108 | %ifarch %{x8664} ppc64 ia64 s390x |
42ecd1b3 MWP |
109 | USE_64=1 |
110 | export USE_64 | |
111 | %endif | |
112 | ||
dcc2ecbf | 113 | %{__make} \ |
dcc2ecbf | 114 | XCFLAGS="%{rpmcflags}" |
115 | ||
42ecd1b3 | 116 | %install |
42ecd1b3 | 117 | rm -rf $RPM_BUILD_ROOT |
f18a767a | 118 | install -d $RPM_BUILD_ROOT{{%{_includedir},%{_libdir}}/mozldap,%{_bindir},%{_sysconfdir}/%{name}} |
42ecd1b3 | 119 | |
19760960 | 120 | cd mozilla |
f18a767a ER |
121 | install dist/lib/lib*.so $RPM_BUILD_ROOT%{_libdir} |
122 | install dist/lib/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
dcc2ecbf | 123 | install dist/public/ldap/*.h $RPM_BUILD_ROOT%{_includedir}/mozldap |
f18a767a ER |
124 | install dist/bin/ldap* $RPM_BUILD_ROOT%{_bindir} |
125 | # what really uses these and proper install dir? | |
126 | install dist/etc/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
42ecd1b3 | 127 | |
f18a767a | 128 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
dcc2ecbf | 129 | cd directory/c-sdk/ldap |
f18a767a | 130 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e04e2572 | 131 | rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Makefile |
6a6d7c73 | 132 | cd - |
42ecd1b3 | 133 | |
9e6d5456 | 134 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
6a6d7c73 | 135 | sed directory/c-sdk/mozldap.pc.in -e " |
9e6d5456 ER |
136 | s,%%libdir%%,%{_libdir},g |
137 | s,%%prefix%%,%{_prefix},g | |
138 | s,%%exec_prefix%%,%{_prefix},g | |
139 | s,%%includedir%%,%{_includedir}/mozldap,g | |
140 | s,%%NSPR_VERSION%%,%{nspr_version},g | |
141 | s,%%NSS_VERSION%%,%{nss_version},g | |
285e2759 | 142 | s,%%MOZLDAP_VERSION%%,%{version},g |
9e6d5456 ER |
143 | " > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozldap.pc |
144 | ||
dcc2ecbf | 145 | cd $RPM_BUILD_ROOT%{_libdir} |
f18a767a | 146 | for file in lib*.so; do |
285e2759 JB |
147 | mv $file $file.%{version} |
148 | ln -s $file.%{version} $file | |
dcc2ecbf | 149 | done |
9e6d5456 | 150 | |
42ecd1b3 | 151 | %clean |
53e90225 | 152 | rm -rf $RPM_BUILD_ROOT |
42ecd1b3 | 153 | |
81aa9159 JB |
154 | %post -p /sbin/ldconfig |
155 | %postun -p /sbin/ldconfig | |
42ecd1b3 MWP |
156 | |
157 | %files | |
158 | %defattr(644,root,root,755) | |
34e8310d | 159 | %attr(755,root,root) %{_libdir}/libldap60.so.*.* |
ac175915 | 160 | %attr(755,root,root) %ghost %{_libdir}/libldap60.so |
34e8310d | 161 | %attr(755,root,root) %{_libdir}/libprldap60.so.*.* |
ac175915 | 162 | %attr(755,root,root) %ghost %{_libdir}/libprldap60.so |
34e8310d | 163 | %attr(755,root,root) %{_libdir}/libssldap60.so.*.* |
ac175915 | 164 | %attr(755,root,root) %ghost %{_libdir}/libssldap60.so |
f18a767a ER |
165 | %attr(755,root,root) %{_libdir}/libldif60.so.*.* |
166 | %attr(755,root,root) %ghost %{_libdir}/libldif60.so | |
42ecd1b3 MWP |
167 | |
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
42ecd1b3 | 170 | %{_includedir}/mozldap |
81aa9159 | 171 | %{_pkgconfigdir}/mozldap.pc |
f18a767a | 172 | %{_examplesdir}/%{name}-%{version} |
da7536bf | 173 | |
174 | %files static | |
175 | %defattr(644,root,root,755) | |
34e8310d JB |
176 | %{_libdir}/libiutil60.a |
177 | %{_libdir}/liblber60.a | |
178 | %{_libdir}/libldap60.a | |
179 | %{_libdir}/libldif60.a | |
6a6d7c73 JB |
180 | |
181 | %files tools | |
182 | %defattr(644,root,root,755) | |
f18a767a ER |
183 | %dir %{_sysconfdir}/%{name} |
184 | %{_sysconfdir}/%{name}/ldapfilter.conf | |
185 | %{_sysconfdir}/%{name}/ldapfriendly | |
186 | %{_sysconfdir}/%{name}/ldapsearchprefs.conf | |
187 | %{_sysconfdir}/%{name}/ldaptemplates.conf | |
188 | # NOTE: these probably collide with openldap | |
189 | %attr(755,root,root) %{_bindir}/ldapcmp | |
190 | %attr(755,root,root) %{_bindir}/ldapcompare | |
191 | %attr(755,root,root) %{_bindir}/ldapdelete | |
192 | %attr(755,root,root) %{_bindir}/ldapmodify | |
193 | %attr(755,root,root) %{_bindir}/ldappasswd | |
194 | %attr(755,root,root) %{_bindir}/ldapsearch |