semantik/semantik.spec
Dmitry Roshchin 80aa52bd22 Accepting request 143856 from home:babelworx:ldig:branches:Education
license update: GPL-3.0 and GPL-2.0
See src/templates/beamer/beamermindist - most of the files there are GPL-2.0 (only). Looks like aggregation

OBS-URL: https://build.opensuse.org/request/show/143856
OBS-URL: https://build.opensuse.org/package/show/Education/semantik?expand=0&rev=6
2012-12-03 11:57:25 +00:00

96 lines
3.0 KiB
RPMSpec

#
# spec file for package semantik
#
# Copyright (c) 2012 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.8.3
Release: 0
License: GPL-3.0 and GPL-2.0
Summary: A mindmapping-like tool
Url: http://www.freehackers.org/~tnagy/semantik.html
Group: Productivity/Office/Other
Source0: http://semantik.googlecode.com/files/%{name}-%{version}.tar.bz2
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 {} \;
%suse_update_desktop_file -i %{name} 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
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc ChangeLog README
%{_libdir}/libnablah.so
%{_bindir}/semantik
%{_datadir}/kde4/apps/semantik
%{_datadir}/applications/kde4/semantik.desktop
%{_datadir}/icons/hicolor/*/apps/semantik*.png
%{_datadir}/icons/oxygen/*/actions/semantik*.png
%changelog