1 |
Summary: a random password generator |
2 |
%define name randpw |
3 |
Name: %{name} |
4 |
%define version 0.0.4 |
5 |
%define release 2 |
6 |
Epoch: 9 |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
License: GPL |
10 |
URL: http://www.contribs.org |
11 |
Group: SMEserver/addon |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
BuildArchitectures: noarch |
14 |
BuildRoot: /var/tmp/%{name}-%{version} |
15 |
AutoReqProv: no |
16 |
Requires: openssl |
17 |
%description |
18 |
a random password generator created by Hsing-Foo Wang hsingfoo@gmail.com |
19 |
|
20 |
%changelog |
21 |
* Sat Jul 25 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.0.4-2 |
22 |
- openssl is now used to generate the password |
23 |
- You must give an argument greater or equal than 8 |
24 |
|
25 |
* Wed Oct 08 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.0.3-1 |
26 |
- new options added to prevent No argument, a negative number, |
27 |
- zero and non integer argument or a no integer argument part |
28 |
- -1 0 123abc and abc by Hsing-Foo Wang hsingfoo@gmail.com |
29 |
|
30 |
* Tue Oct 07 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.0.1-1 |
31 |
- Initial relase, idea from Hsing-Foo Wang hsingfoo@gmail.com |
32 |
|
33 |
%prep |
34 |
%setup |
35 |
%build |
36 |
|
37 |
%install |
38 |
rm -rf $RPM_BUILD_ROOT |
39 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
40 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
41 |
|
42 |
%clean |
43 |
cd .. |
44 |
rm -rf %{name}-%{version} |
45 |
|
46 |
%pre |
47 |
%preun |
48 |
%post |
49 |
%postun |
50 |
|
51 |
%files |
52 |
%defattr(-,root,root) |
53 |
%attr(755, root,root) /usr/bin/randpw |