]> git.pld-linux.org Git - packages/php-pear-File_IMC.git/blobdiff - 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
index f8ba397c421790b710fbf6fc08900485b8b84efc..64e012888f437166e1e85763b53c0648a91b7aed 100644 (file)
@@ -1,18 +1,14 @@
-%include       /usr/lib/rpm/macros.php
-%define                _class          File
-%define                _subclass       IMC
 %define                _status         beta
-%define                _pearname       %{_class}_%{_subclass}
-
+%define                _pearname       File_IMC
 Summary:       %{_pearname} - create and parse Internet Mail Consortium-style files
-Summary(pl):   %{_pearname} - tworzenie i parsowanie plików typu Internet Mail Consortium
+Summary(pl.UTF-8):     %{_pearname} - tworzenie i parsowanie plików typu Internet Mail Consortium
 Name:          php-pear-%{_pearname}
-Version:       0.3
-Release:       4
+Version:       0.5.0
+Release:       1
 License:       PHP 2.02
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: 48b2b15969f5f5aecaf8e76eef03a6d1
+# Source0-md5: 133bfd47aef06de8838dc645ad14b800
 URL:           http://pear.php.net/package/File_IMC/
 BuildRequires: php-pear-PEAR
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
@@ -28,36 +24,44 @@ the text.
 IMPORTANT: The array structure has changed slightly from
 Contact_Vcard_Parse. See the example output for the new structure.
 Also different from Contact_Vcard is the use of a factory pattern.
-Again, see the examples. 
+Again, see the examples.
 
 In PEAR status of this package is: %{_status}.
 
-%description -l pl
-Ta klasa pozwala programowo tworzyæ pliki vCard i vCalendar oraz
-pobieraæ tekst.
+%description -l pl.UTF-8
+Ta klasa pozwala programowo tworzyć pliki vCard i vCalendar oraz
+pobierać tekst.
 
-WA¯NE: struktura tablic zmieni³a siê nieco w stosunku do
-Contact_Vcard_Parse. Now± strukturê mo¿na obejrzeæ w przyk³adzie.
-U¿ycie wzorców tak¿e ró¿ni siê od Contact_Vcard, co równie¿ mo¿na
-zobaczyæ w przyk³adach.
+WAŻNE: struktura tablic zmieniła się nieco w stosunku do
+Contact_Vcard_Parse. Nową strukturę można obejrzeć w przykładzie.
+Użycie wzorców także różni się od Contact_Vcard, co również można
+zobaczyć w przykładach.
 
 Ta klasa ma w PEAR status: %{_status}.
 
 %prep
 %pear_package_setup
 
+install -d examples
+mv docs/File_IMC/docs/sample.* examples
+mv docs/File_IMC/docs/*example.php examples
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc install.log
-%doc docs/%{_pearname}/{sample.*,*.php}
 %{php_pear_dir}/.registry/*.reg
-%{php_pear_dir}/%{_class}/*.php
-%{php_pear_dir}/%{_class}/%{_subclass}
+%{php_pear_dir}/File/*.php
+%{php_pear_dir}/File/IMC
+
+%{_examplesdir}/%{name}-%{version}
This page took 0.072752 seconds and 4 git commands to generate.