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