summaryrefslogtreecommitdiffstats
path: root/php-patchwork-utf8.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-23 11:24:48 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-23 11:24:48 +0200
commit37a9f5d7763cb79bcb3a0a40fd9ca206a73d21e5 (patch)
tree77847dbc0c9caaf3fff48b8692e1840732e6c622 /php-patchwork-utf8.spec
parent8a80ac5325e15fbd19edae5f8b389f53a231dba1 (diff)
php-patchwork-utf8: backport
Diffstat (limited to 'php-patchwork-utf8.spec')
-rw-r--r--php-patchwork-utf8.spec18
1 files changed, 17 insertions, 1 deletions
diff --git a/php-patchwork-utf8.spec b/php-patchwork-utf8.spec
index ccd973e..f021d78 100644
--- a/php-patchwork-utf8.spec
+++ b/php-patchwork-utf8.spec
@@ -1,3 +1,4 @@
+# remirepo spec file for php-patchwork-utf8, from:
#
# Fedora spec file for php-patchwork-utf8
#
@@ -21,7 +22,11 @@
%global php_min_ver 5.3.0
# Build using "--without tests" to disable tests
+%if 0%{?rhel} == 5
+%global with_tests 0%{?_with_tests:1}
+%else
%global with_tests 0%{!?_without_tests:1}
+%endif
%{!?phpdir: %global phpdir %{_datadir}/php}
@@ -43,6 +48,7 @@ Source1: %{name}-get-source.sh
# https://github.com/tchwork/utf8/pull/50
Patch0: %{name}-pull-50.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Relative paths
BuildRequires: python
@@ -133,6 +139,8 @@ rm -f \
%install
+rm -rf %{buildroot}
+
: Library
mkdir -p %{buildroot}%{phpdir}
cp -rp src/Patchwork %{buildroot}%{phpdir}/
@@ -160,18 +168,26 @@ ln -s \
%endif
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE*
%doc *.md
%doc composer.json
%{phpdir}/Patchwork
%exclude %{phpdir}/Patchwork/Utf8/unicode-data.tbz2
-%exclude %{phpdir}/Patchwork/Utf8/WindowsStreamWrapper.php
+#exclude %{phpdir}/Patchwork/Utf8/WindowsStreamWrapper.php
%{_datadir}/%{name}
%changelog
+* Wed Sep 23 2015 Remi Collet <remi]remirepo.net> - 1.2.3-3
+- backport for remi repository
+
* Tue Sep 22 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.2.3-3
- Update patch for license files