rpms/php-pear-HTTP-OAuth/F-12 php-pear-HTTP-OAuth.spec, NONE, 1.1 sources, 1.1, 1.2

Remi Collet remi at fedoraproject.org
Thu Dec 3 17:31:04 UTC 2009


Author: remi

Update of /cvs/extras/rpms/php-pear-HTTP-OAuth/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7721

Modified Files:
	sources 
Added Files:
	php-pear-HTTP-OAuth.spec 
Log Message:
new package


--- NEW FILE php-pear-HTTP-OAuth.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name HTTP_OAuth

Name:           php-pear-HTTP-OAuth
Version:        0.1.6
Release:        1%{?dist}
Summary:        Implementation of the OAuth spec

Group:          Development/Libraries
License:        BSD
URL:            http://pear.php.net/package/HTTP_OAuth
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(HTTP_Request2) >= 0.4.0
Requires:       php-pear(PEAR)
# Optional Dependencies
Requires:       php-pear(Log) >= 1.11.0
# not yet available in Fedora Requires: php-pecl(pecl_http) >= 1.6.0


%description
Allows the use of the consumer and provider angles of the OAuth spec.

%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

# Move documentation
mkdir -p docdir
mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
# fix rpmlint warnings
sed -i -e 's/\r//' docdir/%{pear_name}/examples/jquery.fade.js

# 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_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%doc %{pear_name}-%{version}/docdir/%{pear_name}/*
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/HTTP/OAuth.php
%{pear_phpdir}/HTTP/OAuth
%{pear_testdir}/HTTP_OAuth
# only an empty unused file 
%exclude %{pear_datadir}/HTTP_OAuth/README


%changelog
* Tue Dec 01 2009 Remi Collet <Fedora at FamilleCollet.com> 0.1.6-1
- new version

* Fri Nov 20 2009 Remi Collet <Fedora at FamilleCollet.com> 0.1.5-1
- new version

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



Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-HTTP-OAuth/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	3 Dec 2009 06:33:13 -0000	1.1
+++ sources	3 Dec 2009 17:31:03 -0000	1.2
@@ -0,0 +1 @@
+8fe858e0b5abe5d3147a490c2887337d  HTTP_OAuth-0.1.6.tgz




More information about the fedora-extras-commits mailing list