]> git.pld-linux.org Git - SPECS.git/blob - php-seld-cli-prompt.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.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.2
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:  8991b5b62cbc43f76c037c8b41ed578b
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.635427 seconds and 3 git commands to generate.