Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 5ff38713d624beaa5bd4f5c20e6aebbb > files > 2

php-pear-Horde_Nls-2.0.3-2.mga4.src.rpm

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

Name: 		php-pear-%{upstream_name}
Version:     	2.0.3
Release:     	%mkrel 2
Summary:    	This package provides Native Language Support (NLS)
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_Translation >= 2.0.0
Requires:	php-pear-Horde_Translation < 3.0.0alpha1
Requires:	php-pear-Horde_Util >= 2.0.0
Requires:	php-pear-Horde_Util < 3.0.0alpha1
BuildArch:  	noarch


%description
Provide common methods for handling language data, timezones, and
hostname->country lookups.

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

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

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

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

%changelog
* Sat Oct 19 2013 umeabot <umeabot> 2.0.3-2.mga4
+ Revision: 526599
- Mageia 4 Mass Rebuild

* Thu Jun 06 2013 spuhler <spuhler> 2.0.3-1.mga4
+ Revision: 437868
- upgrade to ver. 2.0.3
- update Requires per upstream

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

* Mon Nov 28 2011 spuhler <spuhler> 1.1.2-1.mga2
+ Revision: 173374
- upgrade to 1.1.2

* Mon Nov 07 2011 spuhler <spuhler> 1.1.1-1.mga2
+ Revision: 164637
- upgrade to 1.1.1
-Provides:      	php-pear-Horde_Nls
  +Provides:      	php-pear-Horde_Nls = %%{version}
- imported package php-pear-Horde_Nls