]>
Commit | Line | Data |
---|---|---|
69583a92 | 1 | %include /usr/lib/rpm/macros.php |
ec2e41a8 | 2 | %define _class Net |
3 | %define _subclass LDAP | |
69583a92 AG |
4 | %define _status beta |
5 | %define _pearname %{_class}_%{_subclass} | |
8daa0074 | 6 | |
3d4f15c2 ER |
7 | %define _rc RC2 |
8 | %define _rel 1 | |
69583a92 | 9 | Summary: %{_pearname} - OO interface for searching and manipulating LDAP-entries |
b61ce843 | 10 | Summary(pl.UTF-8): %{_pearname} - obiektowy interfejs do przeszukiwania i modyfikowania wpisów LDAP |
69583a92 | 11 | Name: php-pear-%{_pearname} |
3d4f15c2 ER |
12 | Version: 1.0.0 |
13 | Release: 0.%{_rc}.%{_rel} | |
6b3a4761 | 14 | Epoch: 0 |
c5fd3cf7 | 15 | License: LGPL |
69583a92 | 16 | Group: Development/Languages/PHP |
3d4f15c2 ER |
17 | Source0: http://pear.php.net/get/%{_pearname}-%{version}%{_rc}.tgz |
18 | # Source0-md5: 31782acbb3c2def62ec281fc78069f16 | |
9322aae1 | 19 | Patch0: %{name}-path_fix.patch |
35692c35 | 20 | URL: http://pear.php.net/package/Net_LDAP/ |
7c3eb4c7 | 21 | BuildRequires: php-pear-PEAR |
c5fd3cf7 | 22 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
e3f4bb3a | 23 | BuildRequires: rpmbuild(macros) >= 1.300 |
69583a92 AG |
24 | Requires: php-pear |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | %{_pearname} is a clone of Perl's Net::LDAP object interface to | |
30 | ldapservers. It does not contain all of Net::LDAP features (ldif | |
31 | handling, schemas, etc), but has: | |
32 | - a simple OO interface to connections, searches and entries | |
33 | - support for TLS and ldap v3 | |
34 | - simple modification, deletion and creation of ldapentries | |
35 | ||
18b3c129 | 36 | In PEAR status of this package is: %{_status}. |
69583a92 | 37 | |
03dc81eb | 38 | %description -l pl.UTF-8 |
58241419 | 39 | %{_pearname} jest klonem perlowego Net::LDAP, czyli zorientowanego |
03dc81eb JR |
40 | obiektowo interfejsu do serwerów LDAP. Nie posiada wszystkich |
41 | możliwości Net::LDAP (obsługa ldif, schematy, itp), ale ma następujące | |
58241419 | 42 | cechy: |
03dc81eb | 43 | - prosty interfejs obiektowy do połączeń, wyszukiwań i dodawania |
58241419 | 44 | nowych pozycji |
03dc81eb JR |
45 | - obsługa TLS i LDAP v3 |
46 | - możliwość prostych modyfikacji, usuwania i tworzenia wpisów LDAP. | |
69583a92 AG |
47 | |
48 | Ta klasa ma w PEAR status: %{_status}. | |
49 | ||
c5fd3cf7 ER |
50 | %package tests |
51 | Summary: Tests for PEAR::%{_pearname} | |
b61ce843 | 52 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
91468ced | 53 | Group: Development/Languages/PHP |
c5fd3cf7 ER |
54 | Requires: %{name} = %{epoch}:%{version}-%{release} |
55 | AutoReq: no | |
27fe7570 | 56 | AutoProv: no |
c5fd3cf7 ER |
57 | |
58 | %description tests | |
59 | Tests for PEAR::%{_pearname}. | |
60 | ||
03dc81eb | 61 | %description tests -l pl.UTF-8 |
c5fd3cf7 ER |
62 | Testy dla PEAR::%{_pearname}. |
63 | ||
69583a92 | 64 | %prep |
c5fd3cf7 ER |
65 | %pear_package_setup |
66 | ||
c5fd3cf7 | 67 | cd ./%{php_pear_dir}/%{_class} |
3d4f15c2 | 68 | %patch0 -p1 |
69583a92 AG |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
c5fd3cf7 ER |
72 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
73 | %pear_package_install | |
69583a92 AG |
74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
c5fd3cf7 ER |
80 | %doc install.log |
81 | %doc docs/%{_pearname}/* | |
82 | %{php_pear_dir}/.registry/*.reg | |
69583a92 AG |
83 | %{php_pear_dir}/%{_class}/*.php |
84 | %{php_pear_dir}/%{_class}/%{_subclass} | |
c5fd3cf7 ER |
85 | |
86 | %files tests | |
87 | %defattr(644,root,root,755) | |
88 | %{php_pear_dir}/tests/* |