1 %define pkgname cli-prompt
2 Summary: Allows you to prompt for user input on the command line
3 Name: php-seld-cli-prompt
7 Group: Development/Libraries
8 Source0: https://github.com/Seldaek/cli-prompt/archive/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: 8991b5b62cbc43f76c037c8b41ed578b
10 URL: https://github.com/Seldaek/cli-prompt
11 Requires: php(core) >= 5.3.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 While prompting for user input using fgets() is quite easy, sometimes
19 you need to prompt for sensitive information. In these cases, the
20 characters typed in by the user should not be directly visible, and
21 this is quite a pain to do in a cross-platform way.
24 %setup -q -n %{pkgname}-%{version}
27 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
30 cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
33 rm -rf $RPM_BUILD_ROOT
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