Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 25e01138156f43ee8d1562e10cce170f > files > 2

php-pear-Text_Template-1.1.4-2.mga3.src.rpm

%define upstream_name Text_Template
%define peardir %(pear config-get php_dir 2> /dev/null)

Name:		php-pear-%{upstream_name}
Version:	1.1.4
Release:	%mkrel 2
Summary:	Simple template engine
License:	BSD
Group:		Development/PHP
URL:		http://pear.phpunit.de/package/%upstream_name
Source0:	http://pear.phpunit.de/get/%upstream_name-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit



%description
Simple template engine

%prep
%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install
rm -rf %{buildroot}

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{peardir}/.??*

rm -rf %{buildroot}%{peardir}/docs
rm -rf %{buildroot}%{peardir}/tests

install -d %{buildroot}%{peardir}/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{peardir}/packages


%clean
rm -rf %{buildroot}


%post
pear install --nodeps --soft --force --register-only %{peardir}/packages/%{upstream_name}.xml

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


%files
%defattr(-,root,root)
%{peardir}/Text/Template.php
%{peardir}/Text/Template/Autoload.php
%{peardir}/packages/Text_Template.xml




%changelog

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

* Sun Jan 06 2013 spuhler <spuhler> 1.1.4-1.mga3
+ Revision: 340050
- upgrade to 1.1.4

* Wed Mar 28 2012 pterjan <pterjan> 1.1.1-2.mga2
+ Revision: 227301
- Use %%{peardir} everywhere
- Fix path in post script

* Mon Nov 14 2011 spuhler <spuhler> 1.1.1-1.mga2
+ Revision: 167473
- upgrade to 1.1.1

* Thu Jul 14 2011 spuhler <spuhler> 1.1.0-2.mga2
+ Revision: 123897
- increased rel to 2
  removed Requires: YAML

* Mon Jul 11 2011 spuhler <spuhler> 1.1.0-1.mga2
+ Revision: 122011
- imported package php-pear-Text_Template