1 %include /usr/lib/rpm/macros.php
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}
11 License: GNU Lesser General Public License
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 81fffe5767e9547dd56b88b932b6a857
15 URL: http://pear.php.net/package/File_MARC/
16 BuildRequires: php-pear-PEAR >= 1:1.4.0
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
20 Requires: php-pear-PEAR-core >= 1:1.4.0
21 Requires: php-pear-Structures_LinkedList
22 Obsoletes: php-pear-File_MARC-tests
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
39 In PEAR status of this package is: %{_status}.
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.
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
54 Ta klasa ma w PEAR status: %{_status}.
59 mv docs/File_MARC/examples .
60 mv docs/%{_pearname}/{CHANGELOG,LICENSE} .
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
77 %{php_pear_dir}/.registry/*.reg
78 %{php_pear_dir}/File/MARC.php
79 %{php_pear_dir}/File/MARCBASE.php
80 %{php_pear_dir}/File/MARCXML.php
81 %{php_pear_dir}/File/MARC
83 %{_examplesdir}/%{name}-%{version}