Name:		rndstr
Version:	1.0.2
Release:	alt1
Summary:	Generate a random string (for passwords, keys, etc.)
Group:		System/Base
License:	MIT
URL:		https://github.com/kugland/rndstr
Source:		%name-%version.tar
Packager:	Alexander Lubyagin <dfpl@altlinux.org>
BuildRequires:	pandoc
Requires:	bash sed

%description
This script generates random strings that can be used for passwords, keys, etc.

%prep
%setup -q

%build
make docs

%install
install -d -m755 %buildroot%_defaultdocdir/%name-%version
install -d -m755 %buildroot%_bindir
install -d -m755 %buildroot%_man1dir
install -D -m644 LICENSE README.md %buildroot%_defaultdocdir/%name-%version/
install -D -m755 %name %buildroot%_bindir/
install -D -m644 %name.1 %buildroot%_man1dir/

%files
%doc LICENSE README.md
%_bindir/%name
%_man1dir/%name.1.*

%changelog
* Thu Aug 01 2024 Alexander Lubyagin <dfpl@altlinux.org> 1.0.2-alt1
- first build for ALT Linux
