File keepassx.spec of Package keepassx

#
# spec file for package keepassx (Version 0.4.3)
#
# Copyright (c) 2009, 2010 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           keepassx
Version:	0.4.3
Release:	0
URL:		http://keepassx.sourceforge.net/
License:	GPLv2
Source0:	%{name}-%{version}.tar.bz2
Group:		Productivity/Security
Summary:	Cross Platform Password Manager
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:		shared-mime-info
BuildRequires:  libqt4-devel cmake >= 2.6.0 xorg-x11-devel fdupes

%description
KeePassX is a free/open-source password manager or safe which helps you to
manage your passwords in a secure way. You can put all your passwords in one
database, which is locked with one master key or a key-disk. So you only have to
remember one single master password or insert the key-disk to unlock the whole
database. The databases are encrypted using the best and most secure encryption
algorithms currently known (AES and Twofish).

Authors:
--------
    KeePassX Team <keepassx@gmail.com>

%prep
%setup -q

%build
%{__mkdir} build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
%{__make} %{?jobs:-j %jobs}

%install
pushd build
%{makeinstall} INSTALL_ROOT=%{buildroot}
popd
%{__rm} -rf %{buildroot}%{_datadir}/mimelnk
%fdupes %{buildroot}

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%post
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%postun
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%files
%defattr(-,root,root)
%doc changelog
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.xpm

%changelog
openSUSE Build Service is sponsored by