- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Image_Barcode.git] / php-pear-Image_Barcode.spec
1 %define         status          stable
2 %define         pearname        Image_Barcode
3 Summary:        %{pearname} - render barcodes
4 Summary(pl.UTF-8):      %{pearname} - rysowanie kodów kreskowych
5 Name:           php-pear-%{pearname}
6 Version:        1.1.3
7 Release:        2
8 License:        PHP 2.02
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5:  8df93161d954c6a2bc0fc2bbce02c208
12 URL:            http://pear.php.net/package/Image_Barcode/
13 BuildRequires:  php-pear-PEAR
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.580
16 Requires:       php(gd)
17 Requires:       php-pear
18 Suggests:       php-pear-PHP_Compat
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 # exclude optional dependencies
23 %define         _noautoreq      pear(PHP/Compat.*)
24
25 %description
26 With PEAR::Image_Barcode class you can create a barcode representation
27 of description a given string. This class uses GD functions because of
28 this the generated graphic can be any of GD supported supported image
29 types.
30
31 In PEAR status of this package is: %{status}.
32
33 %description -l pl.UTF-8
34 Przy pomocy klasy PEAR::Image_Barcode można tworzyć reprezentację
35 danego łańcucha w postaci kodu kreskowego. Ta klasa używa funkcji GD,
36 dzięki czemu generowana grafika może być w dowolnym formacie
37 obsługiwanym przez GD.
38
39 Ta klasa ma w PEAR status: %{status}.
40
41 %prep
42 %pear_package_setup
43
44 mv .%{php_pear_dir}/data/Image_Barcode/README .
45 mv docs/%{pearname}/docs/examples .
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{php_pear_dir}
50 %pear_package_install
51
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
60         cat %{_docdir}/%{name}-%{version}/optional-packages.txt
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %doc README
66 %doc install.log optional-packages.txt
67 %doc docs/%{pearname}/docs/*
68 %{php_pear_dir}/.registry/*.reg
69 %dir %{php_pear_dir}/Image/Barcode
70 %{php_pear_dir}/Image/*.php
71 %{php_pear_dir}/Image/Barcode/*.php
72 %{_examplesdir}/%{name}-%{version}
This page took 0.17855 seconds and 4 git commands to generate.