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 <>
# 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

Name:           kpassgen
Version:        1.4
Release:        0
Summary:        Password Generator
License:        GPL-2.0+
Group:          Productivity/Security
Source1:        %{name}.png
# PATCH-FIX-OPENSUSE 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

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.

- Implement drag and droping
- Allow lower case letter to be unselected
- Simple password mode (favours lower case letters)

%setup -q -n %{name}
%patch0 -p1
#fix source

%cmake_kde4 -d build

cd build
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file %{name} Security

openSUSE Build Service is sponsored by