]> git.pld-linux.org Git - packages/php-pear-File_IMC.git/blob - php-pear-File_IMC.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-File_IMC.git] / php-pear-File_IMC.spec
1 %define         _status         beta
2 %define         _pearname       File_IMC
3 Summary:        %{_pearname} - create and parse Internet Mail Consortium-style files
4 Summary(pl.UTF-8):      %{_pearname} - tworzenie i parsowanie plików typu Internet Mail Consortium
5 Name:           php-pear-%{_pearname}
6 Version:        0.5.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:  133bfd47aef06de8838dc645ad14b800
12 URL:            http://pear.php.net/package/File_IMC/
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 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Allows you to programmatically create a vCard or vCalendar, and fetch
22 the text.
23
24 IMPORTANT: The array structure has changed slightly from
25 Contact_Vcard_Parse. See the example output for the new structure.
26 Also different from Contact_Vcard is the use of a factory pattern.
27 Again, see the examples.
28
29 In PEAR status of this package is: %{_status}.
30
31 %description -l pl.UTF-8
32 Ta klasa pozwala programowo tworzyć pliki vCard i vCalendar oraz
33 pobierać tekst.
34
35 WAŻNE: struktura tablic zmieniła się nieco w stosunku do
36 Contact_Vcard_Parse. Nową strukturę można obejrzeć w przykładzie.
37 Użycie wzorców także różni się od Contact_Vcard, co również można
38 zobaczyć w przykładach.
39
40 Ta klasa ma w PEAR status: %{_status}.
41
42 %prep
43 %pear_package_setup
44
45 install -d examples
46 mv docs/File_IMC/docs/sample.* examples
47 mv docs/File_IMC/docs/*example.php examples
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{php_pear_dir}
52 %pear_package_install
53
54 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc install.log
63 %{php_pear_dir}/.registry/*.reg
64 %{php_pear_dir}/File/*.php
65 %{php_pear_dir}/File/IMC
66
67 %{_examplesdir}/%{name}-%{version}
This page took 0.081885 seconds and 4 git commands to generate.