semantik/semantik.spec

87 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package semantik
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: semantik
Summary: A mindmapping-like tool
Group: Productivity/Office/Other
Url: http://freehackers.org/~tnagy/kdissert.html
License: QPLv1 - THE Q PUBLIC LICENSE v. 1.0
Vendor: openSUSE-Education
Release: 1
Version: 0.6.6
BuildRequires: xorg-x11-devel libxml2-devel kdebase4-devel libkde4-devel ImageMagick-devel libqt4-x11
%define prefix /opt/kde3/
%define qtdir /usr/%_lib/qt4
%define qtincludes %prefix/include/Qt
%define qt4libs %_libdir
BuildRequires: python-devel libqt4-devel ocaml gcc-c++ update-desktop-files
BuildRequires: kdelibs3-devel fdupes
Source0: %name-%version.tar.bz2
Source1: %name-rpmlintrc
Patch1: semantik-0.6.6-desktop.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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, Kdissert can also help teachers,
decision maker, engineers and businessmen.
Author:
-------
Thomas Nagy
%prep
%setup -q
%patch1 -p1
%build
. /etc/opt/kde3/common_options
./waf configure --prefix=%prefix \
--qtdir=%qtdir \
--qtincludes=%qtincludes \
--qtlibs=%qt4libs
./waf build %(echo %_smp_mflags|sed -e 's/j/j /')
%install
. /etc/opt/kde3/common_options
./waf install --destdir="%buildroot"
install -m644 -D src/images/semantik-32.png %buildroot%_datadir/pixmaps/%name.png
find . -name "*desktop*" -exec rm -v {} \;
%suse_update_desktop_file -i %name Office ProjectManagement
%find_lang %name
%fdupes -s %buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %buildroot
%files -f %name.lang
%defattr(-,root,root)
%doc README LICENSE*
%{_libdir}/libnablah.so
%_bindir/semantik
%_datadir/pixmaps/%name.png
%_datadir/kde4/apps/semantik
%_datadir/icons/oxygen/*/actions/semantik*.png
%_datadir/applications/kde4/semantik.desktop
%_datadir/icons/hicolor/*/apps/semantik*.png
%changelog