]> git.pld-linux.org Git - packages/php-pear-System_Mount.git/blob - php-pear-System_Mount.spec
582cc8e952420c1ebe2857c88017e03517bf0a80
[packages/php-pear-System_Mount.git] / php-pear-System_Mount.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _status         stable
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}
7 Version:        1.0.1
8 Release:        1
9 License:        PHP 3.0
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
17 Requires:       php-pear
18 Requires:       php-pear-File_Fstab >= 2.0.0-0.beta1
19 Requires:       php-pear-System_Command
20 Suggests:       php-pear-File
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 # exclude optional dependencies
25 %define         _noautoreq      pear(File.*)
26
27 %description
28 System_Mount provides a simple interface to deal with mounting and
29 unmounting devices listed in the system's fstab.
30
31 Features:
32 - Very compact, easy-to-read code, based on File_Fstab,
33 - Examines mount options to determine if a device can be mounted or
34   not,
35 - Extremely easy to use,
36 - Fully documented with PHPDoc.
37
38 In PEAR status of this package is: %{_status}.
39
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.
43
44 Cechy:
45 - Bardzo prosty, czytelny kod bazowany na File-Fstab,
46 - Bada opcje mount w celu stwierdzenia czy urządzenie może być
47   zamontowane lub nie,
48 - Niewiarygodnie łatwy w użyciu,
49 - W pełni udokumentowany za pomocą PHPDoc.
50
51 Ta klasa ma w PEAR status: %{_status}.
52
53 %prep
54 %pear_package_setup
55
56 install -d examples
57 mv docs/System_Mount/docs/example.php examples
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{php_pear_dir}
62 %pear_package_install
63
64 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post -p <lua>
71 %pear_package_print_optionalpackages
72
73 %files
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
79
80 %{_examplesdir}/%{name}-%{version}
This page took 0.05639 seconds and 2 git commands to generate.