rpms/php-pear-Services-Twitter/devel php-pear-Services-Twitter.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Remi Collet remi at fedoraproject.org
Thu Dec 3 17:48:42 UTC 2009


Author: remi

Update of /cvs/extras/rpms/php-pear-Services-Twitter/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13238

Modified Files:
	.cvsignore sources 
Added Files:
	php-pear-Services-Twitter.spec 
Log Message:
new package


--- NEW FILE php-pear-Services-Twitter.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name Services_Twitter

Name:           php-pear-Services-Twitter
Version:        0.4.0
Release:        1%{?dist}
Summary:        PHP interface to Twitter's API

Group:          Development/Libraries
License:        BSD
URL:            http://pear.php.net/package/Services_Twitter
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(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}
Requires:       php-pear(PEAR)
Requires:       php-common >= 5.2.0
# Optional (but which requires mandatory HTTP_Request2)
Requires:       php-pear(HTTP_OAuth) >= 0.1.2

%description
An interface for communicating with Twitter's public API.
Send status updates, fetch information, add friends, etc.

%prep
%setup -q -c
# package is V2
mv package.xml %{pear_name}-%{version}/%{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 %{name}.xml



# 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 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}


%clean
rm -rf $RPM_BUILD_ROOT


%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.php.net/%{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Services
%{pear_datadir}/Services_Twitter
%{pear_testdir}/Services_Twitter


%changelog
* Wed Nov 11 2009 Remi Collet <Fedora at FamilleCollet.com> 0.4.0-1
- initial RPM



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Services-Twitter/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	3 Dec 2009 06:33:59 -0000	1.1
+++ .cvsignore	3 Dec 2009 17:48:42 -0000	1.2
@@ -0,0 +1 @@
+Services_Twitter-0.4.0.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Services-Twitter/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	3 Dec 2009 06:33:59 -0000	1.1
+++ sources	3 Dec 2009 17:48:42 -0000	1.2
@@ -0,0 +1 @@
+443aea93d76934b26948e3c5b5c46c8e  Services_Twitter-0.4.0.tgz




More information about the fedora-extras-commits mailing list