From b6c0395a4d0b2ff4b4489c6462ff915922ddab0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sat, 8 Nov 2014 16:13:32 +0100 Subject: RPM packaging: update tdeedu --- redhat/tdeedu/tdeedu-14.0.0.spec | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/redhat/tdeedu/tdeedu-14.0.0.spec b/redhat/tdeedu/tdeedu-14.0.0.spec index 7e5e65d39..bcf10a36c 100644 --- a/redhat/tdeedu/tdeedu-14.0.0.spec +++ b/redhat/tdeedu/tdeedu-14.0.0.spec @@ -67,11 +67,22 @@ BuildRequires: trinity-tdelibs-devel >= %{tde_version} BuildRequires: autoconf automake libtool m4 BuildRequires: desktop-file-utils +# SUSE desktop files utility +%if 0%{?suse_version} +BuildRequires: update-desktop-files +%endif + +%if 0%{?opensuse_bs} && 0%{?suse_version} +# for xdg-menu script +BuildRequires: brp-check-trinity +%endif + # PYTHON support BuildRequires: python-devel BuildRequires: python BuildRequires: gcc-c++ BuildRequires: desktop-file-utils +BuildRequires: fdupes # BOOST support BuildRequires: boost-devel @@ -1319,7 +1330,7 @@ Obsoletes: trinity-kdeedu-devel < %{version}-%{release} Provides: trinity-kdeedu-devel = %{version}-%{release} %description devel -%{summary}. +This package contains the development files for tdeedu. %files devel %defattr(-,root,root,-) @@ -1398,6 +1409,33 @@ export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} +# Updates applications categories for openSUSE +%if 0%{?suse_version} +%suse_update_desktop_file khangman Education Languages +%suse_update_desktop_file kiten Education Languages +%suse_update_desktop_file klatin Education Languages +%suse_update_desktop_file klettres Education Languages +%suse_update_desktop_file kverbos Education Languages +%suse_update_desktop_file kvoctrain Education Languages +%suse_update_desktop_file kwordquiz Education Languages +%suse_update_desktop_file kbruch Education Math +%suse_update_desktop_file kig Education Math +%suse_update_desktop_file kmplot Education Math +%suse_update_desktop_file kturtle Education Math +%suse_update_desktop_file kpercentage Education Math +%suse_update_desktop_file kalzium Education Chemistry +%suse_update_desktop_file kstars Education Astronomy +%suse_update_desktop_file keduca Education X-TDE-Edu-Teaching +%suse_update_desktop_file keducabuilder Education X-TDE-Edu-Teaching +%suse_update_desktop_file ktouch Education X-TDE-Edu-Teaching +%suse_update_desktop_file blinken Education X-TDE-Edu-Teaching +%suse_update_desktop_file kgeography Education X-TDE-Edu-Teaching +%suse_update_desktop_file kanagram Education Languages +%endif + +# Links duplicate files +%fdupes "%{?buildroot}%{tde_datadir}" + %clean %__rm -rf %{buildroot} -- cgit v1.2.1