File fleetingpm.spec of Package fleetingpm

#
# spec file for package fleetingpm
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           fleetingpm
Version:        2.9.0
Release:        0
Summary:        Fleeting Password Manager
License:        GPL-3.0
Group:          Productivity/Security
Url:            http://fleetingpm.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fleetingpm-install.patch <lazy.kent@opensuse.org> -- set to full path values
Patch0:         fleetingpm-install.patch
# PATCH-FIX-UPSTREAM fleetingpm-DSO.patch <lazy.kent@opensuse.org> -- fix DSO missing from command line
Patch1:         fleetingpm-DSO.patch
BuildRequires:  ImageMagick
BuildRequires:  cmake >= 2.8.7
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(QtXml)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Fleeting Password Manager is a program that generates pseudo-random
passwords from given master password, URL/ID and user name. The master
password should be common to all passwords and URL/ID should be the url
of the service (e.g. www.facebook.com) or some part of it (e.g.
facebook). Fleeting Password Manager then combines the master password,
URL/ID and the given user name and generates the corresponding login
password.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake
make %{?_smp_mflags} VERBOSE=1

%install
%cmake_install
# Install icons of various sizes.
install -Dm 0644 data/icons/%{name}.svg \
    %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
for size in 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/
    convert -strip -resize ${size} data/icons/%{name}.png \
        %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
done

%suse_update_desktop_file -G "Password Manager" %{name} Security

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*

%changelog
openSUSE Build Service is sponsored by