1 %include /usr/lib/rpm/macros.php
3 %define _pearname System_Mount
4 Summary: %{_pearname} - mount and unmount devices in fstab
5 Summary(pl.UTF-8): %{_pearname} - montowanie i odmontowywanie urządzeń z fstab
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: c4d586a8cc91e056cf311ae89c9c1341
13 URL: http://pear.php.net/package/System_Mount/
14 BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.571
18 Requires: php-pear-File_Fstab >= 2.0.0-0.beta1
19 Requires: php-pear-System_Command
20 Suggests: php-pear-File
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 # exclude optional dependencies
25 %define _noautoreq pear(File.*)
28 System_Mount provides a simple interface to deal with mounting and
29 unmounting devices listed in the system's fstab.
32 - Very compact, easy-to-read code, based on File_Fstab,
33 - Examines mount options to determine if a device can be mounted or
35 - Extremely easy to use,
36 - Fully documented with PHPDoc.
38 In PEAR status of this package is: %{_status}.
40 %description -l pl.UTF-8
41 System_Mount dostarcza prostego interfejsu do radzenia sobie z
42 montowaniem i odmontowywaniem urządzeń wpisanych w pliku fstab.
45 - Bardzo prosty, czytelny kod bazowany na File-Fstab,
46 - Bada opcje mount w celu stwierdzenia czy urządzenie może być
48 - Niewiarygodnie łatwy w użyciu,
49 - W pełni udokumentowany za pomocą PHPDoc.
51 Ta klasa ma w PEAR status: %{_status}.
57 mv docs/System_Mount/docs/example.php examples
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{php_pear_dir}
64 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 rm -rf $RPM_BUILD_ROOT
71 %pear_package_print_optionalpackages
74 %defattr(644,root,root,755)
75 %doc install.log optional-packages.txt
76 %doc docs/%{_pearname}/*
77 %{php_pear_dir}/.registry/*.reg
78 %{php_pear_dir}/System/Mount.php
80 %{_examplesdir}/%{name}-%{version}