]>
Commit | Line | Data |
---|---|---|
87e0455f AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Net | |
3 | %define _subclass CDDB | |
4 | %define _status alpha | |
5 | %define _pearname Net_CDDB | |
6 | ||
7 | Summary: %{_pearname} - Package to access and query CDDB audio-CD servers | |
d8211746 | 8 | Summary(pl.UTF-8): %{_pearname} - Pakiet do współpracy z serwerami CDDB |
87e0455f | 9 | Name: php-pear-%{_pearname} |
935b133b | 10 | Version: 0.3.0 |
02889460 | 11 | Release: 3 |
87e0455f AG |
12 | License: BSD |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
935b133b | 15 | # Source0-md5: c174cd8ed66c81292d627d0ba5c7d1ba |
87e0455f AG |
16 | URL: http://pear.php.net/package/Net_CDDB/ |
17 | BuildRequires: php-pear-PEAR | |
18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
28ac5384 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
87e0455f | 20 | Requires: php-pear |
935b133b ER |
21 | Requires: php-pear-HTTP_Request >= 1.3.0 |
22 | Requires: php-pear-MDB2 >= 1:2.2.2 | |
23 | Requires: php-pear-Net_Socket >= 1.0.6 | |
160af78d | 24 | Obsoletes: php-pear-Net_CDDB-tests |
87e0455f AG |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | The Net_CDDB class is used to access CDDB audio-CD servers via | |
30 | different protocols. The class can get detailed audio-CD data (track | |
31 | names, artist names, album name, etc.) from the CDDB server for a | |
32 | given audio CD. | |
33 | ||
34 | In PEAR status of this package is: %{_status}. | |
35 | ||
7ad823ea JR |
36 | %description -l pl.UTF-8 |
37 | Klasa Net_CDDB służy do współpracy z serwerami audio-cd CDDB za pomocą | |
38 | różnych protokołów. Klasa może być użyta do uzyskania szczegółowych | |
39 | informacji o płycie audio (nazwy utworów, albumu, informacje o | |
40 | artyście) z serwera CDDB dla danej płyty. | |
87e0455f AG |
41 | |
42 | Ta klasa ma w PEAR status: %{_status}. | |
43 | ||
44 | %prep | |
45 | %pear_package_setup | |
935b133b ER |
46 | # class/test -> tests |
47 | install -d ./%{php_pear_dir}/tests/%{_pearname} | |
48 | mv ./%{php_pear_dir}/{%{_class}/tests/*,tests/%{_pearname}} | |
49 | ||
50 | # class/docs -> docs | |
51 | install -d docs/%{_pearname}/docs | |
52 | mv ./%{php_pear_dir}/%{_class}/docs/* docs/%{_pearname}/docs | |
87e0455f AG |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
57 | %pear_package_install | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
935b133b | 64 | %doc install.log docs/%{_pearname}/docs/* |
87e0455f AG |
65 | %{php_pear_dir}/.registry/*.reg |
66 | %{php_pear_dir}/Net/CDDB.php | |
67 | %{php_pear_dir}/Net/CDDB |