semantik/semantik.spec
Marguerite Su 5bd5e506f0 Accepting request 555579 from home:Vogtinator:noqtwebkit
- Update to 1.0.1:
  * Add a diagram sequence element
  * Fix improper pdf document dimensions
  * Fix the configuration and build on FreeBSD
  * Add installation notes for Fedora
- Update to 1.0.0:
  * Port to KDE5 and Python 3
  * Add SVG Export from the menus
  * Add new diagram shapes
  * Add resize handles to diagram objects
  * Add diagram link labels

OBS-URL: https://build.opensuse.org/request/show/555579
OBS-URL: https://build.opensuse.org/package/show/Education/semantik?expand=0&rev=27
2017-12-10 05:03:25 +00:00

104 lines
3.3 KiB
RPMSpec

#
# spec file for package semantik
#
# Copyright (c) 2017 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: semantik
Version: 1.0.1
Release: 0
Summary: A mindmapping-like tool
License: GPL-3.0 and GPL-2.0
Group: Productivity/Office/Other
Url: http://ita1024.github.io/semantik/
Source0: https://waf.io/%{name}-%{version}.tar.bz2
Source1: %{name}.1
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kdelibs4support-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: libqt5-linguist
BuildRequires: libqt5-qtdeclarative-devel
BuildRequires: libqt5-qtsvg-devel
BuildRequires: libqt5-qtwebengine-devel
BuildRequires: python3-devel
BuildRequires: update-desktop-files
%description
Semantik (previously Kdissert) is a mindmapping-like tool to help students
to produce complicated documents very quickly and efficiently :
presentations, dissertations, thesis, reports.
While targetted mostly at students, Semantik can also help teachers,
decision maker, engineers and businessmen.
Though this application shares some similarities with general-purpose
mindmapping tools like Freemind or Vym, the very first goal of Semantik is
to create general-purpose documents through the use of mindmaps.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
# export LDFLAGS="-Wl,-Bsymbolic-functions $LDFLAGS"
./waf configure \
--prefix=%{_prefix}
./waf build %{?_smp_mflags}
%install
./waf install --destdir=%{buildroot}
install -Dm0644 src/data/%{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
install -m0644 src/data/%{name}-d.svg %{buildroot}%{_datadir}/pixmaps/%{name}-d.svg
%suse_update_desktop_file -i %{name} Office ProjectManagement
%suse_update_desktop_file -i %{name}-d Office ProjectManagement
%find_lang %{name} --all-name
%fdupes %{buildroot}
# fix non-executable-script
chmod a+rx %{buildroot}%{_datadir}/semantik/templates/pdflatex/wscript
chmod a+rx %{buildroot}%{_datadir}/semantik/templates/beamer/wscript
chmod a+rx %{buildroot}%{_datadir}/semantik/templates/waf
chmod a+rx %{buildroot}%{_datadir}/semantik/filters/*.py
chmod a+rx %{buildroot}%{_datadir}/semantik/sembind.py
# install man page
install -D -m644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%doc ChangeLog README
%{_bindir}/semantik*
%{_libdir}/lib*.so*
%{_datadir}/applications/semantik*.desktop
%{_datadir}/pixmaps/*.svg
%{_datadir}/icons/oxygen/*/apps/semantik*.png
%{_datadir}/icons/oxygen/scalable/apps/semantik*.svg
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/%{name}.1*
%{_datadir}/semantik
%{_kf5_kxmlguidir}/semantik*
%changelog