Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 144e759edb16e484ad74100431eaba1f > files > 2

php-pear-Horde_Oauth-1.0.0-3.mga3.src.rpm

%define upstream_name Horde_Oauth
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name: 		php-pear-%{upstream_name}
Version:     	1.0.0
Release:     	%mkrel 3
Summary:    	Horde OAuth client/server
License:    	BSD
Group:       	Networking/Mail
Url:         	http://pear.horde.org/package/%{upstream_name}
Source0:    	Source0: http://pear.horde.org/get/%{upstream_name}-%{version}.tgz
BuildArch:  	noarch
Requires:    	php-pear
Requires:  	php-pear-Horde_Exception <= 2.0.0 
Requires:  	php-pear-Horde_Http <= 2.0.0 
Conflicts: 	php-pear-Horde_Exception = 2.0.0
Conflicts:  	php-pear-Horde_Http = 2.0.0
BuildRequires:	php-pear
BuildRequires: 	php-pear-channel-horde
Provides:      	php-pear-Horde_Oauth = %{version}
	
%description
This package provides an OAuth consumer (http://oauth.net) and OAuth
infrastruture, and in the future will provide an OAuth server.

%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 %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs .


# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Horde_Oauth.xml

%clean
rm -rf %{buildroot}

%post
pear install --nodeps --soft --force --register-only %{xmldir}/Horde_Oauth.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/Horde_Oauth
fi

%files
%defattr(-,root,root)
%doc docs/Horde_Oauth/*
%{peardir}/Horde/Oauth/Consumer.php
%{peardir}/Horde/Oauth/Exception.php
%{peardir}/Horde/Oauth/Request.php
%{peardir}/Horde/Oauth/SignatureMethod.php
%{peardir}/Horde/Oauth/SignatureMethod/HmacSha1.php
%{peardir}/Horde/Oauth/SignatureMethod/Plaintext.php
%{peardir}/Horde/Oauth/SignatureMethod/RsaSha1.php
%{peardir}/Horde/Oauth/Token.php
%{peardir}/Horde/Oauth/Utils.php
%{xmldir}/Horde_Oauth.xml


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 1.0.0-3.mga3
+ Revision: 376596
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Aug 07 2011 spuhler <spuhler> 1.0.0-2.mga2
+ Revision: 132126
- changed Provides: php-pear-Horde_Oauth to php-pear-Horde_Oauth = %%{version}
- imported package php-pear-Horde_Oauth