- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-FSM.git] / php-pear-FSM.spec
1 %define         _status         stable
2 %define         _pearname       FSM
3 Summary:        %{_pearname} - Finite State Machine
4 Summary(pl.UTF-8):      %{_pearname} - automat skończony
5 Name:           php-pear-%{_pearname}
6 Version:        1.4.0
7 Release:        1
8 License:        PHP 2.02
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5:  cad02549d7bd5f4c58f789af3da8cb9a
12 URL:            http://pear.php.net/package/FSM/
13 BuildRequires:  php-pear-PEAR
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.300
16 Requires:       php-pear
17 Suggests:       php-pear-Image_GraphViz
18 Obsoletes:      php-pear-FSM-tests
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 # exclude optional dependencies
23 %define         _noautoreq      pear(Image/GraphViz.*)
24
25 %description
26 The FSM package provides a simple class that implements a Finite State
27 Machine.
28
29 In PEAR status of this package is: %{_status}.
30
31 %description -l pl.UTF-8
32 Pakiet FSM dostarcza prostą klasę implementującą automat skończony
33 (automat o skończonej liczbie stanów).
34
35 Ta klasa ma w PEAR status: %{_status}.
36
37 %prep
38 %pear_package_setup
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{php_pear_dir}
43 %pear_package_install
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
50         cat %{_docdir}/%{name}-%{version}/optional-packages.txt
51 fi
52
53 %files
54 %defattr(644,root,root,755)
55 %doc install.log optional-packages.txt
56 %{php_pear_dir}/.registry/*.reg
57 %{php_pear_dir}/FSM.php
58 %dir %{php_pear_dir}/FSM
59 %{php_pear_dir}/FSM/GraphViz.php
This page took 0.122649 seconds and 4 git commands to generate.