summaryrefslogtreecommitdiffstats
path: root/php-tecnickcom-tc-lib-barcode.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-01 16:45:44 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-01 16:45:44 +0200
commit0cd7e7a116d00a4728f7d343c5c35c31827e8de9 (patch)
tree272565d6be843254fd3b80395585015b575dfacb /php-tecnickcom-tc-lib-barcode.spec
parent26952d6d5ebac8a27a29ec6437572257e5491a79 (diff)
php-tecnickcom-tc-lib-barcode: fix for php < 5.5
Diffstat (limited to 'php-tecnickcom-tc-lib-barcode.spec')
-rw-r--r--php-tecnickcom-tc-lib-barcode.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/php-tecnickcom-tc-lib-barcode.spec b/php-tecnickcom-tc-lib-barcode.spec
index 6c74676..c8f935c 100644
--- a/php-tecnickcom-tc-lib-barcode.spec
+++ b/php-tecnickcom-tc-lib-barcode.spec
@@ -25,6 +25,9 @@ License: LGPLv3+
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{?gh_short}.tar.gz
+# https://github.com/tecnickcom/tc-lib-barcode/pull/2 - php < 5.5 compat
+Patch0: %{name}-pr2.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
@@ -73,6 +76,8 @@ Optional dependency: php-pecl-imagick
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1
+
: Sanity check
grep -q '^%{version}$' VERSION
@@ -124,4 +129,6 @@ rm -rf %{buildroot}
%changelog
* Wed Jul 1 2015 Remi Collet <remi@fedoraproject.org> - 1.1.2-1
-- initial package, version 1.1.2 \ No newline at end of file
+- initial package, version 1.1.2
+- open https://github.com/tecnickcom/tc-lib-barcode/pull/2
+ PHP < 5.5 compatibility \ No newline at end of file