diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3606a43 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tgz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Date_Holidays_Germany-0.1.2.tgz b/Date_Holidays_Germany-0.1.2.tgz new file mode 100644 index 0000000..b796231 --- /dev/null +++ b/Date_Holidays_Germany-0.1.2.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:290e225187cdba461534f1265fe3dcd8baa91b1f85b0cf18d6a9750439b64fa6 +size 11562 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3382a52 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: php-pear-Date-Holidays-Germany +# $Id: Makefile,v 1.1 2016/06/16 12:32:11 unnilennium Exp $ +NAME := php-pear-Date-Holidays-Germany +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 06a916b..6a9f44e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # php-pear-Date-Holidays-Germany -3rd Party (Maintained by Koozali) git repo for php-pear-Date-Holidays-Germany smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for php-pear-Date-Holidays-Germany smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +php-pear-Date_Holidays_Germany is a software package that provides a collection of functions for obtaining information about holidays in Germany. It uses the German locales provided by PHP and the PEAR Date package to determine which holidays apply to a given date. Additionally, it provides information about the exact dates of the holidays, so that applications can accurately take holidays into account when calculating dates. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/php-pear-Date_Holidays_Germany.spec b/php-pear-Date_Holidays_Germany.spec new file mode 100644 index 0000000..9bbeb04 --- /dev/null +++ b/php-pear-Date_Holidays_Germany.spec @@ -0,0 +1,102 @@ +%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear) +%define xmldir /var/lib/pear +%global pear_name Date_Holidays_Germany +%define name php-pear-Date-Holidays-Germany +%define version 0.1.2 +%define release 2 + +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Summary: Driver based class to calculate holidays in Germany +License: PHP License +Group: Development/Libraries +Source0: http://pear.php.net/get/Date_Holidays_Germany-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) +URL: http://pear.php.net/package/Date_Holidays_Germany + +BuildRequires: php-pear(PEAR) >= 1.4.7 +Requires: php-pear(Date_Holidays) >= 0.18.0 +Requires: php-pear(PEAR) >= 1.4.0b1 +Provides: php-pear(%{pear_name}) = %{version} + +#BuildRequires: PEAR::PEAR >= 1.4.7 +#Requires: PEAR::Date_Holidays >= 0.18.0 +#Requires: PEAR::PEAR >= 1.4.0b1 + +BuildArch: noarch + +%description +Date_Holidays helps you calculate the dates and titles of holidays and +other special celebrations. This is the driver for calculating holidays in +Germany. + +%prep +%setup -c -T +pear -v -c pearrc \ + -d php_dir=%{peardir} \ + -d doc_dir=/docs \ + -d bin_dir=%{_bindir} \ + -d data_dir=%{peardir}/data \ + -d test_dir=%{peardir}/tests \ + -d ext_dir=%{_libdir} \ + -s + +%build + +%install +rm -rf %{buildroot} +pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} + +# Clean up unnecessary files +rm pearrc +rm -rf %{buildroot}/%{peardir}/.filemap +rm -rf %{buildroot}/%{peardir}/.lock +rm -rf %{buildroot}/%{peardir}/.registry +rm -rf %{buildroot}%{peardir}/.channels +rm -rf %{buildroot}/%{xmldir}/.filemap +rm -rf %{buildroot}/%{xmldir}/.lock +rm -rf %{buildroot}/%{xmldir}/.registry +rm -rf %{buildroot}/%{xmldir}/.channels +if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then +rm -rf %{buildroot}%{xmldir}/.depdb +fi +if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then +rm -rf %{buildroot}%{xmldir}/.depdblock +fi + + + +# Install XML package description +mkdir -p %{buildroot}%{xmldir} +tar -xzf %{SOURCE0} package.xml +cp -p package.xml %{buildroot}%{xmldir}/Date_Holidays_Germany.xml + +%clean +rm -rf %{buildroot} + +%post +pear install --nodeps --soft --force --register-only %{xmldir}/Date_Holidays_Germany.xml >/dev/null || : + +%postun +if [ "$1" -eq "0" ]; then + pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Date_Holidays_Germany >/dev/null || : +fi + +%files +%defattr(-,root,root) + +%{peardir}/* +%{xmldir}/Date_Holidays_Germany.xml + +%changelog +* Fri Jul 14 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Thu Jun 16 2016 Jean-Philipe Pialasse 0.1.2-2.sme +- importing to buildsys pear packages for Horde [SME: 9600] + +* Mon Jul 22 2013 John H. Bennett III - 0.1.2-1 +- Original from pear-make-rpm-spec. +