siwinski pushed to php-whitehat101-apr1-md5 (f22). "Initial import (#1222265)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun May 17 18:47:16 UTC 2015


From 3f6ca0a576a80584e6446a51025c09e794b2b498 Mon Sep 17 00:00:00 2001
From: Shawn Iwinski <shawn.iwinski at gmail.com>
Date: Sun, 17 May 2015 14:46:16 -0400
Subject: Initial import (#1222265)


diff --git a/.gitignore b/.gitignore
index e69de29..fdb79aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/php-whitehat101-apr1-md5-1.0.0-8b261c9fc0481b4e9fa9d01c6ca70867b5d5e819.tar.gz
diff --git a/php-whitehat101-apr1-md5.spec b/php-whitehat101-apr1-md5.spec
new file mode 100644
index 0000000..462d973
--- /dev/null
+++ b/php-whitehat101-apr1-md5.spec
@@ -0,0 +1,97 @@
+#
+# RPM spec file for php-whitehat101-apr1-md5
+#
+# Copyright (c) 2015 Shawn Iwinski <shawn.iwinski at gmail.com>
+#
+# License: MIT
+# http://opensource.org/licenses/MIT
+#
+# Please preserve changelog entries
+#
+
+%global github_owner     whitehat101
+%global github_name      apr1-md5
+%global github_version   1.0.0
+%global github_commit    8b261c9fc0481b4e9fa9d01c6ca70867b5d5e819
+
+%global composer_vendor  whitehat101
+%global composer_project apr1-md5
+
+# "php": ">=5.3.0"
+%global php_min_ver 5.3.0
+
+# Build using "--without tests" to disable tests
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+
+%{!?phpdir:  %global phpdir  %{_datadir}/php}
+
+Name:          php-%{composer_vendor}-%{composer_project}
+Version:       %{github_version}
+Release:       1%{?github_release}%{?dist}
+Summary:       Apache's APR1-MD5 algorithm in pure PHP
+
+Group:         Development/Libraries
+License:       MIT
+URL:           https://github.com/%{github_owner}/%{github_name}
+Source0:       %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
+
+BuildArch:     noarch
+# For autoload generation
+BuildRequires: %{_bindir}/phpab
+%if %{with_tests}
+# For tests
+## composer.json
+BuildRequires: %{_bindir}/phpunit
+BuildRequires: php(language) >= %{php_min_ver}
+## phpcompatinfo (computed from version 1.0.0)
+BuildRequires: php-openssl
+%endif
+
+# composer.json
+Requires:      php(language) >= %{php_min_ver}
+# phpcompatinfo (computed from version 1.0.0)
+Requires:      php-openssl
+
+# Composer
+Provides:      php-composer(%{composer_vendor}/%{composer_project}) = %{version}
+
+%description
+A tested, referenced, documented, and packaged implementation of Apache's APR1
+MD5 Hashing Algorithm in pure PHP.
+
+
+%prep
+%setup -qn %{github_name}-%{github_commit}
+
+
+%build
+: Generate autoloader
+%{_bindir}/phpab --nolower --output src/autoload.php src
+
+
+%install
+mkdir -p %{buildroot}%{phpdir}/WhiteHat101/Crypt
+cp -rp src/* %{buildroot}%{phpdir}/WhiteHat101/Crypt/
+
+
+%check
+%if %{with_tests}
+%{_bindir}/phpunit \
+    --bootstrap %{buildroot}%{phpdir}/WhiteHat101/Crypt/autoload.php
+%else
+: Tests skipped
+%endif
+
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%doc README.md
+%doc composer.json
+%dir %{phpdir}/WhiteHat101
+     %{phpdir}/WhiteHat101/Crypt
+
+
+%changelog
+* Sat May 16 2015 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.0.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..712eabc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+30c810b4b7364e7a3afdebf02708ace8  php-whitehat101-apr1-md5-1.0.0-8b261c9fc0481b4e9fa9d01c6ca70867b5d5e819.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-whitehat101-apr1-md5.git/commit/?h=f22&id=3f6ca0a576a80584e6446a51025c09e794b2b498


More information about the scm-commits mailing list