]> git.pld-linux.org Git - packages/php-seld-cli-prompt.git/commitdiff
new, version 1.0.0 auto/th/php-seld-cli-prompt-1.0.0-1
authorElan Ruusamäe <glen@delfi.ee>
Tue, 5 Jan 2016 08:15:21 +0000 (10:15 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 5 Jan 2016 08:15:21 +0000 (10:15 +0200)
based on fedora package, 2f85b6c

php-seld-cli-prompt.spec [new file with mode: 0644]

diff --git a/php-seld-cli-prompt.spec b/php-seld-cli-prompt.spec
new file mode 100644 (file)
index 0000000..f4b92a6
--- /dev/null
@@ -0,0 +1,39 @@
+%define                pkgname cli-prompt
+Summary:       Allows you to prompt for user input on the command line
+Name:          php-seld-cli-prompt
+Version:       1.0.0
+Release:       1
+License:       MIT
+Group:         Development/Libraries
+Source0:       https://github.com/Seldaek/cli-prompt/archive/%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 8895b5ec3d8f0212239e86be768391f6
+URL:           https://github.com/Seldaek/cli-prompt
+Requires:      php(core) >= 5.3.0
+Requires:      php(pcre)
+Requires:      php(spl)
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+While prompting for user input using fgets() is quite easy, sometimes
+you need to prompt for sensitive information. In these cases, the
+characters typed in by the user should not be directly visible, and
+this is quite a pain to do in a cross-platform way.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# Restore PSR-0 tree
+install -d $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
+cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE composer.json res/example.php
+%dir %{php_data_dir}/Seld
+%{php_data_dir}/Seld/CliPrompt
This page took 0.872945 seconds and 4 git commands to generate.