/[smeserver]/rpms/php-pear-Crypt-Blowfish/sme10/php-pear-Crypt_Blowfish.spec
ViewVC logotype

Contents of /rpms/php-pear-Crypt-Blowfish/sme10/php-pear-Crypt_Blowfish.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Jun 6 07:20:35 2023 UTC (11 months, 2 weeks ago) by brianr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -6 lines
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-3.sme
- importing to buildsys pear packages for Horde [SME: 9600]

1 %define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
2 %define xmldir /var/lib/pear
3 %global pear_name Crypt_Blowfish
4 %define name php-pear-Crypt-Blowfish
5 %define version 1.0.1
6 %define release 3
7
8 Name: %{name}
9 Version: %{version}
10 Release: %{release}%{?dist}
11 Summary: Allows for quick two-way blowfish encryption without requiring the Mcrypt PHP extension
12 License: PHP
13 Group: Development/Libraries
14 Source0: http://pear.php.net/get/Crypt_Blowfish-%{version}.tgz
15 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
16 URL: http://pear.php.net/package/Crypt_Blowfish
17
18 BuildRequires: php-pear(PEAR) >= 1.4.7
19 Provides: php-pear(%{pear_name}) = %{version}
20
21 #BuildRequires: PEAR::PEAR >= 1.4.7
22
23 BuildArch: noarch
24
25 %description
26 This package allows you to prefore two-way blowfish on the fly using only
27 PHP. This package does not require the Mcrypt PHP extension to work.
28
29
30 %prep
31 %setup -c -T
32 pear -v -c pearrc \
33 -d php_dir=%{peardir} \
34 -d doc_dir=/docs \
35 -d bin_dir=%{_bindir} \
36 -d data_dir=%{peardir}/data \
37 -d test_dir=%{peardir}/tests \
38 -d ext_dir=%{_libdir} \
39 -s
40
41 %build
42
43 %install
44 rm -rf %{buildroot}
45 pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
46
47 # Clean up unnecessary files
48 rm pearrc
49 rm -rf %{buildroot}/%{peardir}/.filemap
50 rm -rf %{buildroot}/%{peardir}/.lock
51 rm -rf %{buildroot}/%{peardir}/.registry
52 rm -rf %{buildroot}%{peardir}/.channels
53
54 rm -rf %{buildroot}/%{xmldir}/.filemap
55 rm -rf %{buildroot}/%{xmldir}/.lock
56 rm -rf %{buildroot}/%{xmldir}/.registry
57 rm -rf %{buildroot}/%{xmldir}/.channels
58 if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then
59 rm -rf %{buildroot}%{xmldir}/.depdb
60 fi
61 if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then
62 rm -rf %{buildroot}%{xmldir}/.depdblock
63 fi
64
65
66 # Install XML package description
67 mkdir -p %{buildroot}%{xmldir}
68 tar -xzf %{SOURCE0} package.xml
69 cp -p package.xml %{buildroot}%{xmldir}/Crypt_Blowfish.xml
70
71 %clean
72 rm -rf %{buildroot}
73
74 %post
75 pear install --nodeps --soft --force --register-only %{xmldir}/Crypt_Blowfish.xml >/dev/null || :
76
77 %postun
78 if [ "$1" -eq "0" ]; then
79 pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Crypt_Blowfish >/dev/null || :
80 fi
81
82 %files
83 %defattr(-,root,root)
84
85 %{peardir}/*
86 %{xmldir}/Crypt_Blowfish.xml
87
88 %changelog
89 * Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-3.sme
90 - importing to buildsys pear packages for Horde [SME: 9600]
91
92 * Mon May 6 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.1-2
93 - updated spec file requires section, and left original info remarked.
94
95 * Sun May 5 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.1-1
96 - Original from pear-make-rpm-spec.
97

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed