[packages/php-pear-Auth_Yubico] - initial; don't see a way to handle it with pure pear_package_setup macro, so workarounds used

arekm arekm at pld-linux.org
Sat Jan 28 18:49:22 CET 2017


commit 83dbcc8e43c44255a6e6f0f04dbbff3ca5058654
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Jan 28 18:49:06 2017 +0100

    - initial; don't see a way to handle it with pure pear_package_setup macro, so workarounds used

 php-pear-Auth_Yubico.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/php-pear-Auth_Yubico.spec b/php-pear-Auth_Yubico.spec
new file mode 100644
index 0000000..4dcecad
--- /dev/null
+++ b/php-pear-Auth_Yubico.spec
@@ -0,0 +1,67 @@
+%define		status		alpha
+%define		pearname	Auth_Yubico
+%include	/usr/lib/rpm/macros.php
+Summary:	%{pearname} - Authentication class for verifying Yubico OTP tokens
+Name:		php-pear-Auth_Yubico
+Version:	2.5
+Release:	1
+License:	BSD
+Group:		Development/Languages/PHP
+Source0:	https://developers.yubico.com/php-yubico/Releases/Auth_Yubico-%{version}.tgz
+# Source0-md5:	955f8330a5e030904394c6892d09a4c4
+URL:		https://developers.yubico.com/php-yubico/
+BuildRequires:	php-packagexml2cl
+BuildRequires:	php-pear-PEAR
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.610
+Requires:	php-pear
+BuildArch:	noarch
+
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	%(pear config-get cfg_dir 2>/dev/null || ERROR)/%{pearname}
+
+%if "" != ""
+# exclude optional dependencies
+%define		_noautoreq
+%endif
+
+%description
+PHP class to help you verify Yubico OTP tokens.
+
+In PEAR status of this package is: %{status}.
+
+%prep
+%setup -q -n Auth_Yubico-%{version}
+%define builddir $(pwd)
+%pear_install
+cat %{-z:$_N/}.install.log | %__pear_install_log
+%undos -f php,html,js,xml
+
+%build
+packagexml2cl package.xml > ChangeLog
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if 0%{?_noautoreq:1}
+%post -p <lua>
+%pear_package_print_optionalpackages
+%endif
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog install.log
+%if 0%{?_noautoreq:1}
+%doc optional-packages.txt
+%endif
+%{php_pear_dir}/.registry/*.reg
+%{php_pear_dir}/Auth/Yubico.php
+
+
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pear-Auth_Yubico.git/commitdiff/83dbcc8e43c44255a6e6f0f04dbbff3ca5058654



More information about the pld-cvs-commit mailing list