summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-03 14:25:52 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-03 14:25:52 +0200
commit279c454900301d0d1041e6518bdc59d66afe5427 (patch)
tree56c191a7c21d82f6ba8e7ad8e7116164bb252ccf
parentcccbf936d09d02fb1036b9e49edb5c06ccd82853 (diff)
php-znerol-php-stringprep: new snapshot
-rw-r--r--Stringprep-pr6.patch99
-rw-r--r--php-znerol-php-stringprep.spec35
2 files changed, 24 insertions, 110 deletions
diff --git a/Stringprep-pr6.patch b/Stringprep-pr6.patch
deleted file mode 100644
index 9380abb..0000000
--- a/Stringprep-pr6.patch
+++ /dev/null
@@ -1,99 +0,0 @@
-From 5ffb9c2b3b887e99f6b880b032f2c81885d9d32c Mon Sep 17 00:00:00 2001
-From: Remi Collet <fedora@famillecollet.com>
-Date: Thu, 18 Jun 2015 14:27:29 +0200
-Subject: [PATCH] Fix #5 autoload issue
-
----
- Profile/ISCSI.php | 1 +
- Profile/Nameprep.php | 1 +
- Profile/Nodeprep.php | 1 +
- Profile/PolicyMIB.php | 1 +
- Profile/Resourceprep.php | 1 +
- Profile/SASLprep.php | 1 +
- Profile/Trace.php | 1 +
- 7 files changed, 7 insertions(+)
-
-diff --git a/Profile/ISCSI.php b/Profile/ISCSI.php
-index 7a2ee50..e599663 100644
---- a/Profile/ISCSI.php
-+++ b/Profile/ISCSI.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * Stringprep profile for iSCSI defined in RFC 3722
-diff --git a/Profile/Nameprep.php b/Profile/Nameprep.php
-index 8593f34..ea4f6b8 100644
---- a/Profile/Nameprep.php
-+++ b/Profile/Nameprep.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * Stringprep profile for nameprep defined in RFC 3491
-diff --git a/Profile/Nodeprep.php b/Profile/Nodeprep.php
-index fe468c9..318136a 100644
---- a/Profile/Nodeprep.php
-+++ b/Profile/Nodeprep.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * XMPP Nodeprep profile for nameprep defined in RFC 6122, Appendix A
-diff --git a/Profile/PolicyMIB.php b/Profile/PolicyMIB.php
-index 84d9b75..0cf405f 100644
---- a/Profile/PolicyMIB.php
-+++ b/Profile/PolicyMIB.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * XMPP PolicyMIB profile for stringprep defined in RFC 4011, Section 9.1.1
-diff --git a/Profile/Resourceprep.php b/Profile/Resourceprep.php
-index 8b1686a..64e62e3 100644
---- a/Profile/Resourceprep.php
-+++ b/Profile/Resourceprep.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * XMPP Resourceprep profile for stringprep defined in RFC 6122, Appendix B
-diff --git a/Profile/SASLprep.php b/Profile/SASLprep.php
-index f051239..2078630 100644
---- a/Profile/SASLprep.php
-+++ b/Profile/SASLprep.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * SASLprep: Stringprep Profile for User Names and Passwords, RFC 4013
-diff --git a/Profile/Trace.php b/Profile/Trace.php
-index 2e011aa..61fe643 100644
---- a/Profile/Trace.php
-+++ b/Profile/Trace.php
-@@ -1,6 +1,7 @@
- <?php
-
- namespace Znerol\Component\Stringprep\Profile;
-+use Znerol\Component\Stringprep\Profile;
-
- /**
- * The "trace" Profile of "Stringprep" as defined in RFC 4505
diff --git a/php-znerol-php-stringprep.spec b/php-znerol-php-stringprep.spec
index 69aaa61..403ef1f 100644
--- a/php-znerol-php-stringprep.spec
+++ b/php-znerol-php-stringprep.spec
@@ -7,9 +7,9 @@
# Please, preserve the changelog entries
#
-%global gh_commit 804b0d5d81f5fc80cbd96db71ba045e90aba46c5
+%global gh_commit fe3f274cb0a862e7e511a7f2033301a06cbfb4f1
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
-%global gh_date 20150519
+%global gh_date 20150618
%global gh_owner znerol
%global gh_project Stringprep
%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
@@ -18,7 +18,7 @@
Name: php-znerol-php-stringprep
Version: 0
-Release: 0.2.%{gh_date}git%{gh_short}%{?dist}
+Release: 0.4.%{gh_date}git%{gh_short}%{?dist}
Summary: Implementation of RFC 3454 Preparation of Internationalized Strings
Group: Development/Libraries
@@ -26,9 +26,6 @@ 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/znerol/Stringprep/pull/6
-Patch0: %{gh_project}-pr6.patch
-
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
@@ -59,8 +56,6 @@ See: http://tools.ietf.org/html/rfc3454
%prep
%setup -q -n %{gh_project}-%{gh_commit}
-%patch0 -p1
-
%build
# Generate a simple autoloader
@@ -79,8 +74,22 @@ cp -pr Profile RFC3454 *php \
%check
%if %{with_tests}
-%{_bindir}/phpunit \
- --bootstrap %{buildroot}%{basedir}/autoload.php
+# remirepo:11
+run=0
+ret=0
+if which php56; then
+ php56 %{_bindir}/phpunit --bootstrap %{buildroot}%{basedir}/autoload.php || ret=1
+ run=1
+fi
+if which php71; then
+ php71 %{_bindir}/phpunit --bootstrap %{buildroot}%{basedir}/autoload.php || ret=1
+ run=1
+fi
+if [ $run -eq 0 ]; then
+%{_bindir}/phpunit --bootstrap %{buildroot}%{basedir}/autoload.php --verbose
+# remirepo:2
+fi
+exit $ret
%else
: Test suite disabled
%endif
@@ -99,6 +108,10 @@ rm -rf %{buildroot}
%changelog
+* Sun Jul 3 2016 Remi Collet <remi@fedoraproject.org> - 0-0.4.20150618gitfe3f274
+- new snapshot
+- drop patch merges upstream
+
* Thu Jun 18 2015 Remi Collet <remi@fedoraproject.org> - 0-0.2.20150519git804b0d5
- add patch for autoload issue
https://github.com/znerol/Stringprep/pull/6
@@ -107,4 +120,4 @@ rm -rf %{buildroot}
- new snapshot (License PR merged)
* Sun Nov 9 2014 Remi Collet <remi@fedoraproject.org> - 0-0.1.20141109gita23ef29
-- initial package (git snapshot) \ No newline at end of file
+- initial package (git snapshot)