Summary: Gettext emulation in PHP Name: php-php-gettext Version: 1.0.11 Release: 12%{?dist}.art License: GPLv2+ Group: Development/Libraries URL: https://launchpad.net/php-gettext Source0: http://launchpad.net/php-gettext/trunk/%{version}/+download/php-gettext-%{version}.tar.gz Patch0: php-php-gettext-1.0.11-php7.patch %if 0%{?rhel}%{?fedora} > 4 Requires: php-common %endif Requires: php-mbstring Obsoletes: php-gettext < 1.0.11-5 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system. %prep %setup -q -n php-gettext-%{version} %patch0 -p1 -b .php7 %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_datadir}/php/gettext/ install -p -m 644 gettext.php streams.php gettext.inc $RPM_BUILD_ROOT%{_datadir}/php/gettext/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license COPYING %doc README AUTHORS %{_datadir}/php/gettext/ %changelog * Fri Sep 04 2015 Robert Scheck 1.0.11-12 - Added a patch for compatibility with PHP 7 * Thu Jun 18 2015 Fedora Release Engineering - 1.0.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.11-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Sep 16 2013 Michael Schwendt - 1.0.11-9 - increase php-gettext obs_ver (bug 1008026 and retire php-gettext) * Sun Aug 04 2013 Fedora Release Engineering - 1.0.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.0.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.0.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1.0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Oct 02 2011 Robert Scheck 1.0.11-4 - Removed the dependency to php-common at EPEL 4 * Mon Sep 19 2011 Robert Scheck 1.0.11-3 - Renamed package from php-gettext to php-php-gettext (#727000) * Mon Aug 01 2011 Robert Scheck 1.0.11-2 - Moved library data to /usr/share/php/gettext - Added runtime dependency to php-mbstring package * Sun Jul 31 2011 Robert Scheck 1.0.11-1 - Upgrade to 1.0.11 * Wed Feb 09 2011 Fedora Release Engineering 1.0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Dec 06 2009 David Nalley 1.0.9-2 - corrected license field * Sun Dec 06 2009 David Nalley 1.0.9-1 - Initial Packaging