Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9035e7747d64a95aff2f54ece080c84a > files > 2

php-pear-Horde_Stream-1.4.0-2.mga4.src.rpm

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

Name: 		php-pear-%{upstream_name}
Version:     	1.4.0
Release:     	%mkrel 2
Summary:    	Horde stream handler
License:    	LGPL-2.1
Group:       	Networking/Mail
Url:         	http://pear.horde.org/package/%{upstream_name}
Source0:    	Source0: http://pear.horde.org/get/%{upstream_name}-%{version}.tgz
BuildRequires:	php-pear >= 1.4.7
BuildRequires: 	php-pear-channel-horde
Requires:    	php-pear >= 1.7.0
Requires: 	php-pear-channel-horde
Requires:	php-pear-Horde_Exception >= 2.0.0
Requires: 	php-pear-Horde_Exception < 3.0.0alpha1
BuildArch:  	noarch

%description
An object-oriented interface to assist in creating and storing PHP stream
resources, and to provide utility methods to access and manipulate the
stream contents.

%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_Stream.xml

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

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

%files
%doc docs/Horde_Stream/*
%{peardir}/*
%{xmldir}/Horde_Stream.xml


%changelog
* Tue Oct 22 2013 umeabot <umeabot> 1.4.0-2.mga4
+ Revision: 545326
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 spuhler <spuhler> 1.4.0-1.mga4
+ Revision: 501128
- upgrade to version 1.4.0

* Wed Aug 14 2013 spuhler <spuhler> 1.3.0-1.mga4
+ Revision: 466627
- upgrade to ver 1.3.0

* Fri Jun 07 2013 spuhler <spuhler> 1.2.0-1.mga4
+ Revision: 440301
- imported package php-pear-Horde_Stream