From 2f7e0410476e52b3d35621a4055a337e80cf275b Mon Sep 17 00:00:00 2001 From: xulchris Date: Oct 29 2006 04:26:21 +0000 Subject: auto-import php-pear-Date-Holidays-0.16.1-1 on branch devel from php-pear-Date-Holidays-0.16.1-1.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..8299969 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Date_Holidays-0.16.1.tgz diff --git a/php-pear-Date-Holidays.spec b/php-pear-Date-Holidays.spec new file mode 100644 index 0000000..12c57b8 --- /dev/null +++ b/php-pear-Date-Holidays.spec @@ -0,0 +1,86 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%define pear_name Date_Holidays + +Name: php-pear-Date-Holidays +Version: 0.16.1 +Release: 1%{?dist} +Summary: Driver based class to calculate holidays + +Group: Development/Libraries +License: PHP License +URL: http://pear.php.net/package/Date_Holidays +Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: php-pear >= 1:1.4.9-1.2 +Requires: php-pear(PEAR) php-pear(Date) php-pear(XML_Serializer) +Requires: php-pear(Console_Getargs) +Requires(post): %{__pear} +Requires(postun): %{__pear} +Provides: php-pear(%{pear_name}) = %{version} + +%description +Date_Holidays helps you calculating the dates and titles of holidays and +other special celebrations. The calculation is driver-based so it is easy +to add new drivers that calculate a country's holidays. The methods of the +class can be used to get a holiday's date and title in various languages. + + +%prep +%setup -q -c +[ -f package2.xml ] || mv package.xml package2.xml +mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml +cd %{pear_name}-%{version} + + +%build +cd %{pear_name}-%{version} +# Empty build section, most likely nothing required. + + +%install +cd %{pear_name}-%{version} +rm -rf $RPM_BUILD_ROOT docdir +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml + +# Move documentation +mkdir -p docdir +mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir + +# Clean up unnecessary files +rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??* + +# Install XML package description +mkdir -p $RPM_BUILD_ROOT%{pear_xmldir} +install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{pear_name}.xml >/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + %{pear_name} >/dev/null || : +fi + + +%files +%defattr(-,root,root,-) +%doc %{pear_name}-%{version}/docdir/%{pear_name}/* +%{_bindir}/* +%{pear_xmldir}/%{pear_name}.xml +%{pear_testdir}/%{pear_name} +%{pear_datadir}/%{pear_name} +%{pear_phpdir}/Date/Holidays* + + +%changelog +* Sat Oct 14 2006 Christoper Stone 0.16.1-1 +- Initial release diff --git a/sources b/sources index e69de29..50a816c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +84dcf7f0c92afdf08b9c1d761a8ca89f Date_Holidays-0.16.1.tgz