# vim: set sw=4 ts=4 et nu: # # spec file for package makepasswd # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2011-2012 Pascal Bleser # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # The author has tagged the version with # dashes for some reason. %define version_dashed 0-5-4 Name: makepasswd Version: 0.5.4 Release: 0 Summary: Password Generator License: GPL-3.0+ Group: Productivity/Security URL: http://www.defora.org/os/project/117/makepasswd Source: https://github.com/khorben/makepasswd/archive/makepasswd_%{version_dashed}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: libxslt-devel BuildRequires: openssl-devel %if 0%{?suse_version} %define db2man docbook-to-man BuildRequires: docbook2x %endif %if 0%{?fedora_version} || 0%{?redhat_version} || 0%{?centos_version} %define db2man db2x_docbook2man BuildRequires: docbook2X %endif BuildRequires: make %if 0%{?sles_version} == 10 BuildRequires: perl-Archive-Tar %endif %description Makepasswd generates pseudo-random passwords of a desired length. It is able to generate its crypted equivalent. %prep %setup -q -n %{name}-%{name}_%{version_dashed} %build make %{?_smp_mflags} SUBDIRS=src pushd doc %{db2man} makepasswd.xml popd %install %make_install %{?_smp_mflags} SUBDIRS=src \ PREFIX="%{_prefix}" install -D -m0644 doc/makepasswd.1 "%{buildroot}%{_mandir}/man1/makepasswd.1" %files %{_bindir}/makepasswd %{_mandir}/man1/makepasswd.1* %changelog