LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File vym.spec of Package vym (Project openSUSE:12.1)

# spec file for package vym (Version 1.12.8)
# Copyright (c) 2010 SUSE LINUX Products 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/

# norootforbuild

Name:           vym

BuildRequires:  libqt4-devel update-desktop-files
Requires:       zip unzip
License:        GPLv2
Group:          Productivity/Office/Other
Url:            http://www.insilmaril.de/vym/index.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Summary:        View Your Mind - generate and manipulate maps which show your thoughts
Version:        2.0.1
Release:        1
#Patch:		fix-midbutton.diff
Source0:        %name-%version.tar.bz2
Source1:        %name.xml
Source2:        %name.desktop
Source3:        x-%name.desktop

VYM  (View Your Mind) is a tool to generate and manipulate maps which
show your thoughts. Such maps can help you to improve your creativity
and effectivity. You can use them for time management, to organize
tasks, to get an overview over complex contexts, to sort your ideas
etc. Some people even think it is fun to work with such maps...

    Uwe Drechsel  <vym@insilmaril.de>

%setup -q

qmake -o Makefile vym.pro PREFIX=%_prefix CONFIG+=RELEASE
lrelease vym.pro

mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/pixmaps
install -m 0644 icons/vym.png $RPM_BUILD_ROOT%{_prefix}/share/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
install -m 0644 README.txt LICENSE.txt INSTALL.txt $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
install -m 0644 doc/*.pdf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}

mkdir -p $RPM_BUILD_ROOT/usr/share/applications
install -Dm644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/applications

mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 0644 doc/vym.1.gz $RPM_BUILD_ROOT%{_mandir}/man1

mkdir -p $RPM_BUILD_ROOT/usr/share/mime/packages
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/mime/packages/
%suse_update_desktop_file -i vym Office ProjectManagement


if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null

%doc %{_docdir}/%{name}
%doc %{_mandir}/*/*