]> git.pld-linux.org Git - packages/php-seld-cli-prompt.git/blob - php-seld-cli-prompt.spec
f4b92a63cd9fc8270c47f6cbd2845e16008c652d
[packages/php-seld-cli-prompt.git] / php-seld-cli-prompt.spec
1 %define         pkgname cli-prompt
2 Summary:        Allows you to prompt for user input on the command line
3 Name:           php-seld-cli-prompt
4 Version:        1.0.0
5 Release:        1
6 License:        MIT
7 Group:          Development/Libraries
8 Source0:        https://github.com/Seldaek/cli-prompt/archive/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5:  8895b5ec3d8f0212239e86be768391f6
10 URL:            https://github.com/Seldaek/cli-prompt
11 Requires:       php(core) >= 5.3.0
12 Requires:       php(pcre)
13 Requires:       php(spl)
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
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.
22
23 %prep
24 %setup -q -n %{pkgname}-%{version}
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28 # Restore PSR-0 tree
29 install -d $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
30 cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Seld/CliPrompt
31
32 %clean
33 rm -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.062593 seconds and 2 git commands to generate.