]>
Commit | Line | Data |
---|---|---|
1 | %define _status stable | |
2 | %define _pearname XML_NITF | |
3 | Summary: %{_pearname} - parse NITF documents | |
4 | Summary(pl.UTF-8): %{_pearname} - analiza dokumentów NITF | |
5 | Name: php-pear-%{_pearname} | |
6 | Version: 1.1.1 | |
7 | Release: 2 | |
8 | License: PHP 2.02 | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
11 | # Source0-md5: 1c849b5777e5ab7081c3959eaa831ee3 | |
12 | URL: http://pear.php.net/package/XML_NITF/ | |
13 | BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1 | |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
15 | BuildRequires: rpmbuild(macros) >= 1.300 | |
16 | Requires: php(core) >= 4.3.0 | |
17 | Requires: php-pear | |
18 | Requires: php-pear-XML_Parser | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | This package provides a NITF XML parser. The parser was designed with | |
24 | NITF version 3.1, but should be forward-compatible when new versions | |
25 | of the NITF DTD are produced. Various methods for accessing the major | |
26 | elements of the document, such as the hedline(s), byline, and lede are | |
27 | provided. This class was originally tested against the Associated | |
28 | Press's (AP) XML data feed. | |
29 | ||
30 | In PEAR status of this package is: %{_status}. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Ten pakiet udostępnia analizator dokumentów XML NITF. Analizator | |
34 | został zaprojektowany dla NITF w wersji 3.1, ale powinien być | |
35 | kompatybilny w przód, kiedy zostaną wydane nowe wersje NITF DTD. | |
36 | Dostępne są różne metody do dostępu do głównych elementów dokumentu, | |
37 | takich jak hedline, byline i lede. Ta klasa była oryginalnie testowana | |
38 | danymi XML z Associated Press (AP). | |
39 | ||
40 | Ta klasa ma w PEAR status: %{_status}. | |
41 | ||
42 | %prep | |
43 | %pear_package_setup | |
44 | ||
45 | # developer project files | |
46 | %{__rm} .%{php_pear_dir}/data/XML_NITF/.buildpath | |
47 | %{__rm} .%{php_pear_dir}/data/XML_NITF/.project | |
48 | %{__rm} .%{php_pear_dir}/data/XML_NITF/.settings/org.eclipse.php.core.prefs | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
53 | %pear_package_install | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc install.log | |
61 | %{php_pear_dir}/.registry/*.reg | |
62 | %{php_pear_dir}/XML/NITF.php |