[php-password-compat] Initial import

Johan Cwiklinski trasher at fedoraproject.org
Tue Jan 29 13:35:11 UTC 2013


commit b6ed62b6b39c9ba8ee26647e797d3e7eb45111c9
Author: Johan Cwiklinski <johan at x-tnd.be>
Date:   Tue Jan 29 14:36:15 2013 +0100

    Initial import

 .gitignore               |    1 +
 php-password-compat.spec |   78 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5c2a80b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/password_compat-1.0.0-58151cf.tar.gz
diff --git a/php-password-compat.spec b/php-password-compat.spec
new file mode 100644
index 0000000..a3fe75a
--- /dev/null
+++ b/php-password-compat.spec
@@ -0,0 +1,78 @@
+%global commit 58151cf24e73119576c2a016393120f9c146448b
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global real_name password_compat
+
+
+Name:           php-password-compat
+Version:        1.0.0
+Release:        4.git%{shortcommit}%{?dist}
+Summary:        PHP password_* function for PHP 5.3 and 5.4
+
+Group:          Development/Libraries
+License:        MIT
+URL:            https://github.com/ircmaxell/password_compat
+Source0:        https://github.com/ircmaxell/%{real_name}/archive/%{commit}/%{real_name}-%{version}-%{shortcommit}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  php-pear(pear.phpunit.de/PHPUnit)
+
+Requires:       php(language) >= 5.3.7
+Requires:       php-mcrypt
+Requires:       php-openssl
+Requires:       php-pcre
+
+
+%description
+Forward compatibility with the password_* functions
+being worked on for PHP 5.5
+
+
+%prep
+%setup -q -n %{real_name}-%{commit}
+
+
+%build
+# Empty build section
+
+
+%install
+# create needed directories
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/php/%{real_name}
+install -m 0644 -p lib/password.php $RPM_BUILD_ROOT%{_datadir}/php/%{real_name}
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/tests/%{real_name}
+cp -pr test $RPM_BUILD_ROOT%{_datadir}/tests/%{real_name}
+
+%check
+cd test
+
+# Version 1.0.0-1-git58121cf : OK (30 tests, 30 assertions)
+%{_bindir}/phpunit
+
+
+%files
+%doc LICENSE.md README.md composer.json
+%dir %{_datadir}/php/%{real_name}
+%{_datadir}/php/%{real_name}/*
+%dir %{_datadir}/tests
+%dir %{_datadir}/tests/%{real_name}
+%{_datadir}/tests/%{real_name}/*
+
+
+%changelog
+* Tue Jan 29 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.0.0-4.git5815cf
+- License was not incorrect...
+- Directory not owned
+
+* Mon Jan 28 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.0.0-3.git58151cf
+- incorrect licence
+
+* Mon Jan 28 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.0.0-2.git58151cf
+- improve Requires
+- drop buildroot removal (not targetted on el-5)
+- update description
+- fix %%check comment
+- move tests in %%{_datadir}/tests instead of %%{_datadir}/php
+
+* Wed Jan 16 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.0.0-1.git58151cf
+- Initial Release
diff --git a/sources b/sources
index e69de29..521c12c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+edb07428f830ad5899b6e1abdea312ba  password_compat-1.0.0-58151cf.tar.gz


More information about the scm-commits mailing list