RPM: update spec files for opensuse TW on OBS

pull/3/head
François Andriot 7 years ago
parent ffaa912975
commit a5fdb0ea69

@ -70,7 +70,7 @@ Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
Source1: %{name}-rpmlintrc Source1: trinity-koffice-rpmlintrc
# BuildRequires: world-devel ;) # BuildRequires: world-devel ;)
BuildRequires: trinity-tdelibs-devel >= %{tde_version} BuildRequires: trinity-tdelibs-devel >= %{tde_version}
@ -115,6 +115,7 @@ BuildRequires: readline-devel
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: libbz2-devel BuildRequires: libbz2-devel
BuildRequires: liblcms-devel
BuildRequires: liblcms2-devel BuildRequires: liblcms2-devel
%else %else
BuildRequires: bzip2-devel BuildRequires: bzip2-devel

@ -147,6 +147,7 @@ export PATH="%{tde_bindir}:${PATH}"
# Unwanted files # Unwanted files
%__rm -f %{?buildroot}%{tde_libdir}/libkpilot.so %__rm -f %{?buildroot}%{tde_libdir}/libkpilot.so
%__rm -fr %{?buildroot}%{tde_tdeincludedir}/kpilot/
# Updates applications categories for openSUSE # Updates applications categories for openSUSE
%if 0%{?suse_version} %if 0%{?suse_version}
@ -155,6 +156,7 @@ export PATH="%{tde_bindir}:${PATH}"
%endif %endif
%clean %clean
%__rm -rf %{buildroot} %__rm -rf %{buildroot}
@ -164,7 +166,6 @@ export PATH="%{tde_bindir}:${PATH}"
%{tde_bindir}/kpalmdoc %{tde_bindir}/kpalmdoc
%{tde_bindir}/kpilot %{tde_bindir}/kpilot
%{tde_bindir}/kpilotDaemon %{tde_bindir}/kpilotDaemon
%{tde_tdeincludedir}/kpilot
%{tde_libdir}/libkpilot.la %{tde_libdir}/libkpilot.la
%{tde_libdir}/libkpilot.so.0 %{tde_libdir}/libkpilot.so.0
%{tde_libdir}/libkpilot.so.0.0.0 %{tde_libdir}/libkpilot.so.0.0.0

@ -68,7 +68,7 @@ BuildRequires: libtool
BuildRequires: libqalculate-devel >= 0.9.6 BuildRequires: libqalculate-devel >= 0.9.6
%if 0%{?suse_version} == 1330 || 0%{?suse_version} == 1500 %if 0%{?suse_version} == 1330 || 0%{?suse_version} >= 1500
BuildRequires: cln-devel BuildRequires: cln-devel
%endif %endif

@ -60,6 +60,7 @@ Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0 BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0
BuildRequires: trinity-filesystem >= %{tde_version} BuildRequires: trinity-filesystem >= %{tde_version}

@ -1281,6 +1281,11 @@ things that are possible with TQt3.
%__sed -i "src/kernel/ntqstyle.h" -e "s|#ifdef ENABLE_T*QSTYLECONTROLELEMENTDATA_SLOW_COPY|#if 1|" %__sed -i "src/kernel/ntqstyle.h" -e "s|#ifdef ENABLE_T*QSTYLECONTROLELEMENTDATA_SLOW_COPY|#if 1|"
%endif %endif
%if 0%{?suse_version}
echo "suse_version = %{?suse_version}"
echo "sle_version = %{?sle_version}"
%endif
# Add missing sqlite3 header # Add missing sqlite3 header
%__ln_s ../src/sql/drivers/sqlite3/qsql_sqlite3.h include/qsql_sqlite3.h %__ln_s ../src/sql/drivers/sqlite3/qsql_sqlite3.h include/qsql_sqlite3.h

@ -1403,6 +1403,9 @@ TDE applications, particularly those in the TDE base module.
%{tde_libdir}/libtdeinit_kxkb.la %{tde_libdir}/libtdeinit_kxkb.la
%{tde_libdir}/libtdeinit_kxkb.so %{tde_libdir}/libtdeinit_kxkb.so
%{tde_libdir}/libkhotkeys_shared.so.* %{tde_libdir}/libkhotkeys_shared.so.*
%if "%{?tde_version}" == "14.1.0"
%{tde_tdeappdir}/kdcop.desktop
%endif
%{tde_tdeappdir}/keyboard.desktop %{tde_tdeappdir}/keyboard.desktop
%{tde_tdeappdir}/keyboard_layout.desktop %{tde_tdeappdir}/keyboard_layout.desktop
%{tde_tdeappdir}/khotkeys.desktop %{tde_tdeappdir}/khotkeys.desktop

@ -46,6 +46,11 @@
# Avoids relinking, which breaks consolehelper # Avoids relinking, which breaks consolehelper
%define dont_relink 1 %define dont_relink 1
%if "%{?tde_version}" == "14.0.4"
%define with_aim 1
%else
%define with_aim 0
%endif
Name: trinity-%{tde_pkg} Name: trinity-%{tde_pkg}
Summary: Trinity Desktop Environment - Network Applications Summary: Trinity Desktop Environment - Network Applications
@ -629,13 +634,8 @@ Support for more IM protocols can be added through a plugin system.
%{tde_datadir}/icons/hicolor/scalable/apps/kopete2.svgz %{tde_datadir}/icons/hicolor/scalable/apps/kopete2.svgz
%{tde_datadir}/icons/crystalsvg/*/actions/newmessage.mng %{tde_datadir}/icons/crystalsvg/*/actions/newmessage.mng
%{tde_datadir}/icons/hicolor/*/actions/newmessage.mng %{tde_datadir}/icons/hicolor/*/actions/newmessage.mng
%{tde_datadir}/icons/crystalsvg/*/apps/aim_protocol.png
%{tde_datadir}/icons/crystalsvg/*/apps/icq_protocol.png %{tde_datadir}/icons/crystalsvg/*/apps/icq_protocol.png
%{tde_datadir}/icons/crystalsvg/*/apps/irc_protocol.png %{tde_datadir}/icons/crystalsvg/*/apps/irc_protocol.png
%{tde_datadir}/icons/crystalsvg/*/actions/aim_away.png
%{tde_datadir}/icons/crystalsvg/*/actions/aim_connecting.mng
%{tde_datadir}/icons/crystalsvg/*/actions/aim_offline.png
%{tde_datadir}/icons/crystalsvg/*/actions/aim_online.png
%{tde_datadir}/icons/crystalsvg/*/actions/icq_away.png %{tde_datadir}/icons/crystalsvg/*/actions/icq_away.png
%{tde_datadir}/icons/crystalsvg/*/actions/icq_connecting.mng %{tde_datadir}/icons/crystalsvg/*/actions/icq_connecting.mng
%{tde_datadir}/icons/crystalsvg/*/actions/icq_dnd.png %{tde_datadir}/icons/crystalsvg/*/actions/icq_dnd.png
@ -653,10 +653,6 @@ Support for more IM protocols can be added through a plugin system.
%{tde_datadir}/icons/crystalsvg/*/actions/irc_op.png %{tde_datadir}/icons/crystalsvg/*/actions/irc_op.png
%{tde_datadir}/icons/crystalsvg/*/actions/irc_server.png %{tde_datadir}/icons/crystalsvg/*/actions/irc_server.png
%{tde_datadir}/icons/crystalsvg/*/actions/irc_voice.png %{tde_datadir}/icons/crystalsvg/*/actions/irc_voice.png
%{tde_datadir}/icons/hicolor/*/actions/aim_away.png
%{tde_datadir}/icons/hicolor/*/actions/aim_connecting.mng
%{tde_datadir}/icons/hicolor/*/actions/aim_offline.png
%{tde_datadir}/icons/hicolor/*/actions/aim_online.png
%{tde_datadir}/icons/hicolor/*/actions/icq_away.png %{tde_datadir}/icons/hicolor/*/actions/icq_away.png
%{tde_datadir}/icons/hicolor/*/actions/icq_connecting.mng %{tde_datadir}/icons/hicolor/*/actions/icq_connecting.mng
%{tde_datadir}/icons/hicolor/*/actions/icq_dnd.png %{tde_datadir}/icons/hicolor/*/actions/icq_dnd.png
@ -666,11 +662,9 @@ Support for more IM protocols can be added through a plugin system.
%{tde_datadir}/icons/hicolor/*/actions/icq_occupied.png %{tde_datadir}/icons/hicolor/*/actions/icq_occupied.png
%{tde_datadir}/icons/hicolor/*/actions/icq_offline.png %{tde_datadir}/icons/hicolor/*/actions/icq_offline.png
%{tde_datadir}/icons/hicolor/*/actions/icq_online.png %{tde_datadir}/icons/hicolor/*/actions/icq_online.png
%{tde_datadir}/icons/hicolor/*/apps/aim_protocol.png
%{tde_datadir}/icons/hicolor/*/apps/icq_protocol.png %{tde_datadir}/icons/hicolor/*/apps/icq_protocol.png
%{tde_datadir}/mimelnk/application/x-icq.desktop %{tde_datadir}/mimelnk/application/x-icq.desktop
%{tde_datadir}/mimelnk/application/x-kopete-emoticons.desktop %{tde_datadir}/mimelnk/application/x-kopete-emoticons.desktop
%{tde_datadir}/services/aim.protocol
%{tde_datadir}/services/chatwindow.desktop %{tde_datadir}/services/chatwindow.desktop
%{tde_datadir}/services/emailwindow.desktop %{tde_datadir}/services/emailwindow.desktop
%{tde_datadir}/services/jabberdisco.protocol %{tde_datadir}/services/jabberdisco.protocol
@ -690,7 +684,20 @@ Support for more IM protocols can be added through a plugin system.
%{tde_datadir}/config.kcfg/motionawayconfig.kcfg %{tde_datadir}/config.kcfg/motionawayconfig.kcfg
# smpp plugin for kopete # smpp plugin for kopete
%{tde_datadir}/config.kcfg/smpppdcs.kcfg %{tde_datadir}/config.kcfg/smpppdcs.kcfg
# aim support is deprecated in TDE 14.1.0
%if 0%{?with_aim}
%{tde_datadir}/icons/crystalsvg/*/apps/aim_protocol.png
%{tde_datadir}/icons/crystalsvg/*/actions/aim_away.png
%{tde_datadir}/icons/crystalsvg/*/actions/aim_connecting.mng
%{tde_datadir}/icons/crystalsvg/*/actions/aim_offline.png
%{tde_datadir}/icons/crystalsvg/*/actions/aim_online.png
%{tde_datadir}/icons/hicolor/*/actions/aim_away.png
%{tde_datadir}/icons/hicolor/*/actions/aim_connecting.mng
%{tde_datadir}/icons/hicolor/*/actions/aim_offline.png
%{tde_datadir}/icons/hicolor/*/actions/aim_online.png
%{tde_datadir}/icons/hicolor/*/apps/aim_protocol.png
%{tde_datadir}/services/aim.protocol
%endif
########## ##########
@ -777,6 +784,9 @@ track of the time spent online for you.
%{tde_datadir}/apps/kppp/ %{tde_datadir}/apps/kppp/
%{tde_datadir}/icons/hicolor/*/apps/kppp.png %{tde_datadir}/icons/hicolor/*/apps/kppp.png
%{tde_tdedocdir}/HTML/en/kppp/ %{tde_tdedocdir}/HTML/en/kppp/
%if 0%{?suse_version} >= 1500
%dir %{_sysconfdir}/ppp
%endif
%dir %{_sysconfdir}/ppp/peers %dir %{_sysconfdir}/ppp/peers
%{_sysconfdir}/ppp/peers/kppp-options %{_sysconfdir}/ppp/peers/kppp-options
@ -887,6 +897,7 @@ Summary: Talk daemon for Trinity
Group: Applications/Internet Group: Applications/Internet
Requires: trinity-kcontrol >= %{tde_version} Requires: trinity-kcontrol >= %{tde_version}
Requires: trinity-tdebase-data >= %{tde_version} Requires: trinity-tdebase-data >= %{tde_version}
Requires: xinetd
%description -n trinity-ktalkd %description -n trinity-ktalkd
KTalkd is an enhanced talk daemon - a program to handle incoming talk KTalkd is an enhanced talk daemon - a program to handle incoming talk
@ -904,6 +915,7 @@ and shouldn't be run on a multi-user machine.
%{tde_datadir}/icons/crystalsvg/*/apps/ktalkd.png %{tde_datadir}/icons/crystalsvg/*/apps/ktalkd.png
%{tde_datadir}/icons/hicolor/*/apps/ktalkd.png %{tde_datadir}/icons/hicolor/*/apps/ktalkd.png
%{tde_datadir}/sounds/ktalkd.wav %{tde_datadir}/sounds/ktalkd.wav
%dir %{_sysconfdir}/xinetd.d
%config(noreplace) %{_sysconfdir}/xinetd.d/ktalk %config(noreplace) %{_sysconfdir}/xinetd.d/ktalk
%{tde_tdedocdir}/HTML/en/kcontrol/kcmtalkd %{tde_tdedocdir}/HTML/en/kcontrol/kcmtalkd
%{tde_tdedocdir}/HTML/en/ktalkd %{tde_tdedocdir}/HTML/en/ktalkd

@ -61,6 +61,7 @@ Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz
Source1: klaptop_acpi_helper.pam Source1: klaptop_acpi_helper.pam
Source2: klaptop_acpi_helper.console Source2: klaptop_acpi_helper.console
Source3: kcmlaptoprc Source3: kcmlaptoprc
Source4: %{name}-rpmlintrc
Obsoletes: trinity-kdeutils < %{version}-%{release} Obsoletes: trinity-kdeutils < %{version}-%{release}
Provides: trinity-kdeutils = %{version}-%{release} Provides: trinity-kdeutils = %{version}-%{release}

Loading…
Cancel
Save