]> git.pld-linux.org Git - packages/php-pear-File_IMC.git/blame - php-pear-File_IMC.spec
- tests are no longer installed - don't try to remove them
[packages/php-pear-File_IMC.git] / php-pear-File_IMC.spec
CommitLineData
916c8527 1%include /usr/lib/rpm/macros.php
cb4f7cdc 2%define _class File
3%define _subclass IMC
916c8527
AG
4%define _status beta
5%define _pearname %{_class}_%{_subclass}
cb4f7cdc 6Summary: %{_pearname} - create and parse Internet Mail Consortium-style files
23a8ad5e 7Summary(pl.UTF-8): %{_pearname} - tworzenie i parsowanie plików typu Internet Mail Consortium
916c8527 8Name: php-pear-%{_pearname}
6f150e9d
ER
9Version: 0.4.1
10Release: 1
916c8527
AG
11License: PHP 2.02
12Group: Development/Languages/PHP
13Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
6f150e9d 14# Source0-md5: 9a077a7384375faf2d929371ff5815eb
76d0b749 15URL: http://pear.php.net/package/File_IMC/
fe55e691 16BuildRequires: php-pear-PEAR
03aea89e 17BuildRequires: rpm-php-pearprov >= 4.4.2-11
9ac67c80 18BuildRequires: rpmbuild(macros) >= 1.300
916c8527
AG
19Requires: php-pear
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Allows you to programmatically create a vCard or vCalendar, and fetch
25the text.
26
27IMPORTANT: The array structure has changed slightly from
76f3c8f8
JB
28Contact_Vcard_Parse. See the example output for the new structure.
29Also different from Contact_Vcard is the use of a factory pattern.
30Again, see the examples.
916c8527 31
cfb9b30a 32In PEAR status of this package is: %{_status}.
916c8527 33
29a5a6d3
JR
34%description -l pl.UTF-8
35Ta klasa pozwala programowo tworzyć pliki vCard i vCalendar oraz
36pobierać tekst.
76f3c8f8 37
29a5a6d3
JR
38WAŻNE: struktura tablic zmieniła się nieco w stosunku do
39Contact_Vcard_Parse. Nową strukturę można obejrzeć w przykładzie.
40Użycie wzorców także różni się od Contact_Vcard, co również można
41zobaczyć w przykładach.
76f3c8f8
JB
42
43Ta klasa ma w PEAR status: %{_status}.
44
916c8527 45%prep
03aea89e 46%pear_package_setup
916c8527 47
6f150e9d
ER
48install -d examples
49mv docs/File_IMC/docs/sample.* examples
50mv docs/File_IMC/docs/*example.php examples
51
916c8527
AG
52%install
53rm -rf $RPM_BUILD_ROOT
03aea89e
ER
54install -d $RPM_BUILD_ROOT%{php_pear_dir}
55%pear_package_install
916c8527 56
6f150e9d
ER
57install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59
916c8527
AG
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
03aea89e 65%doc install.log
03aea89e 66%{php_pear_dir}/.registry/*.reg
916c8527
AG
67%{php_pear_dir}/%{_class}/*.php
68%{php_pear_dir}/%{_class}/%{_subclass}
6f150e9d
ER
69
70%{_examplesdir}/%{name}-%{version}
This page took 0.07908 seconds and 4 git commands to generate.