]> git.pld-linux.org Git - packages/php-pear-Crypt_Blowfish.git/blob - php-pear-Crypt_Blowfish.spec
- BR rpm-build macros >= 1.300 for %pear_ macros
[packages/php-pear-Crypt_Blowfish.git] / php-pear-Crypt_Blowfish.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Crypt
3 %define         _subclass       Blowfish
4 %define         _status         stable
5 %define         _pearname       %{_class}_%{_subclass}
6
7 Summary:        %{_pearname} - quick two-way blowfish encryption
8 Summary(pl):    %{_pearname} - szybkie dwustronne szyfrowanie algorytmem blowfish
9 Name:           php-pear-%{_pearname}
10 Version:        1.0.1
11 Release:        2
12 Epoch:          0
13 License:        PHP
14 Group:          Development/Languages/PHP
15 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
16 # Source0-md5:  93873efe07a267b2b415965994a0af98
17 URL:            http://pear.php.net/package/Crypt_Blowfish/
18 BuildRequires:  php-pear-PEAR
19 BuildRequires:  rpm-php-pearprov >= 4.4.2-12
20 BuildRequires:  rpmbuild(macros) >= 1.300
21 Requires:       php-pear
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This package allows you to preform two-way blowfish on the fly using
27 only PHP. This package does not require the Mcrypt PHP extension to
28 work.
29
30 In PEAR status of this package is: %{_status}.
31
32 %description -l pl
33 Ta klasa pozwala na dwustronne szyfrowanie w locie z u¿yciem algorytmu
34 blowfish. Klasa ta nie wymaga rozszerzenia Mcrypt.
35
36 Ta klasa ma w PEAR status: %{_status}.
37
38 %package tests
39 Summary:        Tests for PEAR::%{_pearname}
40 Summary(pl):    Testy dla PEAR::%{_pearname}
41 Group:          Development/Languages/PHP
42 Requires:       %{name} = %{epoch}:%{version}-%{release}
43 AutoReq:        no
44 AutoProv:       no
45
46 %description tests
47 Tests for PEAR::%{_pearname}.
48
49 %description tests -l pl
50 Testy dla PEAR::%{_pearname}.
51
52 %prep
53 %pear_package_setup
54
55 # badly packaged, i think
56 sed -i -e 's,Blowfish/DefaultKey.php,Crypt/Blowfish/DefaultKey.php,' ./%{php_pear_dir}/%{_class}/%{_subclass}.php
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
61 %pear_package_install
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files tests
67 %defattr(644,root,root,755)
68 %{php_pear_dir}/tests/*
69
70 %files
71 %defattr(644,root,root,755)
72 %doc install.log
73 %{php_pear_dir}/.registry/*.reg
74 %{php_pear_dir}/%{_class}/*.php
75 %{php_pear_dir}/%{_class}/%{_subclass}
This page took 0.073884 seconds and 4 git commands to generate.