From d07aafca79b824c2dcf3c64dff233e81ed90cc6a Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 14 Jul 2023 16:04:33 +0100 Subject: [PATCH] initial commit of file from CVS for php-horde-Horde-Service-Twitter on Fri 14 Jul 16:04:33 BST 2023 --- .gitattributes | 1 + .gitignore | 3 + Horde_Service_Twitter-2.1.5.tgz | 3 + Horde_Service_Twitter.spec | 137 ++++++++++++++++++++++++++++++++ Makefile | 21 +++++ README.md | 10 ++- contriborbase | 1 + 7 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Horde_Service_Twitter-2.1.5.tgz create mode 100644 Horde_Service_Twitter.spec create mode 100644 Makefile create mode 100644 contriborbase 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/Horde_Service_Twitter-2.1.5.tgz b/Horde_Service_Twitter-2.1.5.tgz new file mode 100644 index 0000000..2641cc3 --- /dev/null +++ b/Horde_Service_Twitter-2.1.5.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:176dc5f43de9557415e8db3adcc8774ad58c8b4b7c9105789d402c629e87a43f +size 9715 diff --git a/Horde_Service_Twitter.spec b/Horde_Service_Twitter.spec new file mode 100644 index 0000000..3fb0915 --- /dev/null +++ b/Horde_Service_Twitter.spec @@ -0,0 +1,137 @@ +%define peardir /usr/share/pear +%define xmldir /var/lib/pear +%{!?pear_metadir: %global pear_metadir %{pear_phpdir}} +%{!?__pear: %global __pear %{_bindir}/pear} +%global pear_name Horde_Service_Twitter +%global pear_channel pear.horde.org +%define name php-horde-Horde-Service-Twitter +%define version 2.1.5 +%define release 2 + +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Summary: PEAR: Horde Twitter client +License: BSD-2-Clause +Group: Development/Libraries +Source0: http://pear.horde.org/get/Horde_Service_Twitter-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) +URL: http://pear.horde.org/package/Horde_Service_Twitter +BuildRequires: php-pear(PEAR) >= 1.4.7 +BuildRequires: php-channel(pear.horde.org) +Requires: php-horde-Horde-Role >= 1.0.0 +Requires: php-horde-Horde-Controller >= 2.0.0 +Requires: php-horde-Horde-Controller < 3.0.0alpha1 +Requires: php-horde-Horde-Exception >= 2.0.0 +Requires: php-horde-Horde-Exception < 3.0.0alpha1 +Requires: php-horde-Horde-Http >= 2.0.0 +Requires: php-horde-Horde-Http < 3.0.0alpha1 +Requires: php-horde-Horde-Oauth >= 2.0.0 +Requires: php-horde-Horde-Oauth < 3.0.0alpha1 +Requires: php-horde-Horde-Url >= 2.0.0 +Requires: php-horde-Horde-Url < 3.0.0alpha1 +Requires: php-pear(PEAR) >= 1.7.0 +Requires: php-channel(pear.horde.org) +BuildArch: noarch +BuildRequires: php-horde-Horde-Role +BuildRequires: gettext + +Provides: %{name} = %{version} + +%description +Client libraries for the Twitter REST API. + +%prep +%setup -q -c + +cd %{pear_name}-%{version} + +# Don't install .po and .pot files +# Remove checksum for .mo, as we regenerate them +sed -e '/%{pear_name}.po/d' \ + -e '/Horde_Other.po/d' \ + -e '/%{pear_name}.mo/s/md5sum="[^"]*"//' \ + ../package.xml >%{name}.xml +touch -r ../package.xml %{name}.xml + + +%build +cd %{pear_name}-%{version} + +# Regenerate the locales +for po in $(find locale -name \*.po) +do + msgfmt $po -o $(dirname $po)/$(basename $po .po).mo +done + + +%install +cd %{pear_name}-%{version} +%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml + +# Clean up unnecessary files +rm -rf %{buildroot}%{pear_metadir}/.??* + +# Install XML package description +mkdir -p %{buildroot}%{pear_xmldir} +install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} + +# Locales +for loc in locale/{??,??_??} +do + lang=$(basename $loc) + test -d %{buildroot}%{pear_datadir}/%{pear_name}/$loc \ + && echo "%%lang(${lang%_*}) %{pear_datadir}/%{pear_name}/$loc" +done | tee ../%{pear_name}.lang + + +#%check +#cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g) + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{name}.xml >/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + %{pear_channel}/%{pear_name} >/dev/null || : +fi + + +%files -f %{pear_name}.lang +%doc %{pear_docdir}/%{pear_name} +%{pear_xmldir}/%{name}.xml +/usr/share/pear/Horde/* + +%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. + +* Fri Jun 17 2016 Jean-Philipe Pialasse 2.1.5-2.sme +- new spec file to build in SME buildsys +- inspired from Remi Collet php-horde-Service-Weather +- [SME: 9602] + +* Wed Jun 10 2015 John H. Bennett III - 2.1.5-1 +- Updated to 2.1.5 + +* Sat May 2 2015 John H. Bennett III - 2.1.4-1 +- Updated to 2.1.4 + +* Sat Mar 7 2015 John H. Bennett III - 2.1.3-1 +- Updated to 2.1.3 + +* Sat Jan 10 2015 John H. Bennett III - 2.1.2-1 +- Updated to 2.1.2 + +* Sun Jul 7 2013 John H. Bennett III - 2.1.1-1 +- Updated to 2.1.1 + +* Tue Jun 18 2013 John H. Bennett III - 2.1.0-1 +- Updated to 2.1.0 + +* Tue Jun 4 2013 John H. Bennett III - 2.0.3-1 +- Initial release for SME Server +- Original build from pear make-rpm-spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45aaec7 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: php-horde-Horde-Service-Twitter +# $Id: Makefile,v 1.1 2016/06/16 16:48:27 unnilennium Exp $ +NAME := php-horde-Horde-Service-Twitter +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 7018ac6..bfdd971 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # php-horde-Horde-Service-Twitter -3rd Party (Maintained by Koozali) git repo for php-horde-Horde-Service-Twitter smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for php-horde-Horde-Service-Twitter 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* +
+ +Horde_Service_Twitter is a set of classes that allows developers to interact with the Twitter API. It supports most of the features provided by the Twitter API, such as tweeting, searching, and retrieving user data. This package allows developers quickly and easily integrate Twitter into their Horde applications. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10