]>
Commit | Line | Data |
---|---|---|
9b56aff0 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class File | |
3 | %define _subclass MARC | |
4 | %define _status beta | |
5 | %define _pearname File_MARC | |
6 | Summary: %{_pearname} - Parse, modify, and create MARC records | |
7 | Summary(pl.UTF-8): %{_pearname} - parsowanie, modyfikacja oraz tworzenie rekordów MARC | |
8 | Name: php-pear-%{_pearname} | |
4f39efba | 9 | Version: 1.1.1 |
a3dcef71 | 10 | Release: 1 |
9b56aff0 AG |
11 | License: GNU Lesser General Public License |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
4f39efba | 14 | # Source0-md5: 81fffe5767e9547dd56b88b932b6a857 |
9b56aff0 | 15 | URL: http://pear.php.net/package/File_MARC/ |
a30920a8 | 16 | BuildRequires: php-pear-PEAR >= 1:1.4.0 |
9b56aff0 | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
d12403e6 | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
9b56aff0 | 19 | Requires: php-pear |
300659eb | 20 | Requires: php-pear-PEAR-core >= 1:1.4.0 |
9b56aff0 | 21 | Requires: php-pear-Structures_LinkedList |
b0b6c7eb | 22 | Obsoletes: php-pear-File_MARC-tests |
9b56aff0 AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | The standard for machine-readable cataloging (MARC) records is | |
28 | documented at http://loc.gov/marc/. This package enables you to read | |
29 | existing MARC records from a file, string, or (using the YAZ | |
30 | extension), from a Z39.50 source. You can also use this package to | |
31 | create new MARC records. | |
32 | ||
33 | This package is based on the PHP MARC package, originally called | |
34 | "php-marc", that is part of the Emilda Project | |
35 | (http://www.emilda.org). Christoffer Landtman generously agreed to | |
36 | make the "php-marc" code available under the GNU LGPL so it could be | |
37 | used as the basis of this PEAR package. | |
38 | ||
39 | In PEAR status of this package is: %{_status}. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Klasa ta obsługuję standard czytelnych dla komputerów rekordów | |
43 | katalogowania (MARC) opisanych na stronie http://loc.gov/marc/ . | |
44 | Pakiet ten umożliwia odczyt istniejących rekordów z pliku, łańcucha | |
45 | znaków czy też (przy użyciu rozszerzenia YAZ) ze źródła Z39.50. | |
46 | Możliwe jest także tworzenie nowych rekordów MARC. | |
47 | ||
48 | Pakiet ten oparty jest na projekcie PHP MARC, początkowo nazwanym | |
49 | "php-marc" będącym częścią projektu Emilda (http://www.emilda.org/). | |
50 | Christoffer Landtman zgodził się na udostępnienie kodu "php-marc" na | |
51 | zasadach licencji GNU LGPL aby mógł się on stać podstawą tej klasy | |
52 | PEAR. | |
53 | ||
54 | Ta klasa ma w PEAR status: %{_status}. | |
55 | ||
9b56aff0 AG |
56 | %prep |
57 | %pear_package_setup | |
58 | ||
300659eb ER |
59 | mv docs/File_MARC/examples . |
60 | mv docs/%{_pearname}/{CHANGELOG,LICENSE} . | |
61 | ||
9b56aff0 AG |
62 | %install |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
65 | %pear_package_install | |
66 | ||
6f8f708f ER |
67 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
68 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
69 | ||
9b56aff0 AG |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
300659eb ER |
75 | %doc CHANGELOG |
76 | %doc install.log | |
9b56aff0 | 77 | %{php_pear_dir}/.registry/*.reg |
9b56aff0 | 78 | %{php_pear_dir}/File/MARC.php |
300659eb | 79 | %{php_pear_dir}/File/MARCBASE.php |
9b56aff0 | 80 | %{php_pear_dir}/File/MARCXML.php |
300659eb | 81 | %{php_pear_dir}/File/MARC |
9b56aff0 | 82 | |
6f8f708f | 83 | %{_examplesdir}/%{name}-%{version} |