- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Net_Server.git] / php-pear-Net_Server.spec
1 %define         status          stable
2 %define         pearname        Net_Server
3 Summary:        %{pearname} - generic server class
4 Summary(pl.UTF-8):      %{pearname} - ogólna klasa serwerowa
5 Name:           php-pear-%{pearname}
6 Version:        1.0.3
7 Release:        3
8 License:        PHP 2.02
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5:  46809888cb27e14fdc88ed2f388807cc
12 URL:            http://pear.php.net/package/Net_Server/
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.580
16 Requires:       php(core) >= 4.2.0
17 Requires:       php(sockets)
18 Requires:       php-pear
19 Requires:       php-pear-PEAR-core >= 1:1.4.0-0.b1
20 Suggests:       php-pcntl
21 Suggests:       php-pear-PHP_Fork
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 # exclude optional dependencies
26 %define         _noautoreq      pear(PHP/Fork.*)
27
28 %description
29 Generic server class based on ext/sockets, used to develop any kind of
30 server.
31
32 In PEAR status of this package is: %{status}.
33
34 %description -l pl.UTF-8
35 Ogólna klasa serwerowa oparta na ext/sockets, służąca do tworzenia
36 serwerów dowolnego rodzaju.
37
38 Ta klasa ma w PEAR status: %{status}.
39
40 %prep
41 %pear_package_setup
42
43 mv .%{php_pear_dir}/data/Net_Server/README .
44 mv docs/%{pearname}/examples .
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{php_pear_dir}
49 %pear_package_install
50
51 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
59         cat %{_docdir}/%{name}-%{version}/optional-packages.txt
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README
65 %doc install.log optional-packages.txt
66 %doc docs/%{pearname}/docs/*
67 %{php_pear_dir}/.registry/*.reg
68 %{php_pear_dir}/Net/Server.php
69 %{php_pear_dir}/Net/Server
70 %{_examplesdir}/%{name}-%{version}
This page took 0.176887 seconds and 4 git commands to generate.