|
xulchris |
2f7e041 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
xulchris |
2f7e041 |
%define pear_name Date_Holidays
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
Name: php-pear-Date-Holidays
|
|
xulchris |
6b10b7e |
Version: 0.21.4
|
|
xulchris |
d9221b5 |
Release: 1%{?dist}
|
|
xulchris |
2f7e041 |
Summary: Driver based class to calculate holidays
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
Group: Development/Libraries
|
|
xulchris |
3397aab |
License: PHP
|
|
xulchris |
2f7e041 |
URL: http://pear.php.net/package/Date_Holidays
|
|
xulchris |
2f7e041 |
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
xulchris |
af486ef |
Source1: PHP-LICENSE-3.01
|
|
xulchris |
2f7e041 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
BuildArch: noarch
|
|
xulchris |
2f7e041 |
BuildRequires: php-pear >= 1:1.4.9-1.2
|
|
xulchris |
2f7e041 |
Requires: php-pear(PEAR) php-pear(Date) php-pear(XML_Serializer)
|
|
xulchris |
af486ef |
Requires(hint): 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 |
af486ef |
%setup -qc
|
|
xulchris |
2f7e041 |
[ -f package2.xml ] || mv package.xml package2.xml
|
|
xulchris |
2f7e041 |
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
|
|
xulchris |
e36433b |
install -pm 644 -c %{SOURCE1} LICENSE
|
|
xulchris |
2f7e041 |
cd %{pear_name}-%{version}
|
|
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
|
|
xulchris |
2f7e041 |
cd %{pear_name}-%{version}
|
|
xulchris |
2f7e041 |
rm -rf $RPM_BUILD_ROOT docdir
|
|
xulchris |
2f7e041 |
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
# Move documentation
|
|
xulchris |
2f7e041 |
mkdir -p docdir
|
|
xulchris |
2f7e041 |
mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
|
|
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 |
af486ef |
install -d $RPM_BUILD_ROOT%{pear_xmldir}
|
|
xulchris |
2f7e041 |
install -pm 644 %{pear_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 \
|
|
xulchris |
2f7e041 |
%{pear_xmldir}/%{pear_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,-)
|
|
xulchris |
e36433b |
%doc LICENSE %{pear_name}-%{version}/docdir/%{pear_name}/*
|
|
xulchris |
e10d952 |
%{_bindir}/pear-dh-*
|
|
xulchris |
2f7e041 |
%{pear_xmldir}/%{pear_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
|
|
xulchris |
6b10b7e |
* Sun Aug 30 2009 Christopher Stone <chris.stone@gmail.com> 0.21.4-1
|
|
xulchris |
6b10b7e |
- Upstream sync
|
|
xulchris |
6b10b7e |
|
|
xulchris |
6b10b7e |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-3
|
|
xulchris |
6b10b7e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
xulchris |
6b10b7e |
|
|
xulchris |
6b10b7e |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-2
|
|
xulchris |
6b10b7e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
xulchris |
6b10b7e |
|
|
xulchris |
3397aab |
* Fri Sep 12 2008 Christopher Stone <chris.stone@gmail.com> 0.20.1-1
|
|
xulchris |
3397aab |
- Upstream sync
|
|
xulchris |
3397aab |
|
|
xulchris |
3397aab |
* Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 0.19.1-1
|
|
xulchris |
3397aab |
- Upstream sync
|
|
xulchris |
3397aab |
|
|
xulchris |
d9221b5 |
* Thu Feb 07 2008 Christopher Stone <chris.stone@gmail.com> 0.17.4-1
|
|
xulchris |
d9221b5 |
- Upstream sync
|
|
xulchris |
d9221b5 |
|
|
xulchris |
e10d952 |
* Mon Jul 02 2007 Christopher Stone <chris.stone@gmail.com> 0.17.1-2
|
|
xulchris |
e10d952 |
- Add files to %%{_bindir}
|
|
xulchris |
e10d952 |
|
|
xulchris |
af486ef |
* Mon Jul 02 2007 Christopher Stone <chris.stone@gmail.com> 0.17.1-1
|
|
xulchris |
af486ef |
- Upstream Sync
|
|
xulchris |
af486ef |
- Update license file
|
|
xulchris |
af486ef |
|
|
xulchris |
b0b405f |
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 0.17.0-1
|
|
xulchris |
b0b405f |
- Upstream sync
|
|
xulchris |
1499843 |
- Remove %%{_bindir} files from %%files
|
|
xulchris |
b0b405f |
|
|
xulchris |
e36433b |
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 0.16.1-2
|
|
xulchris |
e36433b |
- Add LICENSE
|
|
xulchris |
e36433b |
|
|
xulchris |
e36433b |
* Sat Oct 14 2006 Christopher Stone <chris.stone@gmail.com> 0.16.1-1
|
|
xulchris |
2f7e041 |
- Initial release
|