File kpassgen.spec of Package kpassgen
#
# spec file for package kpassgen
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009-2011 by Sascha Manns <saigkill@opensuse.org>
#
# 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/
#
Name: kpassgen
Version: 1.4
Release: 0
Summary: Password Generator
License: GPL-2.0+
Group: Productivity/Security
Url: http://sourceforge.net/projects/kpassgen/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}.png
# PATCH-FIX-OPENSUSE saigkill@opensuse.org Fix the *.desktop File to Freedesktop's Standards and openSUSE Standards.
Patch0: %{name}-desktop-fix.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: kde4-filesystem
BuildRequires: libkde4-devel
BuildRequires: libqt4-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{kde4_runtime_requires}
%description
Generates a set of random passwords of any length that can include the letter
a-z, A-Z any number and symbols. WARNING: I cannot guarantee the strength of
the passwords generated by this program.
TODO:
- Implement drag and droping
- Allow lower case letter to be unselected
- Simple password mode (favours lower case letters)
%prep
%setup -q -n %{name}
%patch0 -p1
#fix source
chmod 0644 COPYING README
%build
%cmake_kde4 -d build
%{make_jobs}
%install
cd build
%{kde4_makeinstall}
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file %{name} Security
%{kde_post_install}
%files
%defattr(-,root,root)
%doc COPYING README
%{_kde4_bindir}/kpassgen
%{_kde4_applicationsdir}/kpassgen.desktop
%{_kde4_appsdir}/kpassgen
%{_kde4_sharedir}/config.kcfg/settings.kcfg
%{_datadir}/pixmaps/kpassgen.png