# # spec file for package semantik # # Copyright (c) 2014 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/ # Name: semantik Version: 0.9.2 Release: 0 Summary: A mindmapping-like tool License: GPL-3.0 and GPL-2.0 Group: Productivity/Office/Other Url: http://code.google.com/p/semantik Source0: http://ftp.waf.io/pub/release/%{name}-%{version}.tar.bz2 Source1: %{name}.1 BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libQtWebKit-devel BuildRequires: libkde4-devel BuildRequires: libqt4-devel BuildRequires: ocaml BuildRequires: python-devel BuildRequires: update-desktop-files BuildRequires: pkgconfig(ImageMagick) BuildRequires: pkgconfig(libxml-2.0) BuildRoot: %{_tmppath}/%{name}-%{version}-build %kde4_runtime_requires %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} find . -name "*desktop*" -exec rm -v {} \; 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 %kde_post_install %find_lang %{name} %fdupes -s %{buildroot} # fix non-executable-script chmod a+rx %{buildroot}%{_kde4_appsdir}/semantik/templates/pdflatex/wscript chmod a+rx %{buildroot}%{_kde4_appsdir}/semantik/templates/beamer/wscript chmod a+rx %{buildroot}%{_kde4_appsdir}/semantik/templates/waf chmod a+rx %{buildroot}%{_kde4_appsdir}/semantik/filters/*.py chmod a+rx %{buildroot}%{_kde4_appsdir}/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 %defattr(-,root,root) %doc ChangeLog README %{_bindir}/semantik* %{_libdir}/lib*.so* %{_datadir}/kde4/apps/semantik %{_datadir}/applications/kde4/semantik*.desktop %{_datadir}/pixmaps/*.svg %{_datadir}/icons/oxygen/*/apps/semantik*.png %{_datadir}/mime/packages/%{name}.xml %{_mandir}/man1/%{name}.1* %changelog