Skip to content

Instantly share code, notes, and snippets.

@dandye
Created January 19, 2017 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dandye/c4c09332df61b12f9a919a74d534cb45 to your computer and use it in GitHub Desktop.
Save dandye/c4c09332df61b12f9a919a74d534cb45 to your computer and use it in GitHub Desktop.
RPM spec file for ranpwd v1.1-1
[admin@localhost ~]$ vim ranpwd.spec
Summary: A program to generate random passwords
Name: ranpwd
Version: 1.1
Release: 1
License: GPL
Group: Applications/System
Source0: ftp://ftp.kernel.org/pub/software/utils/admin/ranpwd/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
A program to generate random passwords using the in-kernel
cryptographically secure random number generator.
%prep
%setup -q
%build
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
make install INSTALLROOT=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc %{_mandir}/man1/*
%{_bindir}/ranpwd
%doc
%changelog
* Mon Mar 17 2003 H. Peter Anvin <hpa@zytor.com>
- Initial build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment