summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-01 10:32:53 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-01 10:32:53 +0200
commitf37a9ea4e9b4359f758285df18ba0a92875f98de (patch)
tree8b047be9f0c6629517690e3e3d616e5f73f8d936
parent0d3aa979178e9599c60e343fb4542331dc3a78f5 (diff)
php-horde-Horde-Date: backport
-rw-r--r--php-horde-Horde-Date.spec13
1 files changed, 13 insertions, 0 deletions
diff --git a/php-horde-Horde-Date.spec b/php-horde-Horde-Date.spec
index 0641bd0..d01a4fe 100644
--- a/php-horde-Horde-Date.spec
+++ b/php-horde-Horde-Date.spec
@@ -11,7 +11,10 @@ Group: Development/Libraries
License: LGPLv2+
URL: http://pear.horde.org
Source0: http://pear.horde.org/get/%{pear_name}-%{version}.tgz
+# /usr/lib/rpm/find-lang.sh from fedora 16
+Source1: find-lang.sh
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: php-pear >= 1:1.4.9-1.2
@@ -63,7 +66,13 @@ rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+
+%if 0%{?fedora} > 13
%find_lang %{pear_name}
+%else
+sh %{SOURCE1} $RPM_BUILD_ROOT %{pear_name}
+%endif
+
%post
%{__pear} install --nodeps --soft --force --register-only \
@@ -76,6 +85,7 @@ if [ $1 -eq 0 ] ; then
fi
%files -f %{pear_name}-%{version}/%{pear_name}.lang
+%defattr(-,root,root,-)
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Horde/Date
@@ -89,6 +99,9 @@ fi
%changelog
+* Wed Aug 01 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.0.11-1
+- backport for remi repo
+
* Thu Jul 12 2012 Nick Bebout <nb@fedoraproject.org> - 1.0.11-1
- Update to 1.0.11, fix packaging issues