1 |
unnilennium |
1.1 |
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear) |
2 |
|
|
%define xmldir /var/lib/pear |
3 |
|
|
%global pear_name Date_Holidays_Australia |
4 |
|
|
|
5 |
unnilennium |
1.2 |
%define name php-pear-Date-Holidays-Australia |
6 |
|
|
%define version 0.2.2 |
7 |
|
|
%define release 2 |
8 |
|
|
|
9 |
unnilennium |
1.1 |
Summary: Driver based class to calculate holidays in Australia |
10 |
unnilennium |
1.2 |
Name: %{name} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
unnilennium |
1.1 |
License: PHP License |
14 |
|
|
Group: Development/Libraries |
15 |
|
|
Source0: http://pear.php.net/get/Date_Holidays_Australia-%{version}.tgz |
16 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) |
17 |
|
|
URL: http://pear.php.net/package/Date_Holidays_Australia |
18 |
|
|
|
19 |
|
|
BuildRequires: php-pear(PEAR) >= 1.4.7 |
20 |
|
|
Requires: php-pear(Date_Holidays) >= 0.18.0 |
21 |
|
|
Requires: php-pear(PEAR) >= 1.4.0b1 |
22 |
|
|
Provides: php-pear(%{pear_name}) = %{version} |
23 |
unnilennium |
1.2 |
BuildRequires: e-smith-devtools >= 1.11.0-12 |
24 |
unnilennium |
1.1 |
|
25 |
|
|
#BuildRequires: PEAR::PEAR >= 1.4.7 |
26 |
|
|
#Requires: PEAR::Date_Holidays >= 0.18.0 |
27 |
|
|
#Requires: PEAR::PEAR >= 1.4.0b1 |
28 |
|
|
|
29 |
|
|
BuildArch: noarch |
30 |
|
|
|
31 |
|
|
%description |
32 |
|
|
Date_Holidays helps you calculate the dates and titles of holidays and |
33 |
|
|
other special celebrations. This is the driver for calculating holidays in |
34 |
|
|
Australia. |
35 |
|
|
|
36 |
|
|
%prep |
37 |
|
|
%setup -c -T |
38 |
|
|
pear -v -c pearrc \ |
39 |
|
|
-d php_dir=%{peardir} \ |
40 |
|
|
-d doc_dir=/docs \ |
41 |
|
|
-d bin_dir=%{_bindir} \ |
42 |
|
|
-d data_dir=%{peardir}/data \ |
43 |
|
|
-d test_dir=%{peardir}/tests \ |
44 |
|
|
-d ext_dir=%{_libdir} \ |
45 |
|
|
-s |
46 |
|
|
|
47 |
|
|
%build |
48 |
|
|
|
49 |
|
|
%install |
50 |
|
|
rm -rf %{buildroot} |
51 |
|
|
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} |
52 |
|
|
|
53 |
|
|
# Clean up unnecessary files |
54 |
|
|
rm pearrc |
55 |
|
|
rm %{buildroot}/%{peardir}/.filemap |
56 |
|
|
rm %{buildroot}/%{peardir}/.lock |
57 |
|
|
rm -rf %{buildroot}/%{peardir}/.registry |
58 |
|
|
rm -rf %{buildroot}%{peardir}/.channels |
59 |
unnilennium |
1.2 |
if [[ -f %{buildroot}%{peardir}/.depdb ]] ;then |
60 |
unnilennium |
1.1 |
rm %{buildroot}%{peardir}/.depdb |
61 |
unnilennium |
1.2 |
fi |
62 |
|
|
if [[ -f %{buildroot}%{peardir}/.depdblock ]] ;then |
63 |
unnilennium |
1.1 |
rm %{buildroot}%{peardir}/.depdblock |
64 |
unnilennium |
1.2 |
fi |
65 |
unnilennium |
1.1 |
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
# Install XML package description |
69 |
|
|
mkdir -p %{buildroot}%{xmldir} |
70 |
|
|
tar -xzf %{SOURCE0} package.xml |
71 |
unnilennium |
1.2 |
mv package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml |
72 |
|
|
|
73 |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
74 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
75 |
|
|
> %{name}-%{version}-%{release}-filelist |
76 |
unnilennium |
1.1 |
|
77 |
|
|
%clean |
78 |
unnilennium |
1.2 |
#rm -rf %{buildroot} |
79 |
unnilennium |
1.1 |
|
80 |
|
|
%post |
81 |
|
|
pear install --nodeps --soft --force --register-only %{xmldir}/Date_Holidays_Australia.xml >/dev/null || : |
82 |
|
|
|
83 |
|
|
%postun |
84 |
|
|
if [ "$1" -eq "0" ]; then |
85 |
|
|
pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date_Holidays_Australia >/dev/null || : |
86 |
|
|
fi |
87 |
|
|
|
88 |
unnilennium |
1.2 |
%files -f %{name}-%{version}-%{release}-filelist |
89 |
unnilennium |
1.1 |
%defattr(-,root,root) |
90 |
|
|
|
91 |
unnilennium |
1.2 |
#%{peardir}/* |
92 |
|
|
#%{xmldir}/Date_Holidays_Australia.xml |
93 |
unnilennium |
1.1 |
|
94 |
|
|
%changelog |
95 |
unnilennium |
1.2 |
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.2.2-2.sme |
96 |
|
|
- importing to buildsys pear packages for Horde [SME: 9600] |
97 |
|
|
|
98 |
unnilennium |
1.1 |
* Mon Oct 7 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.2.2-1 |
99 |
|
|
- Update to 0.2.2. |
100 |
|
|
|
101 |
|
|
* Mon Jul 22 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.2.1-1 |
102 |
|
|
- Original from pear-make-rpm-spec. |