|
|
1676dbe |
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
|
xulchris |
2f7e041 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
3f5534b |
%global pear_name Date_Holidays
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
Name: php-pear-Date-Holidays
|
|
|
4a4d99e |
Version: 0.21.8
|
|
|
e5bed6c |
Release: 6%{?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 |
BuildArch: noarch
|
|
|
3f5534b |
BuildRequires: php-pear(PEAR) >= 1.6.0
|
|
|
3a41ce3 |
|
|
|
4a4d99e |
Requires(post): %{__pear}
|
|
|
4a4d99e |
Requires(postun): %{__pear}
|
|
|
1676dbe |
Requires: php-calendar
|
|
|
1676dbe |
Requires: php-date
|
|
|
1676dbe |
Requires: php-pcre
|
|
|
1676dbe |
Requires: php-simplexml
|
|
|
1676dbe |
Requires: php-pear(PEAR)
|
|
|
1676dbe |
Requires: php-pear(Date)
|
|
|
1676dbe |
Requires: php-pear(XML_Serializer)
|
|
|
3f5534b |
Requires: php-pear(Console_Getargs)
|
|
|
4a4d99e |
# Optional drivers available in repo
|
|
|
4a4d99e |
Requires: php-pear(Date_Holidays_USA)
|
|
|
4a4d99e |
|
|
|
4a4d99e |
|
|
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 |
|
|
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
|
|
|
4a4d99e |
rm -rf %{buildroot}
|
|
xulchris |
2f7e041 |
cd %{pear_name}-%{version}
|
|
|
4a4d99e |
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
# Clean up unnecessary files
|
|
|
4a4d99e |
rm -rf %{buildroot}%{pear_metadir}/.??*
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
# Install XML package description
|
|
|
4a4d99e |
install -d %{buildroot}%{pear_xmldir}
|
|
|
4a4d99e |
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
|
|
xulchris |
2f7e041 |
%clean
|
|
|
4a4d99e |
rm -rf %{buildroot}
|
|
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
|
|
|
e5bed6c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.8-6
|
|
|
e5bed6c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e5bed6c |
|
|
|
720a776 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.8-5
|
|
|
720a776 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
720a776 |
|
|
|
646c3b2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.8-4
|
|
|
646c3b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
646c3b2 |
|
|
|
19457b8 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.8-3
|
|
|
19457b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
19457b8 |
|
|
|
418b7bc |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.8-2
|
|
|
418b7bc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
418b7bc |
|
|
|
4a4d99e |
* Tue Jan 22 2013 Remi Collet <remi@fedoraproject.org> - 0.21.8-1
|
|
|
4a4d99e |
- Version 0.21.8 (alpha) - API 0.17.2 (alpha)
|
|
|
4a4d99e |
- add optional dep, Date_Holidays_USA
|
|
|
4a4d99e |
|
|
|
1676dbe |
* Sun Nov 25 2012 Remi Collet <remi@fedoraproject.org> - 0.21.7-1
|
|
|
1676dbe |
- Version 0.21.7 (alpha) - API 0.17.2 (alpha)
|
|
|
1676dbe |
- add all phpci detected dependencies
|
|
|
1676dbe |
|
|
|
091041a |
* Sun Aug 19 2012 Remi Collet <remi@fedoraproject.org> - 0.21.6-4
|
|
|
091041a |
- rebuilt for new pear_datadir
|
|
|
091041a |
|
|
|
dbb1a19 |
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 0.21.6-3
|
|
|
dbb1a19 |
- rebuilt for new pear_testdir
|
|
|
dbb1a19 |
|
|
|
48cd39f |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.6-2
|
|
|
48cd39f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
48cd39f |
|
|
|
3a41ce3 |
* Tue Feb 28 2012 Remi Collet <Fedora@FamilleCollet.com> 0.21.6-1
|
|
|
3a41ce3 |
- Version 0.21.6 (alpha) - API 0.17.2 (alpha)
|
|
|
3a41ce3 |
|
|
|
1602f56 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.5-2
|
|
|
1602f56 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
1602f56 |
|
|
|
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
|