|
xulchris |
2f7e041 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
3f5534b |
%global pear_name Date_Holidays
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
Name: php-pear-Date-Holidays
|
|
|
6d6ba2f |
Version: 0.21.5
|
|
|
6d6ba2f |
Release: 1%{?dist}
|
|
xulchris |
2f7e041 |
Summary: Driver based class to calculate holidays
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
Group: Development/Libraries
|
|
xulchris |
6f0125d |
License: PHP
|
|
xulchris |
2f7e041 |
URL: http://pear.php.net/package/Date_Holidays
|
|
xulchris |
2f7e041 |
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
|
3f5534b |
|
|
xulchris |
2f7e041 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
BuildArch: noarch
|
|
|
3f5534b |
BuildRequires: php-pear(PEAR) >= 1.6.0
|
|
xulchris |
2f7e041 |
Requires: php-pear(PEAR) php-pear(Date) php-pear(XML_Serializer)
|
|
|
3f5534b |
Requires: php-pear(Console_Getargs)
|
|
xulchris |
2f7e041 |
Requires(post): %{__pear}
|
|
xulchris |
2f7e041 |
Requires(postun): %{__pear}
|
|
xulchris |
2f7e041 |
Provides: php-pear(%{pear_name}) = %{version}
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%description
|
|
xulchris |
2f7e041 |
Date_Holidays helps you calculating the dates and titles of holidays and
|
|
xulchris |
2f7e041 |
other special celebrations. The calculation is driver-based so it is easy
|
|
xulchris |
2f7e041 |
to add new drivers that calculate a country's holidays. The methods of the
|
|
xulchris |
2f7e041 |
class can be used to get a holiday's date and title in various languages.
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%prep
|
|
xulchris |
6ce7c90 |
%setup -qc
|
|
|
3f5534b |
|
|
|
3f5534b |
# Create a "localized" php.ini to avoid build warning
|
|
|
3f5534b |
cp /etc/php.ini .
|
|
|
3f5534b |
echo "date.timezone=UTC" >>php.ini
|
|
|
3f5534b |
|
|
xulchris |
2f7e041 |
cd %{pear_name}-%{version}
|
|
|
3f5534b |
# Package is V2
|
|
|
3f5534b |
mv ../package.xml %{name}.xml
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%build
|
|
xulchris |
2f7e041 |
cd %{pear_name}-%{version}
|
|
xulchris |
2f7e041 |
# Empty build section, most likely nothing required.
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%install
|
|
|
03449a2 |
rm -rf $RPM_BUILD_ROOT
|
|
xulchris |
2f7e041 |
cd %{pear_name}-%{version}
|
|
|
3f5534b |
PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
# Clean up unnecessary files
|
|
xulchris |
2f7e041 |
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
# Install XML package description
|
|
xulchris |
6ce7c90 |
install -d $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
3f5534b |
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%clean
|
|
xulchris |
2f7e041 |
rm -rf $RPM_BUILD_ROOT
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%post
|
|
xulchris |
2f7e041 |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
3f5534b |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%postun
|
|
xulchris |
2f7e041 |
if [ $1 -eq 0 ] ; then
|
|
xulchris |
2f7e041 |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
xulchris |
2f7e041 |
%{pear_name} >/dev/null || :
|
|
xulchris |
2f7e041 |
fi
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%files
|
|
xulchris |
2f7e041 |
%defattr(-,root,root,-)
|
|
|
03449a2 |
%doc %{pear_docdir}/%{pear_name}
|
|
xulchris |
818cca3 |
%{_bindir}/pear-dh-*
|
|
|
3f5534b |
%{pear_xmldir}/%{name}.xml
|
|
xulchris |
2f7e041 |
%{pear_testdir}/%{pear_name}
|
|
xulchris |
2f7e041 |
%{pear_datadir}/%{pear_name}
|
|
xulchris |
2f7e041 |
%{pear_phpdir}/Date/Holidays*
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%changelog
|
|
|
6d6ba2f |
* Fri Apr 29 2011 Remi Collet <Fedora@FamilleCollet.com> 0.21.5-1
|
|
|
6d6ba2f |
- Version 0.21.5 (alpha) - API 0.17.2 (alpha)
|
|
|
6d6ba2f |
|
|
|
03449a2 |
* Wed Apr 13 2011 Remi Collet <Fedora@FamilleCollet.com> 0.21.4-4
|
|
|
03449a2 |
- doc in /usr/share/doc/pear
|
|
|
03449a2 |
|
|
|
69414ce |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.4-3
|
|
|
69414ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
69414ce |
|
|
|
3f5534b |
* Sun Aug 15 2010 Remi Collet <Fedora@FamilleCollet.com> - 0.21.4-2
|
|
|
3f5534b |
- remove LICENSE file (not provided by upstream)
|
|
|
3f5534b |
- rename Date_Holidays to php-pear-Date-Holidays.xml
|
|
|
3f5534b |
- fix shebang
|
|
|
3f5534b |
- set date.timezone during build
|
|
|
3f5534b |
|
|
xulchris |
a6aa511 |
* Sun Aug 30 2009 Christopher Stone <chris.stone@gmail.com> 0.21.4-1.1
|
|
xulchris |
2c58d61 |
- Upstream sync
|
|
xulchris |
2c58d61 |
|
|
|
4cc5568 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-3
|
|
|
4cc5568 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
4cc5568 |
|
|
|
329a175 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-2
|
|
|
329a175 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
329a175 |
|
|
xulchris |
5995d25 |
* Fri Sep 12 2008 Christopher Stone <chris.stone@gmail.com> 0.20.1-1
|
|
xulchris |
5995d25 |
- Upstream sync
|
|
xulchris |
5995d25 |
|
|
xulchris |
6f0125d |
* Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 0.19.1-1
|
|
xulchris |
6f0125d |
- Upstream sync
|
|
xulchris |
6f0125d |
|
|
xulchris |
85d7ebb |
* Thu Feb 07 2008 Christopher Stone <chris.stone@gmail.com> 0.17.4-1
|
|
xulchris |
85d7ebb |
- Upstream sync
|
|
xulchris |
85d7ebb |
|
|
xulchris |
818cca3 |
* Mon Jul 02 2007 Christopher Stone <chris.stone@gmail.com> 0.17.1-2
|
|
xulchris |
818cca3 |
- Add files to %%{_bindir}
|
|
xulchris |
818cca3 |
|
|
xulchris |
6ce7c90 |
* Mon Jul 02 2007 Christopher Stone <chris.stone@gmail.com> 0.17.1-1
|
|
xulchris |
6ce7c90 |
- Upstream Sync
|
|
xulchris |
6ce7c90 |
- Update license file
|
|
xulchris |
6ce7c90 |
|
|
xulchris |
c854577 |
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 0.17.0-1
|
|
xulchris |
c854577 |
- Upstream sync
|
|
xulchris |
c51b225 |
- Remove %%{_bindir} files from %%files
|
|
xulchris |
c854577 |
|
|
xulchris |
b2fc38c |
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 0.16.1-2
|
|
xulchris |
b2fc38c |
- Add LICENSE
|
|
xulchris |
b2fc38c |
|
|
xulchris |
b2fc38c |
* Sat Oct 14 2006 Christopher Stone <chris.stone@gmail.com> 0.16.1-1
|
|
xulchris |
2f7e041 |
- Initial release
|