LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php5-pear-net_imsp.spec of Package php5-pear-net_imsp (Project server:php:applications)

# norootforbuild

%define prj    Net_IMSP

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

Name:          php5-pear-net_imsp
Version:       0.0.6
Release:       0
Summary:       IMSP API
License:       LGPL
Group:         Productivity/Networking/Web/Servers
Url:           http://pear.horde.org/index.php?package=%{prj}
Source0:       %{prj}-%{version}.tgz
BuildArch:     noarch
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
PreReq:        %{_bindir}/pear5
Requires:      php5-pear
Requires:      php5-pear-channel-horde
BuildRequires: php5-pear
BuildRequires: php5-pear-channel-horde

%description
Provides an API into an IMSP server for Addressbooks and Options

%prep
%setup -q -n %{prj}-%{version}

%build
%__mv ../package*.xml .

%install
pear install --packagingroot %{buildroot} --nodeps package.xml

%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}

%__mkdir_p %{buildroot}%{xmldir}
%__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml

%clean
%__rm -rf %{buildroot}

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

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

%files
%defattr(-, root, root)
%{xmldir}/%{prj}.xml
%dir %{peardir}/Net
%{peardir}/Net/IMSP.php
%dir %{peardir}/Net/IMSP
%{peardir}/Net/IMSP/Auth.php
%dir %{peardir}/Net/IMSP/Auth
%{peardir}/Net/IMSP/Auth/cram_md5.php
%{peardir}/Net/IMSP/Auth/imtest.php
%{peardir}/Net/IMSP/Auth/plaintext.php
%{peardir}/Net/IMSP/Book.php
%{peardir}/Net/IMSP/Options.php
%{peardir}/Net/IMSP/Utils.php

%changelog
* Sun Feb 21 2010 rbos@opensuse.org
- Added dependency php5-pear-xml_svg
* Sat Feb 20 2010 rbos@opensuse.org
- Initial version