]> git.pld-linux.org Git - packages/php-seld-cli-prompt.git/blame - php-seld-cli-prompt.spec
up to 1.0.2, adds '/bin/sh' support
[packages/php-seld-cli-prompt.git] / php-seld-cli-prompt.spec
CommitLineData
5264c633
ER
1%define pkgname cli-prompt
2Summary: Allows you to prompt for user input on the command line
3Name: php-seld-cli-prompt
eeda76f8 4Version: 1.0.2
5264c633
ER
5Release: 1
6License: MIT
7Group: Development/Libraries
8Source0: https://github.com/Seldaek/cli-prompt/archive/%{version}/%{pkgname}-%{version}.tar.gz
eeda76f8 9# Source0-md5: 8991b5b62cbc43f76c037c8b41ed578b
5264c633
ER
10URL: https://github.com/Seldaek/cli-prompt
11Requires: php(core) >= 5.3.0
12Requires: php(pcre)
13Requires: php(spl)
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18While prompting for user input using fgets() is quite easy, sometimes
19you need to prompt for sensitive information. In these cases, the
20characters typed in by the user should not be directly visible, and
21this is quite a pain to do in a cross-platform way.
22
23%prep
24%setup -q -n %{pkgname}-%{version}
25
26%install
27rm -rf $RPM_BUILD_ROOT
28# Restore PSR-0 tree
29install -d $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
30cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
31
32%clean
33rm -rf $RPM_BUILD_ROOT
34
35%files
36%defattr(644,root,root,755)
37%doc README.md LICENSE composer.json res/example.php
38%dir %{php_data_dir}/Seld
39%{php_data_dir}/Seld/CliPrompt
This page took 0.073765 seconds and 4 git commands to generate.