]> git.pld-linux.org Git - packages/php-pear-XML_Feed_Parser.git/blob - php-pear-XML_Feed_Parser.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-XML_Feed_Parser.git] / php-pear-XML_Feed_Parser.spec
1 %define         _status         stable
2 %define         _pearname       XML_Feed_Parser
3 Summary:        %{_pearname} - unified API for handling RSS and ATOM feeds
4 Summary(pl.UTF-8):      %{_pearname} - zunifikowane API do obsługi źródeł RSS i ATOM
5 Name:           php-pear-%{_pearname}
6 Version:        1.0.5
7 Release:        3
8 License:        PHP License
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5:  8a8a0113a4ecd4d9dd6a6f4ecaa5f0d5
12 URL:            http://pear.php.net/package/XML_Feed_Parser/
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) >= 5.0
17 Requires:       php(xml)
18 Requires:       php-pear
19 Requires:       php-pear-Log
20 Suggests:       php-tidy
21 Obsoletes:      php-pear-XML_Feed_Parser-tests
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 # files not distributed (bug reported)
26 %define _noautoreq pear(XML/Feed/Parser/RSS11.php) pear(XML/Feed/Parser/RSS11Element.php)
27
28 %description
29 XML_Feed_Parser is a parser for (the various) RSS and ATOM format XML
30 feeds. It attempts to provide a somewhat unified API while still
31 allowing access to the full details of each feed type.
32
33 In PEAR status of this package is: %{_status}.
34
35 %description -l pl.UTF-8
36 XML_Feed_Parser jest parserem dla (różnych) formatów XML źródeł RSS i
37 ATOM. Klasa ta stara się dostarczyć zunifikowanego API przy
38 jednoczesnej możliwości dostępu do pełnych informacji dotyczących
39 każdego źródła.
40
41 Ta klasa ma w PEAR status: %{_status}.
42
43 %prep
44 %pear_package_setup
45
46 mv ./%{php_pear_dir}/tests/%{_pearname}/{tests/*,}
47 rmdir ./%{php_pear_dir}/tests/%{_pearname}/tests
48
49 mv .%{php_pear_dir}/data/XML_Feed_Parser/samples examples
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_examplesdir}/%{name}-%{version}}
54 %pear_package_install
55
56 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc install.log
64 %{php_pear_dir}/.registry/*.reg
65 %{php_pear_dir}/XML/Feed
66 %{php_pear_dir}/data/XML_Feed_Parser
67
68 %{_examplesdir}/%{name}-%{version}
This page took 0.030757 seconds and 3 git commands to generate.