2 %define _pearname System_Mount
3 Summary: %{_pearname} - mount and unmount devices in fstab
4 Summary(pl.UTF-8): %{_pearname} - montowanie i odmontowywanie urządzeń z fstab
5 Name: php-pear-%{_pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5: c4d586a8cc91e056cf311ae89c9c1341
12 URL: http://pear.php.net/package/System_Mount/
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.571
17 Requires: php-pear-File_Fstab >= 2.0.0-0.beta1
18 Requires: php-pear-System_Command
19 Suggests: php-pear-File
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # exclude optional dependencies
24 %define _noautoreq pear(File.*)
27 System_Mount provides a simple interface to deal with mounting and
28 unmounting devices listed in the system's fstab.
31 - Very compact, easy-to-read code, based on File_Fstab,
32 - Examines mount options to determine if a device can be mounted or
34 - Extremely easy to use,
35 - Fully documented with PHPDoc.
37 In PEAR status of this package is: %{_status}.
39 %description -l pl.UTF-8
40 System_Mount dostarcza prostego interfejsu do radzenia sobie z
41 montowaniem i odmontowywaniem urządzeń wpisanych w pliku fstab.
44 - Bardzo prosty, czytelny kod bazowany na File-Fstab,
45 - Bada opcje mount w celu stwierdzenia czy urządzenie może być
47 - Niewiarygodnie łatwy w użyciu,
48 - W pełni udokumentowany za pomocą PHPDoc.
50 Ta klasa ma w PEAR status: %{_status}.
56 mv docs/System_Mount/docs/example.php examples
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 rm -rf $RPM_BUILD_ROOT
70 %pear_package_print_optionalpackages
73 %defattr(644,root,root,755)
74 %doc install.log optional-packages.txt
75 %doc docs/%{_pearname}/*
76 %{php_pear_dir}/.registry/*.reg
77 %{php_pear_dir}/System/Mount.php
79 %{_examplesdir}/%{name}-%{version}