File ksociograma.spec of Package ksociograma
#
# spec file for package ksociograma
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: ksociograma
Summary: Technical application for teachers
Version: 2.0.1
Release: 1
License: GPL-2.0
Group: Productivity/Scientific/Other
Url: http://ksociograma.software-libre.org/
BuildRequires: kdelibs3-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
Source: %name-%{version}.tar.bz2
Source1: ksociograma-2.0.1-german-help.tar.bz2
Patch1: ksociograma-2.0.1-desktop.patch
Patch2: ksociograma-2.0.1-german-translation.patch
Patch3: ksociograma-2.0.1-german-help.patch
Patch4: ksociograma-2.0.1-include.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define kdeprefix /opt/kde3
%description
KSociograma is a technical software for teachers. It allows you
to make sociograms, a 2-D network sociological diagram, for a
group of students. It is very useful to know the group and prevention.
This version is a stable version, but only with traslations to english
and spanish.
Author:
-------
Manuel Pérez López <mapelo@ieduca.net>
%prep
%setup -q -a1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
. /etc/opt/kde3/common_options
update_admin
%build
. /etc/opt/kde3/common_options
%configure $configkde
make %{?jobs:-j%jobs}
%install
. /etc/opt/kde3/common_options
%__make $INSTALL_TARGET DESTDIR=%{buildroot}
%if 0%{?suse_version}
%suse_update_desktop_file_kde3 -n %{name}
%endif
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%find_lang %name
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{kdeprefix}/bin/
%{kdeprefix}/share/apps/
%{kdeprefix}/share/applications/kde/ksociograma.desktop
%{kdeprefix}/share/icons/hicolor/*/apps/ksociograma.png
%changelog