94 lines
3.1 KiB
RPMSpec
94 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package vym
|
|
#
|
|
# Copyright (c) 2016 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: vym
|
|
Version: 2.6.0
|
|
Release: 0
|
|
Summary: View Your Mind - generate and manipulate maps which show your thoughts
|
|
License: GPL-2.0
|
|
Group: Productivity/Office/Other
|
|
Url: http://www.insilmaril.de/vym/index.html
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.xml
|
|
Source2: %{name}.desktop
|
|
Source3: x-%{name}.desktop
|
|
Source4: debian.dirs
|
|
Source5: debian.docs
|
|
Source6: makedist.config
|
|
BuildRequires: libQt5Core-devel
|
|
BuildRequires: libQt5Gui-devel
|
|
BuildRequires: libqt5-linguist-devel
|
|
BuildRequires: libqt5-qtbase-devel
|
|
BuildRequires: libqt5-qtsvg-devel
|
|
BuildRequires: update-desktop-files
|
|
Requires: unzip
|
|
Requires: zip
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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...
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
lrelease-qt5 vym.pro
|
|
qmake-qt5 -o Makefile vym.pro PREFIX=%{_datadir} BINDIR=%{_bindir} CONFIG+=RELEASE
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_datadir}/vym
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
install -m 0644 icons/vym.png %{buildroot}%{_datadir}/pixmaps
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
|
install -m 0644 README.md LICENSE.txt INSTALL.txt %{buildroot}%{_defaultdocdir}/%{name}
|
|
install -m 0644 doc/*.pdf %{buildroot}%{_defaultdocdir}/%{name}
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install INSTALL_ROOT=%{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
install -m 0644 doc/vym.1.gz %{buildroot}%{_mandir}/man1
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/mime/packages
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/
|
|
%suse_update_desktop_file -i vym Office ProjectManagement
|
|
|
|
%post
|
|
if test -x usr/bin/update-mime-database ; then
|
|
usr/bin/update-mime-database usr/share/mime >/dev/null
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_datadir}/applications/*
|
|
%{_datadir}/pixmaps/*
|
|
%{_bindir}/vym
|
|
%{_datadir}/vym
|
|
|
|
%doc %{_docdir}/%{name}
|
|
%{_mandir}/*/*
|
|
%{_datadir}/mime/packages/vym.xml
|
|
|
|
%changelog
|