/[smeserver]/rpms/php-pear-Date-Holidays-Australia/sme10/php-pear-Date_Holidays_Australia.spec
ViewVC logotype

Annotation of /rpms/php-pear-Date-Holidays-Australia/sme10/php-pear-Date_Holidays_Australia.spec

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


Revision 1.3 - (hide annotations) (download)
Thu Jun 16 07:16:46 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: php-pear-Date-Holidays-Australia-0_2_2-2_el7_sme
Changes since 1.2: +14 -15 lines
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.2.2-2.sme
- importing to buildsys pear packages for Horde [SME: 9600]

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    
24     #BuildRequires: PEAR::PEAR >= 1.4.7
25     #Requires: PEAR::Date_Holidays >= 0.18.0
26     #Requires: PEAR::PEAR >= 1.4.0b1
27    
28     BuildArch: noarch
29    
30     %description
31     Date_Holidays helps you calculate the dates and titles of holidays and
32     other special celebrations. This is the driver for calculating holidays in
33     Australia.
34    
35     %prep
36     %setup -c -T
37     pear -v -c pearrc \
38     -d php_dir=%{peardir} \
39     -d doc_dir=/docs \
40     -d bin_dir=%{_bindir} \
41     -d data_dir=%{peardir}/data \
42     -d test_dir=%{peardir}/tests \
43     -d ext_dir=%{_libdir} \
44     -s
45    
46     %build
47    
48     %install
49     rm -rf %{buildroot}
50     pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
51    
52     # Clean up unnecessary files
53     rm pearrc
54     rm %{buildroot}/%{peardir}/.filemap
55     rm %{buildroot}/%{peardir}/.lock
56     rm -rf %{buildroot}/%{peardir}/.registry
57 unnilennium 1.3 rm -rf %{buildroot}/%{peardir}/.channels
58     rm %{buildroot}/%{xmldir}/.filemap
59     rm %{buildroot}/%{xmldir}/.lock
60     rm -rf %{buildroot}/%{xmldir}/.registry
61     rm -rf %{buildroot}/%{xmldir}/.channels
62     if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then
63     rm %{buildroot}%{xmldir}/.depdb
64 unnilennium 1.2 fi
65 unnilennium 1.3 if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then
66     rm %{buildroot}%{xmldir}/.depdblock
67 unnilennium 1.2 fi
68 unnilennium 1.1
69    
70    
71     # Install XML package description
72     mkdir -p %{buildroot}%{xmldir}
73     tar -xzf %{SOURCE0} package.xml
74 unnilennium 1.3 cp -p package.xml %{buildroot}%{xmldir}/Date_Holidays_Australia.xml
75 unnilennium 1.1
76     %clean
77 unnilennium 1.3 rm -rf %{buildroot}
78 unnilennium 1.1
79     %post
80     pear install --nodeps --soft --force --register-only %{xmldir}/Date_Holidays_Australia.xml >/dev/null || :
81    
82     %postun
83     if [ "$1" -eq "0" ]; then
84     pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date_Holidays_Australia >/dev/null || :
85     fi
86    
87 unnilennium 1.3 %files
88 unnilennium 1.1 %defattr(-,root,root)
89    
90 unnilennium 1.3 %{peardir}/*
91     %{xmldir}/Date_Holidays_Australia.xml
92 unnilennium 1.1
93     %changelog
94 unnilennium 1.2 * Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.2.2-2.sme
95     - importing to buildsys pear packages for Horde [SME: 9600]
96    
97 unnilennium 1.1 * Mon Oct 7 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.2.2-1
98     - Update to 0.2.2.
99    
100     * Mon Jul 22 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.2.1-1
101     - Original from pear-make-rpm-spec.

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