File project.diff of Package makepasswd

--- makepasswd.changes.orig
+++ makepasswd.changes
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Oct 18 08:30:31 UTC 2017 - aavindraa@gmail.com
+
+- Update to 0.5.4
+- Lint spec file
+- Simplify make/make install with macros
+
+-------------------------------------------------------------------
 Tue Feb 26 09:13:53 UTC 2013 - jengelh@inai.de
 
 - Make package build successfully on Fedora 18
--- makepasswd.spec.orig
+++ makepasswd.spec
@@ -1,5 +1,8 @@
 # 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 <pascal.bleser@opensuse.org>
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,26 +15,32 @@
 # 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.1
+Version:        0.5.4
 Release:        0
 Summary:        Password Generator
-Source:         http://www.defora.org/os/download/download/3670/makepasswd-%{version}.tar.gz
-URL:            http://www.defora.org/os/project/117/makepasswd
-Group:          Productivity/Security
 License:        GPL-3.0+
-BuildRoot:      %{_tmppath}/build-%{name}-%{version}
-BuildRequires:  gcc make
+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}
-BuildRequires:  docbook2x
 %define db2man docbook-to-man
+BuildRequires:  docbook2x
 %endif
 %if 0%{?fedora_version} || 0%{?redhat_version} || 0%{?centos_version}
-BuildRequires:  docbook2X
 %define db2man db2x_docbook2man
+BuildRequires:  docbook2X
 %endif
+BuildRequires:  make
 %if 0%{?sles_version} == 10
 BuildRequires:  perl-Archive-Tar
 %endif
@@ -41,33 +50,23 @@ Makepasswd generates pseudo-random passw
 generate its crypted equivalent.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{name}_%{version_dashed}
 
 %build
-%__make %{?_smp_flags} \
-    PREFIX="%{_prefix}" \
-    BINDIR="%{_bindir}" \
-    CC="%__cc" \
-    CPPFLAGS="%{optflags} -Wall"
+make %{?_smp_mflags} SUBDIRS=src
 
 pushd doc
-%db2man makepasswd.1.xml
+    %{db2man} makepasswd.xml
 popd
 
 %install
-%__make %{?_smp_flags} \
-    DESTDIR="%{buildroot}" \
-    PREFIX="%{_prefix}" \
-    BINDIR="%{_bindir}" \
-    CC="%__cc" \
-    CPPFLAGS="%{optflags} -Wall" \
-    install
+%make_install %{?_smp_mflags} SUBDIRS=src \
+    PREFIX="%{_prefix}"
 
-%__install -D -m0644 doc/MAKEPASSWD.1 "%{buildroot}%{_mandir}/man1/makepasswd.1"
+install -D -m0644 doc/makepasswd.1 "%{buildroot}%{_mandir}/man1/makepasswd.1"
 
 %files
-%defattr(-,root,root)
 %{_bindir}/makepasswd
-%doc %{_mandir}/man1/makepasswd.1*
+%{_mandir}/man1/makepasswd.1*
 
 %changelog
openSUSE Build Service is sponsored by