]>
Commit | Line | Data |
---|---|---|
1cd6c269 ER |
1 | # TODO |
2 | # - mv /usr/share/mozldap/examples to %{_examplesdir} ? | |
066a70d9 | 3 | %define nspr_version 4.6 |
6a6d7c73 | 4 | %define nspr_evr 1:%{nspr_version} |
066a70d9 | 5 | %define nss_version 3.11 |
6a6d7c73 | 6 | %define nss_evr 1:%{nss_version} |
161e36e8 | 7 | %define svrcore_version 4.0.3 |
42ecd1b3 | 8 | Summary: Mozilla LDAP C SDK |
d3333563 | 9 | Summary(pl.UTF-8): Biblioteki Mozilla LDAP C SDK |
42ecd1b3 | 10 | Name: mozldap |
ac175915 | 11 | Version: 6.0.5 |
04cbdac9 | 12 | Release: 1 |
6a6d7c73 | 13 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
6c4abaa1 | 14 | Group: Libraries |
04cbdac9 | 15 | Source0: ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v%{version}/src/mozldap-%{version}.tar.gz |
ac175915 | 16 | # Source0-md5: 9719bd5b9efc13f810c85a47fb8c6412 |
c3d97cae | 17 | Patch0: %{name}-link.patch |
a9cfc858 | 18 | URL: http://wiki.mozilla.org/LDAP_C_SDK |
34e8310d JB |
19 | BuildRequires: autoconf >= 2.13 |
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 | ||
34e8310d | 32 | %define _noautoreqdep libldap60.so libprldap60.so libssldap60.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 |
c3d97cae | 91 | %patch0 -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 |
dcc2ecbf | 118 | install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}/mozldap |
42ecd1b3 | 119 | |
19760960 | 120 | cd mozilla |
11ae9486 | 121 | install dist/lib/lib*ldap*.so $RPM_BUILD_ROOT%{_libdir} |
dcc2ecbf | 122 | install dist/bin/ldap* $RPM_BUILD_ROOT%{_libdir}/mozldap |
123 | install dist/public/ldap/*.h $RPM_BUILD_ROOT%{_includedir}/mozldap | |
34e8310d | 124 | install directory/c-sdk/ldap/libraries/lib*/lib*60.a $RPM_BUILD_ROOT%{_libdir} |
42ecd1b3 | 125 | |
53e90225 | 126 | install -d $RPM_BUILD_ROOT%{_datadir}/mozldap%{_sysconfdir} |
dcc2ecbf | 127 | cd directory/c-sdk/ldap |
128 | cp -r examples $RPM_BUILD_ROOT%{_datadir}/mozldap | |
129 | install examples/xmplflt.conf $RPM_BUILD_ROOT%{_datadir}/mozldap%{_sysconfdir} | |
130 | install libraries/libldap/*.conf $RPM_BUILD_ROOT%{_datadir}/mozldap%{_sysconfdir} | |
6a6d7c73 | 131 | cd - |
42ecd1b3 | 132 | |
9e6d5456 | 133 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
6a6d7c73 | 134 | sed directory/c-sdk/mozldap.pc.in -e " |
9e6d5456 ER |
135 | s,%%libdir%%,%{_libdir},g |
136 | s,%%prefix%%,%{_prefix},g | |
137 | s,%%exec_prefix%%,%{_prefix},g | |
138 | s,%%includedir%%,%{_includedir}/mozldap,g | |
139 | s,%%NSPR_VERSION%%,%{nspr_version},g | |
140 | s,%%NSS_VERSION%%,%{nss_version},g | |
285e2759 | 141 | s,%%MOZLDAP_VERSION%%,%{version},g |
9e6d5456 ER |
142 | " > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozldap.pc |
143 | ||
dcc2ecbf | 144 | cd $RPM_BUILD_ROOT%{_libdir} |
34e8310d | 145 | for file in libssldap60.so libprldap60.so libldap60.so; do |
285e2759 JB |
146 | mv $file $file.%{version} |
147 | ln -s $file.%{version} $file | |
dcc2ecbf | 148 | done |
9e6d5456 | 149 | |
42ecd1b3 | 150 | %clean |
53e90225 | 151 | rm -rf $RPM_BUILD_ROOT |
42ecd1b3 | 152 | |
81aa9159 JB |
153 | %post -p /sbin/ldconfig |
154 | %postun -p /sbin/ldconfig | |
42ecd1b3 MWP |
155 | |
156 | %files | |
157 | %defattr(644,root,root,755) | |
34e8310d | 158 | %attr(755,root,root) %{_libdir}/libldap60.so.*.* |
ac175915 | 159 | %attr(755,root,root) %ghost %{_libdir}/libldap60.so |
34e8310d | 160 | %attr(755,root,root) %{_libdir}/libprldap60.so.*.* |
ac175915 | 161 | %attr(755,root,root) %ghost %{_libdir}/libprldap60.so |
34e8310d | 162 | %attr(755,root,root) %{_libdir}/libssldap60.so.*.* |
ac175915 | 163 | %attr(755,root,root) %ghost %{_libdir}/libssldap60.so |
42ecd1b3 MWP |
164 | |
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
42ecd1b3 | 167 | %{_includedir}/mozldap |
81aa9159 | 168 | %{_pkgconfigdir}/mozldap.pc |
42ecd1b3 | 169 | %{_datadir}/mozldap |
da7536bf | 170 | |
171 | %files static | |
172 | %defattr(644,root,root,755) | |
34e8310d JB |
173 | %{_libdir}/libiutil60.a |
174 | %{_libdir}/liblber60.a | |
175 | %{_libdir}/libldap60.a | |
176 | %{_libdir}/libldif60.a | |
6a6d7c73 JB |
177 | |
178 | %files tools | |
179 | %defattr(644,root,root,755) | |
180 | %dir %{_libdir}/mozldap | |
181 | %attr(755,root,root) %{_libdir}/mozldap/ldap* |