parent
6253ed4f81
commit
562049cd69
@ -1,208 +0,0 @@
|
||||
#
|
||||
# spec file for package basket (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.1
|
||||
%endif
|
||||
%define tde_pkg basket
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_confdir %{_sysconfdir}/trinity
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 1.0.3.1
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: Taking care of your ideas.
|
||||
Group: Applications/Utilities
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdepim-devel >= %{tde_version}
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gpgme-devel
|
||||
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: libtool
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
%description
|
||||
This application is mainly an all-purpose notes taker. It provide several baskets where
|
||||
to drop every sort of items: text, rich text, links, images, sounds, files, colors,
|
||||
application launcher... Objects can be edited, copied, dragged... So, you can arrange
|
||||
them as you want ! This application can be used to quickly drop web objects (link, text,
|
||||
images...) or notes, as well as to free your clutered desktop (if any). It is also useful
|
||||
to collect informations for a report. Those data can be shared with co-workers by exporting
|
||||
baskets to HTML.
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
export kde_confdir="%{tde_confdir}"
|
||||
|
||||
# Warning: --enable-final causes FTBFS
|
||||
%configure \
|
||||
--prefix=%{tde_prefix} \
|
||||
--exec-prefix=%{tde_prefix} \
|
||||
--bindir=%{tde_bindir} \
|
||||
--includedir=%{tde_tdeincludedir} \
|
||||
--libdir=%{tde_libdir} \
|
||||
--datadir=%{tde_datadir} \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--enable-new-ldflags \
|
||||
--disable-final \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility
|
||||
|
||||
%__make %{?_smp_mflags} || %__make
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
%find_lang %{tde_pkg}
|
||||
|
||||
# Updates applications categories for openSUSE
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -G "Extended Clipboard" basket DesktopUtility
|
||||
%endif
|
||||
|
||||
# Apps that should stay in TDE
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
for f in crystalsvg ; do
|
||||
touch --no-create %{tde_datadir}/icons/${f} || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
|
||||
done
|
||||
/sbin/ldconfig
|
||||
update-desktop-database %{tde_tdeappdir} -q &> /dev/null
|
||||
|
||||
%postun
|
||||
for f in crystalsvg ; do
|
||||
touch --no-create %{tde_datadir}/icons/${f} || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
|
||||
done
|
||||
/sbin/ldconfig
|
||||
update-desktop-database %{tde_tdeappdir} -q &> /dev/null
|
||||
|
||||
|
||||
%files -f %{tde_pkg}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{tde_bindir}/basket
|
||||
%{tde_tdeappdir}/basket.desktop
|
||||
%{tde_datadir}/apps/basket/
|
||||
%dir %{tde_datadir}/apps/kontact/ksettingsdialog
|
||||
%{tde_datadir}/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg
|
||||
%{tde_libdir}/libbasketcommon.la
|
||||
%{tde_libdir}/libbasketcommon.so
|
||||
%{tde_tdelibdir}/basketthumbcreator.la
|
||||
%{tde_tdelibdir}/basketthumbcreator.so
|
||||
%{tde_tdelibdir}/kcm_basket.la
|
||||
%{tde_tdelibdir}/kcm_basket.so
|
||||
%{tde_tdelibdir}/libbasketpart.la
|
||||
%{tde_tdelibdir}/libbasketpart.so
|
||||
%{tde_tdelibdir}/libkontact_basket.la
|
||||
%{tde_tdelibdir}/libkontact_basket.so
|
||||
%{tde_confdir}/magic/basket.magic
|
||||
%{tde_datadir}/icons/crystalsvg/*/*/*
|
||||
%{tde_datadir}/mimelnk/application/x-basket-archive.desktop
|
||||
%{tde_datadir}/mimelnk/application/x-basket-template.desktop
|
||||
%{tde_datadir}/services/basket_config_apps.desktop
|
||||
%{tde_datadir}/services/basket_config_baskets.desktop
|
||||
#%{tde_datadir}/services/basket_config_features.desktop
|
||||
%{tde_datadir}/services/basket_config_general.desktop
|
||||
%{tde_datadir}/services/basket_config_new_notes.desktop
|
||||
#%{tde_datadir}/services/basket_config_notes.desktop
|
||||
%{tde_datadir}/services/basket_config_notes_appearance.desktop
|
||||
%{tde_datadir}/services/basket_part.desktop
|
||||
%{tde_datadir}/services/basketthumbcreator.desktop
|
||||
%{tde_datadir}/services/kontact/basket.desktop
|
||||
%{tde_datadir}/services/kontact/basket_v4.desktop
|
||||
%{tde_tdedocdir}/HTML/en/basket/
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 29 2013 Francois Andriot <francois.andriot@free.fr> - 2:1.0.3.1-1
|
||||
- Initial release for TDE 14.0.0
|
@ -1,26 +0,0 @@
|
||||
diff --git a/bibletime/backend/cswordbackend.cpp b/bibletime/backend/cswordbackend.cpp
|
||||
index 1c218b3..dda6275 100644
|
||||
--- a/bibletime/backend/cswordbackend.cpp
|
||||
+++ b/bibletime/backend/cswordbackend.cpp
|
||||
@@ -251,7 +251,7 @@ const bool CSwordBackend::shutdownModules() {
|
||||
|
||||
/** Returns true if the given option is enabled. */
|
||||
const bool CSwordBackend::isOptionEnabled( const CSwordModuleInfo::FilterTypes type) {
|
||||
- return (getGlobalOption( optionName(type).latin1() ) == "On");
|
||||
+ return (strcmp(getGlobalOption( optionName(type).latin1() ), "On") == 0);
|
||||
}
|
||||
|
||||
/** Sets the given options enabled or disabled depending on the second parameter. */
|
||||
diff --git a/bibletime/frontend/cdragdropmgr.cpp b/bibletime/frontend/cdragdropmgr.cpp
|
||||
index 52d012f..4f8c4fe 100644
|
||||
--- a/bibletime/frontend/cdragdropmgr.cpp
|
||||
+++ b/bibletime/frontend/cdragdropmgr.cpp
|
||||
@@ -36,7 +36,7 @@ bool CDragDropMgr::BTDrag::canDecode( const TQMimeSource * mime ) {
|
||||
};
|
||||
|
||||
bool CDragDropMgr::BTDrag::provides( const char* type ) const {
|
||||
- return (type == "BibleTime/DND"); //return only true if the type is BibleTime/DND
|
||||
+ return (strcmp(type, "BibleTime/DND") == 0); //return only true if the type is BibleTime/DND
|
||||
};
|
||||
|
||||
const char* CDragDropMgr::BTDrag::format( int i ) const {
|
@ -1,185 +0,0 @@
|
||||
#
|
||||
# spec file for package bibletime (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.1
|
||||
%endif
|
||||
%define tde_pkg bibletime
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 1.6.6.0
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: A bible study tool for Trinity
|
||||
Group: Applications/Utilities
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: libtool
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
|
||||
# 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
|
||||
|
||||
# BOOST support
|
||||
BuildRequires: boost-devel
|
||||
|
||||
# Requires: clucene
|
||||
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 6
|
||||
BuildRequires: clucene-core-devel
|
||||
%endif
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}clucene-devel
|
||||
%endif
|
||||
|
||||
# Requires: sword
|
||||
BuildRequires: sword-devel
|
||||
Requires: sword
|
||||
|
||||
%description
|
||||
BibleTime is a free and easy to use bible study tool for UNIX systems.
|
||||
It requires a working TDE environment and the SWORD library.
|
||||
BibleTime provides easy handling of digitized texts (Bibles, commentaries
|
||||
and lexicons) and powerful features to work with these texts (search in
|
||||
texts, write own notes, save, print etc.).
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
|
||||
|
||||
%configure \
|
||||
--prefix=%{tde_prefix} \
|
||||
--exec-prefix=%{tde_prefix} \
|
||||
--bindir=%{tde_bindir} \
|
||||
--libdir=%{tde_libdir} \
|
||||
--datadir=%{tde_datadir} \
|
||||
--includedir=%{tde_tdeincludedir} \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--enable-new-ldflags \
|
||||
--enable-final \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility
|
||||
|
||||
# Not SMP safe !
|
||||
%__make -C bibletime/frontend
|
||||
|
||||
# SMP safe !
|
||||
%__make %{?_smp_mflags} || %__make
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
%__chmod 644 %{buildroot}%{tde_datadir}/apps/bibletime/pics/*
|
||||
%__chmod 644 %{buildroot}%{tde_datadir}/apps/bibletime/bibletimeui.rc
|
||||
%__chmod 644 %{buildroot}%{tde_datadir}/apps/bibletime/tips
|
||||
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_datadir}/applications/bibletime.desktop"
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
update-desktop-database %{tde_datadir}/applications -q &> /dev/null
|
||||
|
||||
|
||||
%postun
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
update-desktop-database %{tde_datadir}/applications -q &> /dev/null
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_bindir}/bibletime
|
||||
%{tde_tdeincludedir}/bibletimeinterface.h
|
||||
%{tde_datadir}/applications/bibletime.desktop
|
||||
%{tde_datadir}/apps/bibletime/
|
||||
%{tde_datadir}/icons/hicolor/*/*/*.png
|
||||
%{tde_tdedocdir}/HTML/en/bibletime/
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:1.6.6.0-1
|
||||
- Initial release for TDE 14.0.0
|
@ -1,29 +0,0 @@
|
||||
--- trinity-k9copy-14.0.0~pre130+76443cbb/src/Makefile.am.ftbfs 2013-07-21 09:56:44.000000000 +0200
|
||||
+++ trinity-k9copy-14.0.0~pre130+76443cbb/src/Makefile.am 2013-08-02 11:00:55.291717387 +0200
|
||||
@@ -35,7 +35,7 @@
|
||||
$(top_builddir)/k9author/libk9author.la $(top_builddir)/k9decmpeg/libk9decmpeg.la \
|
||||
$(top_builddir)/k9devices/libk9devices.la $(top_builddir)/k9vamps/libk9vamps.la \
|
||||
$(top_builddir)/libdvdnav/libk9dvdnav.la $(top_builddir)/libk9copy/libk9copy.la \
|
||||
- $(LIB_TDEUI) -ltdemdi $(LIBDL) -ldvdread
|
||||
+ $(LIB_TDEUI) -ltdemdi $(LIBDL) -ldvdread -lk3b -lk3bdevice
|
||||
|
||||
# this is where the desktop file will go
|
||||
shelldesktopdir = $(kde_appsdir)/Utilities
|
||||
--- trinity-k9copy-3.5.13.2/k9decmpeg/mpeg2_internal.h.ORI 2013-07-28 19:42:30.331485057 +0200
|
||||
+++ trinity-k9copy-3.5.13.2/k9decmpeg/mpeg2_internal.h 2013-07-28 19:43:09.713519110 +0200
|
||||
@@ -21,6 +21,9 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
+#ifndef __MPEG2_INTERNAL_H__
|
||||
+#define __MPEG2_INTERNAL_H__
|
||||
+
|
||||
/* macroblock modes */
|
||||
#define MACROBLOCK_INTRA 1
|
||||
#define MACROBLOCK_PATTERN 2
|
||||
@@ -298,3 +301,5 @@
|
||||
extern mpeg2_mc_t mpeg2_mc_altivec;
|
||||
extern mpeg2_mc_t mpeg2_mc_alpha;
|
||||
extern mpeg2_mc_t mpeg2_mc_vis;
|
||||
+
|
||||
+#endif // __MPEG2_INTERNAL_H__
|
@ -1,177 +0,0 @@
|
||||
#
|
||||
# spec file for package k9copy (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.0
|
||||
%endif
|
||||
%define tde_pkg k9copy
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_appdir %{tde_datadir}/applications
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 1.2.3
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: DVD backup tool for Trinity
|
||||
Group: Applications/Utilities
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: trinity-k3b-devel
|
||||
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
# 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
|
||||
|
||||
# Warning: the target distribution must have ffmpeg !
|
||||
BuildRequires: ffmpeg-devel
|
||||
Requires: ffmpeg
|
||||
|
||||
|
||||
%description
|
||||
k9copy is a tabbed tool that allows to copy of one or more titles from a DVD9
|
||||
to a DVD5, in thesame way than DVDShrink for Microsoft Windows (R).
|
||||
This is the Trinity version.
|
||||
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
# Removes internal dvdread headers
|
||||
%__rm -rf dvdread
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
|
||||
# FFMPEG ...
|
||||
if [ -d /usr/include/ffmpeg ]; then
|
||||
export CXXFLAGS="${RPM_OPT_FLAGS} -I/usr/include/ffmpeg"
|
||||
fi
|
||||
|
||||
# NOTICE: --enable-final causes FTBFS !
|
||||
%configure \
|
||||
--prefix=%{tde_prefix} \
|
||||
--exec-prefix=%{tde_prefix} \
|
||||
--bindir=%{tde_bindir} \
|
||||
--datadir=%{tde_datadir} \
|
||||
--includedir=%{tde_tdeincludedir} \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--disable-final \
|
||||
--enable-new-ldflags \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility \
|
||||
\
|
||||
--enable-k3bdevices
|
||||
|
||||
%__make %{?_smp_mflags} || %__make
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
%find_lang %{tde_pkg}
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
update-desktop-database %{tde_appdir} &> /dev/null
|
||||
|
||||
%postun
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
update-desktop-database %{tde_appdir} &> /dev/null
|
||||
|
||||
|
||||
%files -f %{tde_pkg}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{tde_bindir}/k9copy
|
||||
%{tde_tdeappdir}/k9copy.desktop
|
||||
%{tde_datadir}/apps/k9copy/
|
||||
%{tde_datadir}/apps/konqueror/servicemenus/k9copy_open.desktop
|
||||
%lang(en) %{tde_tdedocdir}/HTML/en/k9copy/
|
||||
%{tde_datadir}/icons/hicolor/*/apps/k9copy.png
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 29 2013 Francois Andriot <francois.andriot@free.fr> - 2:1.2.3-1
|
||||
- Initial release for TDE 14.0.0
|
@ -1,13 +0,0 @@
|
||||
diff --git a/src/gstplayer.cpp b/src/gstplayer.cpp
|
||||
index c4bf580..0585ac9 100644
|
||||
--- a/src/gstplayer.cpp
|
||||
+++ b/src/gstplayer.cpp
|
||||
@@ -750,7 +750,7 @@ void KGStreamerPlayer::seek (int val /*offset_in_deciseconds*/) {
|
||||
void KGStreamerPlayer::volume (int val) {
|
||||
//fprintf (stderr, "position %d\n", val);
|
||||
if (gst_elm_play)
|
||||
- g_object_set (G_OBJECT (gst_elm_play), "volume", 1.0*val/100, 0L);
|
||||
+ g_object_set (G_OBJECT (gst_elm_play), "volume", 1.0*val/100, NULL);
|
||||
}
|
||||
|
||||
void KGStreamerPlayer::updatePosition () {
|
@ -1,325 +0,0 @@
|
||||
#
|
||||
# spec file for package kmplayer (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.0
|
||||
%endif
|
||||
%define tde_pkg kmplayer
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_confdir %{_sysconfdir}/trinity
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 0.10.0c
|
||||
Release: %{?!preversion:8}%{?preversion:7_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: Media player for Trinity
|
||||
Group: Applications/Multimedia
|
||||
URL: http://www.trinitydesktop.org/
|
||||
#URL: http://kmplayer.kde.org
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: libtool
|
||||
|
||||
# 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
|
||||
|
||||
# DBUS support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||||
BuildRequires: trinity-dbus-tqt-devel >= %{tde_version}
|
||||
%endif
|
||||
|
||||
# GSTREAMER support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%if 0%{?pclinuxos}
|
||||
BuildRequires: libgstreamer0.10-devel
|
||||
%else
|
||||
BuildRequires: %{_lib}gstreamer0.10-devel
|
||||
%endif
|
||||
BuildRequires: %{_lib}gstreamer-plugins-base0.10-devel
|
||||
%endif
|
||||
%if 0%{?rhel} == 4
|
||||
BuildRequires: gstreamer-devel
|
||||
#BuildRequires: gstreamer-plugins-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora}
|
||||
BuildRequires: gstreamer-devel
|
||||
BuildRequires: gstreamer-plugins-base-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: gstreamer-0_10-devel
|
||||
BuildRequires: gstreamer-0_10-plugins-base-devel
|
||||
%endif
|
||||
|
||||
# XINE support
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 4 || 0%{?suse_version} || 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%define with_xine 1
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%if 0%{?pclinuxos}
|
||||
BuildRequires: %{_lib}xine-devel
|
||||
%else
|
||||
BuildRequires: %{_lib}xine1.2-devel
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
BuildRequires: xine-lib-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: libxine-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# X11 stuff
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: libxt-devel
|
||||
BuildRequires: libxv-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1210
|
||||
BuildRequires: libXv-devel
|
||||
%endif
|
||||
%if 0%{?rhel} == 4
|
||||
BuildRequires: xorg-x11-devel
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1140
|
||||
BuildRequires: xorg-x11-libXv-devel
|
||||
%endif
|
||||
|
||||
# GTK2 stuff
|
||||
BuildRequires: gtk2-devel
|
||||
|
||||
# DBUS stuff
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: dbus-1-glib-devel
|
||||
%else
|
||||
BuildRequires: dbus-glib-devel
|
||||
%endif
|
||||
|
||||
Requires: %{name}-base = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
||||
|
||||
%description
|
||||
A basic audio/video viewer application for Trinity.
|
||||
|
||||
KMPlayer can:
|
||||
* play DVD (DVDNav only with the Xine player)
|
||||
* play VCD
|
||||
* let the backend players play from a pipe (read from stdin)
|
||||
* play from a TV device (experimental)
|
||||
* show backend player's console output
|
||||
* launch ffserver (only 0.4.8 works) when viewing from a v4l device
|
||||
* DCOP KMediaPlayer interface support
|
||||
* VDR viewer frontend (with *kxvplayer), configure VDR keys with standard TDE
|
||||
shortcut configure window
|
||||
* Lots of configurable shortcuts. Highly recommended for the VDR keys
|
||||
(if you have VDR) and volume increase/decrease
|
||||
|
||||
%post
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%files -f %{tde_pkg}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL README TODO kmplayer.lsm
|
||||
%{tde_bindir}/kmplayer
|
||||
%{tde_bindir}/knpplayer
|
||||
%{tde_bindir}/kxvplayer
|
||||
%{tde_libdir}/libtdeinit_kmplayer.la
|
||||
%{tde_libdir}/libtdeinit_kmplayer.so
|
||||
%{tde_tdelibdir}/kmplayer.la
|
||||
%{tde_tdelibdir}/kmplayer.so
|
||||
%{tde_tdeappdir}/kmplayer.desktop
|
||||
%exclude %{tde_datadir}/apps/kmplayer/bookmarks.xml
|
||||
%exclude %{tde_datadir}/apps/kmplayer/kmplayerpartui.rc
|
||||
%exclude %{tde_datadir}/apps/kmplayer/noise.gif
|
||||
%exclude %{tde_datadir}/apps/kmplayer/pluginsinfo
|
||||
%{tde_datadir}/apps/kmplayer/
|
||||
|
||||
##########
|
||||
|
||||
%package base
|
||||
Group: Applications/Multimedia
|
||||
Summary: Base files for KMPlayer [Trinity]
|
||||
|
||||
%description base
|
||||
Core files needed for KMPlayer.
|
||||
|
||||
%post base
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%postun base
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%files base
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_libdir}/libkmplayercommon.la
|
||||
%{tde_libdir}/libkmplayercommon.so
|
||||
%{tde_bindir}/kgstplayer
|
||||
%{tde_bindir}/kxineplayer
|
||||
%{tde_confdir}/kmplayerrc
|
||||
%{tde_datadir}/apps/kmplayer/bookmarks.xml
|
||||
%{tde_datadir}/apps/kmplayer/noise.gif
|
||||
%{tde_datadir}/icons/hicolor/*/apps/kmplayer.png
|
||||
%{tde_datadir}/icons/hicolor/*/apps/kmplayer.svgz
|
||||
%{tde_datadir}/mimelnk/application/x-kmplayer.desktop
|
||||
%{tde_datadir}/mimelnk/video/x-ms-wmp.desktop
|
||||
|
||||
##########
|
||||
|
||||
%package konq-plugins
|
||||
Group: Applications/Multimedia
|
||||
Requires: %{name}-base = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: trinity-konqueror >= %{tde_version}
|
||||
Summary: KMPlayer plugin for KHTML/Konqueror [Trinity]
|
||||
|
||||
%description konq-plugins
|
||||
This plugin enables audio/video playback inside konqueror, using Xine (with
|
||||
*kxineplayer) or GStreamer (with *kgstplayer), such as movie trailers, web
|
||||
tv or radio. It mimics QuickTime, MS Media Player and RealPlayer plugin
|
||||
browser plugins.
|
||||
|
||||
%files konq-plugins
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_tdelibdir}/libkmplayerpart.la
|
||||
%{tde_tdelibdir}/libkmplayerpart.so
|
||||
%{tde_datadir}/apps/kmplayer/kmplayerpartui.rc
|
||||
%{tde_datadir}/apps/kmplayer/pluginsinfo
|
||||
%{tde_datadir}/services/kmplayer_part.desktop
|
||||
|
||||
##########
|
||||
|
||||
%package doc
|
||||
Group: Applications/Multimedia
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Summary: Handbook for KMPlayer [Trinity]
|
||||
|
||||
%description doc
|
||||
Documention for KMPlayer, a basic audio/video viewer application for TDE.
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_tdedocdir}/HTML/*/kmplayer
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
|
||||
export kde_confdir="%{tde_confdir}"
|
||||
|
||||
%configure \
|
||||
--prefix=%{tde_prefix} \
|
||||
--exec-prefix=%{tde_prefix} \
|
||||
--bindir=%{tde_bindir} \
|
||||
--datadir=%{tde_datadir} \
|
||||
--includedir=%{tde_tdeincludedir} \
|
||||
--libdir=%{tde_libdir} \
|
||||
--mandir=%{tde_mandir} \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--enable-new-ldflags \
|
||||
--enable-final \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility
|
||||
|
||||
%__make %{?_smp_mflags} || %__make
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
%find_lang %{tde_pkg}
|
||||
|
||||
# Removes unwanted files
|
||||
%__rm -f %{?buildroot}%{tde_datadir}/mimelnk/application/x-mplayer2.desktop
|
||||
|
||||
# Updates applications categories for openSUSE
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -r "%{tde_pkg}" TDE AudioVideo Player Video
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:0.10.0c-1
|
||||
- Initial release for TDE 14.0.0
|
@ -1,13 +0,0 @@
|
||||
diff --git a/plugins/upnp/upnpmcastsocket.cpp b/plugins/upnp/upnpmcastsocket.cpp
|
||||
index 3b8be45..0172ed2 100644
|
||||
--- a/plugins/upnp/upnpmcastsocket.cpp
|
||||
+++ b/plugins/upnp/upnpmcastsocket.cpp
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <kurl.h>
|
||||
extern "C" {
|
||||
#include <unistd.h>
|
||||
- inline ssize_t mycread (int __fd, void *__buf, size_t __nbytes) { read(__fd, __buf, __nbytes); }
|
||||
+ inline ssize_t mycread (int __fd, void *__buf, size_t __nbytes) { return read(__fd, __buf, __nbytes); }
|
||||
};
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
@ -1,226 +0,0 @@
|
||||
#
|
||||
# spec file for package ktorrent (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.0
|
||||
%endif
|
||||
%define tde_pkg ktorrent
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 2.2.8
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: BitTorrent client for Trinity
|
||||
Group: Applications/Utilities
|
||||
URL: http://ktorrent.org
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: fdupes
|
||||
|
||||
# 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
|
||||
|
||||
# GMP support
|
||||
BuildRequires: gmp-devel
|
||||
|
||||
# AVAHI support
|
||||
# Disabled on RHEL4 and RHEL5
|
||||
%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?suse_version}
|
||||
%define with_avahi 1
|
||||
BuildRequires: trinity-avahi-tqt-devel
|
||||
Requires: trinity-avahi-tqt
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}avahi-client-devel
|
||||
Requires: %{_lib}avahi-client3
|
||||
%else
|
||||
BuildRequires: avahi-devel
|
||||
Requires: avahi
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
KTorrent is a BitTorrent program for Trinity. Its features include speed capping
|
||||
(both down and up), integrated searching, UDP tracker support, preview of
|
||||
certain file types (video and audio) and integration into the TDE Panel
|
||||
enabling background downloading.
|
||||
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
|
||||
%configure \
|
||||
--prefix="%{tde_prefix}" \
|
||||
--exec-prefix="%{tde_prefix}" \
|
||||
--bindir="%{tde_bindir}" \
|
||||
--datadir="%{tde_datadir}" \
|
||||
--libdir="%{tde_libdir}" \
|
||||
--mandir="%{tde_mandir}" \
|
||||
--includedir="%{tde_tdeincludedir}" \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--enable-final \
|
||||
--enable-new-ldflags \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility \
|
||||
\
|
||||
%{?!with_avahi:--without-avahi}
|
||||
|
||||
|
||||
# Not SMP safe !
|
||||
%__make
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf "%{buildroot}"
|
||||
%__make install DESTDIR="%{buildroot}"
|
||||
|
||||
%find_lang %{tde_pkg}
|
||||
|
||||
# Unwanted files
|
||||
%__rm -f "%{?buildroot}%{tde_libdir}/libktorrent.so"
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{buildroot}"
|
||||
|
||||
|
||||
%post
|
||||
update-desktop-database %{tde_tdeappdir} > /dev/null
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%postun
|
||||
update-desktop-database %{tde_tdeappdir} > /dev/null
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
/sbin/ldconfig || :
|
||||
|
||||
|
||||
%files -f %{tde_pkg}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_bindir}/ktcachecheck
|
||||
%{tde_bindir}/ktorrent
|
||||
%{tde_bindir}/ktshell
|
||||
%{tde_bindir}/kttorinfo
|
||||
%{tde_bindir}/ktupnptest
|
||||
%{tde_libdir}/libktorrent-%{version}.so
|
||||
%{tde_libdir}/libktorrent.la
|
||||
%{tde_tdelibdir}/ktinfowidgetplugin.la
|
||||
%{tde_tdelibdir}/ktinfowidgetplugin.so
|
||||
%{tde_tdelibdir}/ktipfilterplugin.la
|
||||
%{tde_tdelibdir}/ktipfilterplugin.so
|
||||
%{tde_tdelibdir}/ktlogviewerplugin.la
|
||||
%{tde_tdelibdir}/ktlogviewerplugin.so
|
||||
%{tde_tdelibdir}/ktpartfileimportplugin.la
|
||||
%{tde_tdelibdir}/ktpartfileimportplugin.so
|
||||
%{tde_tdelibdir}/ktrssfeedplugin.la
|
||||
%{tde_tdelibdir}/ktrssfeedplugin.so
|
||||
%{tde_tdelibdir}/ktscanfolderplugin.la
|
||||
%{tde_tdelibdir}/ktscanfolderplugin.so
|
||||
%{tde_tdelibdir}/ktschedulerplugin.la
|
||||
%{tde_tdelibdir}/ktschedulerplugin.so
|
||||
%{tde_tdelibdir}/ktsearchplugin.la
|
||||
%{tde_tdelibdir}/ktsearchplugin.so
|
||||
%{tde_tdelibdir}/ktstatsplugin.la
|
||||
%{tde_tdelibdir}/ktstatsplugin.so
|
||||
%{tde_tdelibdir}/ktupnpplugin.la
|
||||
%{tde_tdelibdir}/ktupnpplugin.so
|
||||
%{tde_tdelibdir}/ktwebinterfaceplugin.la
|
||||
%{tde_tdelibdir}/ktwebinterfaceplugin.so
|
||||
%{tde_tdeappdir}/ktorrent.desktop
|
||||
%{tde_datadir}/apps/ktorrent/
|
||||
%{tde_datadir}/config.kcfg/*.kcfg
|
||||
%{tde_datadir}/icons/hicolor/*/*/*.png
|
||||
%{tde_datadir}/icons/hicolor/*/*/*.svgz
|
||||
%{tde_datadir}/services/*.desktop
|
||||
%{tde_datadir}/servicetypes/ktorrentplugin.desktop
|
||||
%{tde_tdedocdir}/HTML/en/ktorrent/
|
||||
|
||||
%if 0%{?with_avahi}
|
||||
%{tde_tdelibdir}/ktzeroconfplugin.la
|
||||
%{tde_tdelibdir}/ktzeroconfplugin.so
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:2.2.8-1
|
||||
- Initial release for TDE 14.0.0
|
@ -1,10 +0,0 @@
|
||||
diff --git a/systemsettings/tdecmodulemenu.cpp b/systemsettings/tdecmodulemenu.cpp
|
||||
index 56c1220..d8f84ce 100644
|
||||
--- a/systemsettings/tdecmodulemenu.cpp
|
||||
+++ b/systemsettings/tdecmodulemenu.cpp
|
||||
@@ -185,4 +185,5 @@ TQString TDECModuleMenu::deriveCaptionFromPath( const TQString &menuPath )
|
||||
return result;
|
||||
}
|
||||
}
|
||||
+ return result;
|
||||
}
|
@ -1,194 +0,0 @@
|
||||
#
|
||||
# spec file for package tde-systemsettings (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.0
|
||||
%endif
|
||||
%define tde_pkg tde-systemsettings
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_confdir %{_sysconfdir}/trinity
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_sysconfdir %{_sysconfdir}/trinity
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 0.0svn20070312
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: Easy to use control centre for TDE
|
||||
Group: Applications/Utilities
|
||||
URL: http://www.trinitydesktop.org
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
Source1: kde-settings-laptops.directory
|
||||
|
||||
|
||||
Provides: trinity-kde-systemsettings = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Obsoletes: trinity-kde-systemsettings < %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: trinity-systemsettings = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Obsoletes: trinity-systemsettings < %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: fdupes
|
||||
|
||||
# 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
|
||||
|
||||
Requires: trinity-guidance
|
||||
|
||||
|
||||
%description
|
||||
System preferences is a replacement for the TDE
|
||||
Control Centre with an improved user interface.
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
export kde_confdir="%{tde_confdir}"
|
||||
|
||||
|
||||
%configure \
|
||||
--prefix=%{tde_prefix} \
|
||||
--exec-prefix=%{tde_prefix} \
|
||||
--bindir=%{tde_bindir} \
|
||||
--datadir=%{tde_datadir} \
|
||||
--includedir=%{tde_tdeincludedir} \
|
||||
--sysconfdir=%{tde_sysconfdir} \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--enable-final \
|
||||
--enable-new-ldflags \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
%__install -D -m 644 %{SOURCE1} %{buildroot}%{tde_datadir}/desktop-directories/tde-settings-laptops.directory
|
||||
|
||||
# Unwanted files
|
||||
%__rm -f %{buildroot}%{tde_datadir}/applications/tde/kcmfontinst.desktop
|
||||
%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/tde-settings-power.directory
|
||||
%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/tde-settings-system.directory
|
||||
|
||||
%__rm -f %{buildroot}%{tde_datadir}/applications/tde/laptop.desktop
|
||||
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/audioencoding.desktop"
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/defaultapplication.desktop"
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/kcm_knetworkconfmodule_ss.desktop"
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/medianotifications.desktop"
|
||||
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/systemsettings.desktop"
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{tde_datadir}/icons/crystalsvg || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
|
||||
update-desktop-database %{tde_tdeappdir} -q &> /dev/null
|
||||
|
||||
%postun
|
||||
touch --no-create %{tde_datadir}/icons/crystalsvg || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
|
||||
update-desktop-database %{tde_tdeappdir} -q &> /dev/null
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README TODO
|
||||
%dir %{tde_sysconfdir}/xdg
|
||||
%dir %{tde_sysconfdir}/xdg/menus
|
||||
%dir %{tde_sysconfdir}/xdg/menus/applications-merged
|
||||
%{tde_sysconfdir}/xdg/menus/applications-merged/tde-system-settings-merge.menu
|
||||
%{tde_sysconfdir}/xdg/menus/tde-system-settings.menu
|
||||
%{tde_bindir}/systemsettings
|
||||
%{tde_datadir}/applications/tde/audioencoding.desktop
|
||||
%{tde_datadir}/applications/tde/defaultapplication.desktop
|
||||
%{tde_datadir}/applications/tde/kcm_knetworkconfmodule_ss.desktop
|
||||
#%{tde_datadir}/applications/tde/laptop.desktop
|
||||
%{tde_datadir}/applications/tde/medianotifications.desktop
|
||||
%{tde_datadir}/applications/tde/systemsettings.desktop
|
||||
%{tde_datadir}/apps/systemsettings/
|
||||
%{tde_confdir}/systemsettingsrc
|
||||
%{tde_datadir}/desktop-directories/*.directory
|
||||
%{tde_datadir}/icons/crystalsvg/*/apps/systemsettings.png
|
||||
%{tde_tdedocdir}/HTML/en/systemsettings/
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:0.0svn20070312-1
|
||||
- Initial release for TDE 14.0.0
|
@ -1,13 +0,0 @@
|
||||
diff --git a/src/watools.cpp b/src/watools.cpp
|
||||
index 5814274..252c791 100644
|
||||
--- a/src/watools.cpp
|
||||
+++ b/src/watools.cpp
|
||||
@@ -192,6 +192,8 @@ int WATools::availableNetworks( const char* _ifname ) //returns a list of availa
|
||||
i++;
|
||||
} while (scan = scan->next);
|
||||
printf( "WATools: Networks found: %i\n", i );
|
||||
+
|
||||
+ return i;
|
||||
}
|
||||
|
||||
|
@ -1,206 +0,0 @@
|
||||
#
|
||||
# spec file for package wlassistant (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.0
|
||||
%endif
|
||||
%define tde_pkg wlassistant
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_mandir %{tde_datadir}/man
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 0.5.7
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: User friendly TDE frontend for wireless network connection
|
||||
Group: Applications/Utilities
|
||||
URL: http://wlassistant.sourceforge.net/
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
|
||||
BuildRequires: cmake libtool
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: fdupes
|
||||
|
||||
# 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
|
||||
|
||||
# Wireless support
|
||||
%if 0%{?fedora} >= 6 || 0%{?rhel} >= 5
|
||||
BuildRequires: wireless-tools-devel
|
||||
%endif
|
||||
%if 0%{?mgaversion} == 2 || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}iw29-devel
|
||||
%endif
|
||||
%if 0%{?rhel} == 5 || 0%{?suse_version}
|
||||
BuildRequires: wireless-tools
|
||||
%endif
|
||||
%if 0%{?suse_version} || 0%{?mgaversion} >= 3
|
||||
BuildRequires: libiw-devel
|
||||
%endif
|
||||
|
||||
# IDN support
|
||||
BuildRequires: libidn-devel
|
||||
|
||||
# GAMIN support
|
||||
# Not on openSUSE.
|
||||
%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%define with_gamin 1
|
||||
BuildRequires: gamin-devel
|
||||
%endif
|
||||
# PYTHON support
|
||||
BuildRequires: python
|
||||
|
||||
|
||||
%description
|
||||
Wireless Assistant scans for wireless access points and displays link quality,
|
||||
encryption and other useful information. When user wants to connect to a
|
||||
network, Wireless Assistant opens up its wizards and guides the user through
|
||||
Wi-Fi settings. After a successful connection is made the settings are
|
||||
remembered so next time the user won't have to enter them again.
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
|
||||
|
||||
# Shitty hack for RHEL4 ...
|
||||
if [ -d "/usr/X11R6" ]; then
|
||||
export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}:/usr/X11R6/include:/usr/X11R6/%{_lib}"
|
||||
export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -I/usr/X11R6/include -L/usr/X11R6/%{_lib}"
|
||||
fi
|
||||
|
||||
if ! rpm -E %%cmake|grep -q "cd build"; then
|
||||
%__mkdir_p build
|
||||
cd build
|
||||
fi
|
||||
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
||||
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||||
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||||
-DCMAKE_SKIP_RPATH=OFF \
|
||||
-DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DWITH_GCC_VISIBILITY=OFF \
|
||||
\
|
||||
-DBIN_INSTALL_DIR=%{tde_bindir} \
|
||||
-DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
|
||||
-DLIB_INSTALL_DIR=%{tde_libdir} \
|
||||
-DSHARE_INSTALL_PREFIX=%{tde_datadir} \
|
||||
\
|
||||
-DBUILD_ALL=on \
|
||||
..
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot} -C build
|
||||
|
||||
# Updates applications categories for openSUSE
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -i -r "%{?buildroot}%{tde_tdeappdir}/wlassistant.desktop" System Network
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{tde_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog VERSION
|
||||
%{tde_bindir}/wlassistant
|
||||
%{tde_tdeappdir}/wlassistant.desktop
|
||||
%{tde_datadir}/icons/hicolor/16x16/apps/wlassistant.png
|
||||
%{tde_datadir}/icons/hicolor/32x32/apps/wlassistant.png
|
||||
%lang(ar) %{tde_datadir}/locale/ar/LC_MESSAGES/wlassistant.mo
|
||||
%lang(ca) %{tde_datadir}/locale/ca/LC_MESSAGES/wlassistant.mo
|
||||
%lang(es) %{tde_datadir}/locale/es/LC_MESSAGES/wlassistant.mo
|
||||
%lang(fr) %{tde_datadir}/locale/fr/LC_MESSAGES/wlassistant.mo
|
||||
%lang(nb) %{tde_datadir}/locale/nb/LC_MESSAGES/wlassistant.mo
|
||||
%lang(pl) %{tde_datadir}/locale/pl/LC_MESSAGES/wlassistant.mo
|
||||
%lang(pt) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/wlassistant.mo
|
||||
%lang(sv) %{tde_datadir}/locale/sv/LC_MESSAGES/wlassistant.mo
|
||||
%lang(zh_CN) %{tde_datadir}/locale/zh_CN/LC_MESSAGES/wlassistant.mo
|
||||
%lang(zh_TW) %{tde_datadir}/locale/zh_TW/LC_MESSAGES/wlassistant.mo
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:0.5.7-1
|
||||
- Initial release for TDE 14.0.0
|
@ -0,0 +1,193 @@
|
||||
diff --git a/src/add-caldav-object.c b/src/add-caldav-object.c
|
||||
index 68a4377..35aef48 100644
|
||||
--- a/src/add-caldav-object.c
|
||||
+++ b/src/add-caldav-object.c
|
||||
@@ -103,7 +103,6 @@ gboolean caldav_add(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
diff --git a/src/delete-caldav-object.c b/src/delete-caldav-object.c
|
||||
index 9a85168..ea5733f 100644
|
||||
--- a/src/delete-caldav-object.c
|
||||
+++ b/src/delete-caldav-object.c
|
||||
@@ -150,7 +150,6 @@ gboolean caldav_delete(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
g_free(search);
|
||||
curl_slist_free_all(http_header);
|
||||
@@ -249,7 +248,6 @@ gboolean caldav_delete(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
caldav_unlock_object(
|
||||
@@ -380,7 +378,6 @@ gboolean caldav_tasks_delete(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
g_free(search);
|
||||
curl_slist_free_all(http_header);
|
||||
@@ -479,7 +476,6 @@ gboolean caldav_tasks_delete(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
caldav_unlock_object(
|
||||
diff --git a/src/get-caldav-report.c b/src/get-caldav-report.c
|
||||
index d916259..0021cb8 100644
|
||||
--- a/src/get-caldav-report.c
|
||||
+++ b/src/get-caldav-report.c
|
||||
@@ -169,7 +169,6 @@ gboolean caldav_getall(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
@@ -266,7 +265,6 @@ gboolean caldav_getrange(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
@@ -349,7 +347,6 @@ gboolean caldav_tasks_getall(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
@@ -446,7 +443,6 @@ gboolean caldav_tasks_getrange(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
diff --git a/src/get-display-name.c b/src/get-display-name.c
|
||||
index 8fc0ff8..c205efd 100644
|
||||
--- a/src/get-display-name.c
|
||||
+++ b/src/get-display-name.c
|
||||
@@ -99,7 +99,6 @@ gboolean caldav_getname(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PROPFIND");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
diff --git a/src/get-freebusy-report.c b/src/get-freebusy-report.c
|
||||
index f75ab92..40a5a3c 100644
|
||||
--- a/src/get-freebusy-report.c
|
||||
+++ b/src/get-freebusy-report.c
|
||||
@@ -104,7 +104,6 @@ gboolean caldav_freebusy(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
diff --git a/src/lock-caldav-object.c b/src/lock-caldav-object.c
|
||||
index 30f2d20..6845551 100644
|
||||
--- a/src/lock-caldav-object.c
|
||||
+++ b/src/lock-caldav-object.c
|
||||
@@ -107,7 +107,6 @@ gchar* caldav_lock_object(
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "LOCK");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
if (res != 0) {
|
||||
@@ -211,7 +210,6 @@ gboolean caldav_unlock_object(gchar* lock_token, gchar* URI,
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "UNLOCK");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
if (res != 0) {
|
||||
diff --git a/src/modify-caldav-object.c b/src/modify-caldav-object.c
|
||||
index fb3a4d0..f3563d8 100644
|
||||
--- a/src/modify-caldav-object.c
|
||||
+++ b/src/modify-caldav-object.c
|
||||
@@ -151,7 +151,6 @@ gboolean caldav_modify(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
http_header = NULL;
|
||||
@@ -249,7 +248,6 @@ gboolean caldav_modify(caldav_settings* settings, caldav_error* error) {
|
||||
strlen(settings->file));
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
@@ -391,7 +389,6 @@ gboolean caldav_tasks_modify(caldav_settings* settings, caldav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
http_header = NULL;
|
||||
@@ -489,7 +486,6 @@ gboolean caldav_tasks_modify(caldav_settings* settings, caldav_error* error) {
|
||||
strlen(settings->file));
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
diff --git a/src/options-caldav-server.c b/src/options-caldav-server.c
|
||||
index 1d97d04..0045afe 100644
|
||||
--- a/src/options-caldav-server.c
|
||||
+++ b/src/options-caldav-server.c
|
||||
@@ -74,7 +74,6 @@ gboolean caldav_getoptions(CURL* curl, caldav_settings* settings, response* resu
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res == 0) {
|
||||
gchar* head;
|
||||
@@ -102,15 +101,12 @@ gboolean caldav_getoptions(CURL* curl, caldav_settings* settings, response* resu
|
||||
}
|
||||
else if (
|
||||
(res == CURLE_SSL_CONNECT_ERROR ||
|
||||
- CURLE_PEER_FAILED_VERIFICATION ||
|
||||
CURLE_SSL_ENGINE_NOTFOUND ||
|
||||
CURLE_SSL_ENGINE_SETFAILED ||
|
||||
CURLE_SSL_CERTPROBLEM ||
|
||||
CURLE_SSL_CIPHER ||
|
||||
CURLE_SSL_CACERT ||
|
||||
- CURLE_SSL_CACERT_BADFILE ||
|
||||
- CURLE_SSL_CRL_BADFILE ||
|
||||
- CURLE_SSL_ISSUER_ERROR) && settings->usehttps) {
|
||||
+ CURLE_SSL_CRL_BADFILE ) && settings->usehttps) {
|
||||
error->code = -2;
|
||||
error->str = g_strdup(error_buf);
|
||||
}
|
@ -0,0 +1,164 @@
|
||||
diff --git a/src/add-carddav-object.c b/src/add-carddav-object.c
|
||||
index 5574991..a1586d8 100644
|
||||
--- a/src/add-carddav-object.c
|
||||
+++ b/src/add-carddav-object.c
|
||||
@@ -104,7 +104,6 @@ gboolean carddav_add(carddav_settings* settings, carddav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
diff --git a/src/delete-carddav-object.c b/src/delete-carddav-object.c
|
||||
index 96b9033..6984a82 100644
|
||||
--- a/src/delete-carddav-object.c
|
||||
+++ b/src/delete-carddav-object.c
|
||||
@@ -132,7 +132,6 @@ gboolean carddav_delete(carddav_settings* settings, carddav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
g_free(search);
|
||||
curl_slist_free_all(http_header);
|
||||
@@ -231,7 +230,6 @@ gboolean carddav_delete(carddav_settings* settings, carddav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
carddav_unlock_object(
|
||||
@@ -417,7 +415,6 @@ gboolean carddav_delete_by_uri(carddav_settings* settings, carddav_error* error)
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
carddav_unlock_object(
|
||||
diff --git a/src/get-carddav-report.c b/src/get-carddav-report.c
|
||||
index b44fd2c..7655b29 100644
|
||||
--- a/src/get-carddav-report.c
|
||||
+++ b/src/get-carddav-report.c
|
||||
@@ -117,7 +117,6 @@ static gchar* carddav_dirlist(carddav_settings* settings, carddav_error* error)
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PROPFIND");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
@@ -243,7 +242,6 @@ gboolean carddav_getall(carddav_settings* settings, carddav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
@@ -345,7 +343,6 @@ gboolean carddav_getall_by_uri(carddav_settings* settings, carddav_error* error)
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
@@ -378,4 +375,4 @@ gboolean carddav_getall_by_uri(carddav_settings* settings, carddav_error* error)
|
||||
curl_easy_cleanup(curl);
|
||||
g_free(dav_file_listing);
|
||||
return result;
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/src/get-display-name.c b/src/get-display-name.c
|
||||
index 9e782e0..16c3e4b 100644
|
||||
--- a/src/get-display-name.c
|
||||
+++ b/src/get-display-name.c
|
||||
@@ -100,7 +100,6 @@ gboolean carddav_getname(carddav_settings* settings, carddav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PROPFIND");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
if (res != 0) {
|
||||
error->code = -1;
|
||||
diff --git a/src/lock-carddav-object.c b/src/lock-carddav-object.c
|
||||
index 163264c..2292cad 100644
|
||||
--- a/src/lock-carddav-object.c
|
||||
+++ b/src/lock-carddav-object.c
|
||||
@@ -109,7 +109,6 @@ gchar* carddav_lock_object(
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "LOCK");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
if (res != 0) {
|
||||
@@ -214,7 +213,6 @@ gboolean carddav_unlock_object(gchar* lock_token, gchar* URI,
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "UNLOCK");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
if (res != 0) {
|
||||
diff --git a/src/modify-carddav-object.c b/src/modify-carddav-object.c
|
||||
index 1822068..a8b6de2 100644
|
||||
--- a/src/modify-carddav-object.c
|
||||
+++ b/src/modify-carddav-object.c
|
||||
@@ -133,7 +133,6 @@ gboolean carddav_modify(carddav_settings* settings, carddav_error* error) {
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "REPORT");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_slist_free_all(http_header);
|
||||
http_header = NULL;
|
||||
@@ -231,7 +230,6 @@ gboolean carddav_modify(carddav_settings* settings, carddav_error* error) {
|
||||
strlen(settings->file));
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
@@ -430,7 +428,6 @@ gboolean carddav_modify_by_uri(carddav_settings* settings, carddav_error* error)
|
||||
strlen(settings->file));
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
||||
res = curl_easy_perform(curl);
|
||||
if (LOCKSUPPORT && lock_token) {
|
||||
diff --git a/src/options-carddav-server.c b/src/options-carddav-server.c
|
||||
index b774401..b44aae2 100644
|
||||
--- a/src/options-carddav-server.c
|
||||
+++ b/src/options-carddav-server.c
|
||||
@@ -75,7 +75,6 @@ gboolean carddav_getoptions(CURL* curl, carddav_settings* settings, response* re
|
||||
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1);
|
||||
- curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
if (settings->debug) {
|
||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
||||
}
|
||||
@@ -106,15 +105,12 @@ gboolean carddav_getoptions(CURL* curl, carddav_settings* settings, response* re
|
||||
}
|
||||
else if (
|
||||
(res == CURLE_SSL_CONNECT_ERROR ||
|
||||
- CURLE_PEER_FAILED_VERIFICATION ||
|
||||
CURLE_SSL_ENGINE_NOTFOUND ||
|
||||
CURLE_SSL_ENGINE_SETFAILED ||
|
||||
CURLE_SSL_CERTPROBLEM ||
|
||||
CURLE_SSL_CIPHER ||
|
||||
CURLE_SSL_CACERT ||
|
||||
- CURLE_SSL_CACERT_BADFILE ||
|
||||
- CURLE_SSL_CRL_BADFILE ||
|
||||
- CURLE_SSL_ISSUER_ERROR) && settings->usehttps) {
|
||||
+ CURLE_SSL_CRL_BADFILE ) && settings->usehttps) {
|
||||
error->code = -2;
|
||||
error->str = g_strdup(error_buf);
|
||||
}
|
@ -1,568 +0,0 @@
|
||||
#
|
||||
# spec file for package libksquirrel (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# BUILD WARNING:
|
||||
# Remove qt-devel and qt3-devel and any kde*-devel on your system !
|
||||
# Having KDE libraries may cause FTBFS here !
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.0
|
||||
%endif
|
||||
%define tde_pkg libksquirrel
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?tde_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%endif
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Summary: Trinity image viewer
|
||||
Group: System/Libraries
|
||||
Epoch: %{tde_epoch}
|
||||
Version: 0.8.0
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||||
|
||||
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
# AUTOTOOLS
|
||||
BuildRequires: automake autoconf libtool
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}ltdl-devel
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 5 || 0%{?suse_version} >= 1220
|
||||
BuildRequires: libtool-ltdl-devel
|
||||
%endif
|
||||
|
||||
# TRANSFIG support
|
||||
BuildRequires: transfig
|
||||
|
||||
# GETTEXT support
|
||||
BuildRequires: gettext
|
||||
BuildRequires: gettext-devel
|
||||
|
||||
# OPENEXR support
|
||||
BuildRequires: OpenEXR-devel
|
||||
|
||||
# TIFF support
|
||||
BuildRequires: libtiff-devel
|
||||
|
||||
# GIF support
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: giflib-devel
|
||||
%endif
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?fedora} || 0%{?rhel}
|
||||
BuildRequires: libungif-devel
|
||||
%endif
|
||||
|
||||
# MNG support
|
||||
BuildRequires: libmng-devel
|
||||
|
||||
# DJVU support
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_djvu 1
|
||||
BuildRequires: djvulibre
|
||||
%endif
|
||||
|
||||
# XMEDCON support
|
||||
%if 0%{?fedora}
|
||||
%define with_xmedcon 1
|
||||
BuildRequires: xmedcon
|
||||
BuildRequires: xmedcon-devel
|
||||
%endif
|
||||
|
||||
# RSVG support
|
||||
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_svg 1
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
BuildRequires: librsvg2
|
||||
%endif
|
||||
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
||||
BuildRequires: librsvg2-tools
|
||||
%endif
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: librsvg
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: rsvg-view
|
||||
BuildRequires: librsvg-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# JASPER support
|
||||
%if 0%{?rhel} >=4 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_jasper 1
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: libjasper-devel
|
||||
%endif
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}jasper-devel
|
||||
%endif
|
||||
%if 0%{?rhel} || 0%{?fedora}
|
||||
BuildRequires: jasper-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# FREETYPE support
|
||||
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_freetype 1
|
||||
%if 0%{?suse_version} == 1140
|
||||
BuildRequires: freetype2-devel
|
||||
%else
|
||||
BuildRequires: freetype-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# WMF support
|
||||
BuildRequires: libwmf-devel
|
||||
|
||||
# XML2 support
|
||||
BuildRequires: libxml2-devel
|
||||
|
||||
# NETPBM support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
BuildRequires: netpbm
|
||||
%else
|
||||
BuildRequires: netpbm-progs
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
This package contains the runtime libraries for KSquirrel.
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS ChangeLog COPYING LICENSE README
|
||||
%dir %{tde_libdir}/ksquirrel-libs
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_avs.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_avs.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_bmp.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_bmp.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_camera.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_camera.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_cut.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_cut.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dds.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dds.so.0.8.0
|
||||
%if 0%{?with_xmedcon}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dicom.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dicom.so.0.8.0
|
||||
%endif
|
||||
%if 0%{?with_djvu}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_djvu.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_djvu.so.0.8.0
|
||||
%endif
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_eps.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_eps.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fig.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fig.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fli.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fli.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_gif.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_gif.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_hdr.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_hdr.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ico.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ico.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_iff.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_iff.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jbig.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jbig.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_koala.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_koala.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_leaf.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_leaf.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_lif.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_lif.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mac.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mac.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_neo.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_neo.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_openexr.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_openexr.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pcx.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pcx.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi1.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi1.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi3.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi3.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pix.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pix.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_png.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_png.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pnm.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pnm.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psd.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psd.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psp.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psp.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pxr.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pxr.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ras.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ras.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sct.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sct.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sgi.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sgi.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sun.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sun.so.0.8.0
|
||||
%if 0%{?with_svg}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_svg.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_svg.so.0.8.0
|
||||
%endif
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tga.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tga.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tiff.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tiff.so.0.8.0
|
||||
%if 0%{?with_freetype}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ttf.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ttf.so.0.8.0
|
||||
%endif
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_utah.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_utah.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wal.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wal.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wbmp.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wbmp.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wmf.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wmf.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xbm.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xbm.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcf.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcf.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcur.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcur.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xim.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xim.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xpm.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xpm.so.0.8.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0.8.0
|
||||
%{tde_libdir}/libksquirrel-libs-png.so.0
|
||||
%{tde_libdir}/libksquirrel-libs-png.so.0.0.0
|
||||
%{tde_libdir}/libksquirrel-libs.so.0
|
||||
%{tde_libdir}/libksquirrel-libs.so.0.8.0
|
||||
%dir %{tde_datadir}/ksquirrel-libs
|
||||
%{tde_datadir}/ksquirrel-libs/libkls_camera.so.ui
|
||||
%if 0%{?with_djvu}
|
||||
%{tde_datadir}/ksquirrel-libs/libkls_djvu.so.ui
|
||||
%endif
|
||||
%if 0%{?with_svg}
|
||||
%{tde_datadir}/ksquirrel-libs/libkls_svg.so.ui
|
||||
%endif
|
||||
%{tde_datadir}/ksquirrel-libs/libkls_tiff.so.ui
|
||||
%{tde_datadir}/ksquirrel-libs/libkls_xcf.so.ui
|
||||
%{tde_datadir}/ksquirrel-libs/rgbmap
|
||||
|
||||
%post
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig || :
|
||||
|
||||
##########
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries/Other
|
||||
Summary: Trinity image viewer
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the development libraries for KSquirrel.
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{tde_includedir}/ksquirrel-libs
|
||||
%{tde_includedir}/ksquirrel-libs/error.h
|
||||
%{tde_includedir}/ksquirrel-libs/fileio.h
|
||||
%{tde_includedir}/ksquirrel-libs/fmt_codec_base.h
|
||||
%{tde_includedir}/ksquirrel-libs/fmt_defs.h
|
||||
%{tde_includedir}/ksquirrel-libs/fmt_types.h
|
||||
%{tde_includedir}/ksquirrel-libs/fmt_utils.h
|
||||
%{tde_includedir}/ksquirrel-libs/settings.h
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_avs.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_avs.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_bmp.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_bmp.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_camera.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_camera.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_cut.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_cut.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dds.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dds.so
|
||||
%if 0%{?with_xmedcon}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dicom.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_dicom.so
|
||||
%endif
|
||||
%if 0%{?with_djvu}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_djvu.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_djvu.so
|
||||
%endif
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_eps.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_eps.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fig.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fig.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fli.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_fli.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_gif.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_gif.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_hdr.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_hdr.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ico.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ico.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_iff.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_iff.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jbig.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jbig.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_koala.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_koala.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_leaf.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_leaf.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_lif.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_lif.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mac.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mac.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mdl.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mng.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mng.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mtv.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_neo.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_neo.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_openexr.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_openexr.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pcx.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pcx.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi1.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi1.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi3.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pi3.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pix.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pix.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_png.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_png.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pnm.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pnm.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psd.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psd.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psp.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_psp.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pxr.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_pxr.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ras.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ras.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sct.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sct.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sgi.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sgi.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sun.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_sun.so
|
||||
%if 0%{?with_svg}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_svg.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_svg.so
|
||||
%endif
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tga.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tga.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tiff.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_tiff.so
|
||||
%if 0%{?with_freetype}
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ttf.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_ttf.so
|
||||
%endif
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_utah.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_utah.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wal.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wal.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wbmp.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wbmp.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wmf.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_wmf.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xbm.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xbm.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcf.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcf.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcur.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xcur.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xim.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xim.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xpm.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xpm.so
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xwd.la
|
||||
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so
|
||||
%{tde_libdir}/libksquirrel-libs-png.la
|
||||
%{tde_libdir}/libksquirrel-libs-png.so
|
||||
%{tde_libdir}/libksquirrel-libs.la
|
||||
%{tde_libdir}/libksquirrel-libs.so
|
||||
%{tde_libdir}/pkgconfig/ksquirrellibs.pc
|
||||
%{tde_docdir}/ksquirrel-libs/
|
||||
|
||||
%post devel
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%postun devel
|
||||
/sbin/ldconfig || :
|
||||
|
||||
##########
|
||||
|
||||
%package tools
|
||||
Summary: Trinity image viewer
|
||||
Group: System/Libraries
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
||||
%description tools
|
||||
This package contains the tools for KSquirrel.
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_bindir}/ksquirrel-libs-camera2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-dcraw
|
||||
%if 0%{?with_xmedcon}
|
||||
%{tde_bindir}/ksquirrel-libs-dicom2png
|
||||
%endif
|
||||
%{tde_bindir}/ksquirrel-libs-fig2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-iff2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-leaf2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-ljpeg2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-ljpeg2ppm-s
|
||||
%{tde_bindir}/ksquirrel-libs-mac2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-neo2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-pi12ppm
|
||||
%{tde_bindir}/ksquirrel-libs-pi32ppm
|
||||
%if 0%{?with_svg}
|
||||
%{tde_bindir}/ksquirrel-libs-svg2png
|
||||
%endif
|
||||
%if 0%{?with_freetype}
|
||||
%{tde_bindir}/ksquirrel-libs-ttf2pnm
|
||||
%endif
|
||||
%{tde_bindir}/ksquirrel-libs-utah2ppm
|
||||
%{tde_bindir}/ksquirrel-libs-xcf2pnm
|
||||
%{tde_bindir}/ksquirrel-libs-xim2ppm
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||||
|
||||
# FIXME: under PCLinuxOS, headers are under 'freetype2' not 'freetype'
|
||||
if [ -r /usr/include/freetype2/ftbitmap.h ]; then
|
||||
%__sed -i "configure.ac" -e "s|freetype/ftbitmap.h|freetype2/ftbitmap.h|"
|
||||
%__sed -i "kernel/kls_ttf/ttf2pnm.cpp" -e "s|freetype/config/|freetype2/config/|"
|
||||
fi
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
|
||||
%configure \
|
||||
--prefix=%{tde_prefix} \
|
||||
--exec-prefix=%{tde_prefix} \
|
||||
--bindir=%{tde_bindir} \
|
||||
--datadir=%{tde_datadir} \
|
||||
--libdir=%{tde_libdir} \
|
||||
--includedir=%{tde_includedir} \
|
||||
\
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug \
|
||||
--enable-new-ldflags \
|
||||
--enable-final \
|
||||
--enable-closure \
|
||||
--enable-rpath \
|
||||
--disable-gcc-hidden-visibility \
|
||||
\
|
||||
%{?with_djvu:--enable-djvu}
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%Changelog
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:0.8.0-1
|
||||
- Initial release for TDE 14.0.0
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
||||
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
|
||||
index 1fedc9a..f3872b9 100644
|
||||
--- a/ConfigureChecks.cmake
|
||||
+++ b/ConfigureChecks.cmake
|
||||
@@ -74,7 +74,12 @@ if( BUILD_NOATUN_PLUGINS )
|
||||
if( WITH_SDL )
|
||||
pkg_search_module( SDL sdl )
|
||||
if( NOT SDL_FOUND )
|
||||
- tde_message_fatal( "SDL is requested, but was not found on your system" )
|
||||
+ check_include_file( SDL/SDL.h HAVE_SDL_H )
|
||||
+ if( NOT HAVE_SDL_H )
|
||||
+ tde_message_fatal( "SDL is requested, but was not found on your system" )
|
||||
+ endif ( )
|
||||
+ set ( SDL_INCLUDE_DIRS /usr/include/SDL )
|
||||
+ set ( SDL_LIBRARIES SDL pthread )
|
||||
endif( )
|
||||
endif( WITH_SDL )
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -x /usr/lib/rpm/redhat/find-requires ] ; then
|
||||
FINDREQ=/usr/lib/rpm/redhat/find-requires
|
||||
else
|
||||
FINDREQ=/usr/lib/rpm/find-requires
|
||||
fi
|
||||
|
||||
$FINDREQ $* | sed -e '/libcairo.so.2/d' -e '/libpangocairo-1.0.so.0/d'
|
@ -0,0 +1,13 @@
|
||||
--- trinity-tdeedu-14.0.1/kstars/configure.in.in.orig 2015-07-31 11:34:32.712141661 -0400
|
||||
+++ trinity-tdeedu-14.0.1/kstars/configure.in.in 2015-07-31 11:35:49.442314137 -0400
|
||||
@@ -87,7 +87,9 @@
|
||||
[have_v4l2=true],
|
||||
[have_v4l2=false],
|
||||
[#include <sys/time.h>
|
||||
- #include <linux/videodev2.h>])
|
||||
+ extern "C" {
|
||||
+ #include <linux/videodev2.h>
|
||||
+ }])
|
||||
if test x$have_v4l2 = xfalse; then
|
||||
unset ac_cv_type_struct_v4l2_buffer
|
||||
AC_CHECK_TYPE([struct v4l2_buffer],
|
@ -1,173 +1,31 @@
|
||||
From 608ee3f53763ca7fe4e925e8309525c78d937984 Mon Sep 17 00:00:00 2001
|
||||
From: Slávek Banko <slavek.banko@axis.cz>
|
||||
Date: Thu, 25 Dec 2014 18:10:23 +0000
|
||||
Subject: Fix FTBFS because CUPS 2.x
|
||||
|
||||
This resolves Bug 2270
|
||||
|
||||
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
|
||||
(cherry picked from commit 592bebb509786ccec893b305d3ae6a0c76ed3bdb)
|
||||
---
|
||||
diff --git a/tdeprint/cups/cupsdconf2/cups-util.c b/tdeprint/cups/cupsdconf2/cups-util.c
|
||||
index eadd6b6..3772b35 100644
|
||||
--- a/tdeprint/cups/cupsdconf2/cups-util.c
|
||||
+++ b/tdeprint/cups/cupsdconf2/cups-util.c
|
||||
@@ -33,7 +33,7 @@ cupsGetConf(void)
|
||||
char prompt[1024]; /* Prompt string */
|
||||
int digest_tries; /* Number of tries with Digest */
|
||||
static char filename[HTTP_MAX_URI]; /* Local filename */
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
const char *fqdn = 0;
|
||||
#else
|
||||
char fqdn[ HTTP_MAX_URI ]; /* Server name buffer */
|
||||
@@ -119,7 +119,7 @@ cupsGetConf(void)
|
||||
* See if we should retry the current digest password...
|
||||
*/
|
||||
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
www_authenticate = cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE];
|
||||
#else
|
||||
www_authenticate = httpGetField( cups_server, HTTP_FIELD_WWW_AUTHENTICATE );
|
||||
@@ -130,7 +130,7 @@ cupsGetConf(void)
|
||||
/*
|
||||
* Nope - get a password from the user...
|
||||
*/
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
fqdn = cups_server->hostname;
|
||||
#else
|
||||
httpGetHostname( cups_server, fqdn, sizeof( fqdn ) );
|
||||
@@ -155,7 +155,7 @@ cupsGetConf(void)
|
||||
* Got a password; encode it for the server...
|
||||
*/
|
||||
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
www_authenticate = cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE];
|
||||
#else
|
||||
www_authenticate = httpGetField( cups_server, HTTP_FIELD_WWW_AUTHENTICATE );
|
||||
@@ -167,7 +167,7 @@ cupsGetConf(void)
|
||||
*/
|
||||
|
||||
snprintf(plain, sizeof(plain), "%s:%s", cupsUser(), pwdstring);
|
||||
-#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
|
||||
+#if CUPS_VERSION_MAJOR > 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2)
|
||||
httpEncode64_2(encode, sizeof(encode), plain, sizeof(plain));
|
||||
#else
|
||||
httpEncode64(encode, plain);
|
||||
@@ -236,7 +236,7 @@ cupsGetConf(void)
|
||||
*/
|
||||
|
||||
while ((bytes =
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
httpRead
|
||||
#else
|
||||
httpRead2
|
||||
@@ -266,7 +266,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
http_status_t status; /* HTTP status from server */
|
||||
char prompt[1024]; /* Prompt string */
|
||||
int digest_tries; /* Number of tries with Digest */
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
const char *fqdn = 0;
|
||||
#else
|
||||
char fqdn[ HTTP_MAX_URI ]; /* Server name buffer */
|
||||
@@ -341,7 +341,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
break;
|
||||
}
|
||||
else
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
httpWrite
|
||||
#else
|
||||
httpWrite2
|
||||
@@ -350,7 +350,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
|
||||
if (status == HTTP_CONTINUE)
|
||||
{
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
httpWrite
|
||||
#else
|
||||
httpWrite2
|
||||
@@ -381,7 +381,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
* See if we should retry the current digest password...
|
||||
*/
|
||||
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
www_authenticate = cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE];
|
||||
#else
|
||||
www_authenticate = httpGetField( cups_server, HTTP_FIELD_WWW_AUTHENTICATE );
|
||||
@@ -394,7 +394,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
*/
|
||||
|
||||
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
fqdn = cups_server->hostname;
|
||||
#else
|
||||
httpGetHostname( cups_server, fqdn, sizeof( fqdn ) );
|
||||
@@ -418,7 +418,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
* Got a password; encode it for the server...
|
||||
*/
|
||||
|
||||
-#if CUPS_VERSION_MAJOR - 0 <= 1 && CUPS_VERSION_MINOR - 0 < 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
www_authenticate = cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE];
|
||||
#else
|
||||
www_authenticate = httpGetField( cups_server, HTTP_FIELD_WWW_AUTHENTICATE );
|
||||
@@ -430,7 +430,7 @@ cupsPutConf(const char *name) /* I - Name of the config file to send */
|
||||
*/
|
||||
|
||||
snprintf(plain, sizeof(plain), "%s:%s", cupsUser(), pwdstring);
|
||||
-#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
|
||||
+#if CUPS_VERSION_MAJOR > 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2)
|
||||
httpEncode64_2(encode, sizeof(encode), plain, sizeof(plain));
|
||||
#else
|
||||
httpEncode64(encode, plain);
|
||||
@@ -512,7 +512,7 @@ cups_local_auth(http_t *http) /* I - Connection */
|
||||
* See if we are accessing localhost...
|
||||
the struct has changed in newer versions - PiggZ (adam@piggz.co.uk)
|
||||
*/
|
||||
-#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
|
||||
+#if CUPS_VERSION_MAJOR > 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2)
|
||||
if (!httpAddrLocalhost(http))
|
||||
#else
|
||||
if (ntohl(*(int*)&http->hostaddr.sin_addr) != 0x7f000001 &&
|
||||
diff --git a/tdeprint/cups/ipprequest.cpp b/tdeprint/cups/ipprequest.cpp
|
||||
index b4e3991..8a36315 100644
|
||||
--- a/tdeprint/cups/ipprequest.cpp
|
||||
+++ b/tdeprint/cups/ipprequest.cpp
|
||||
@@ -407,7 +407,7 @@ bool IppRequest::doFileRequest(const TQString& res, const TQString& filename)
|
||||
}
|
||||
|
||||
#ifdef HAVE_CUPS_NO_PWD_CACHE
|
||||
-#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR <= 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
strncpy( HTTP->authstring, cups_authstring.data(), HTTP_MAX_VALUE );
|
||||
#else
|
||||
httpSetAuthString( HTTP, NULL, cups_authstring.data() );
|
||||
@@ -421,7 +421,7 @@ bool IppRequest::doFileRequest(const TQString& res, const TQString& filename)
|
||||
|
||||
request_ = cupsDoFileRequest(HTTP, request_, (res.isEmpty() ? "/" : res.latin1()), (filename.isEmpty() ? NULL : filename.latin1()));
|
||||
#ifdef HAVE_CUPS_NO_PWD_CACHE
|
||||
-#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR <= 2
|
||||
+#if CUPS_VERSION_MAJOR < 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 2)
|
||||
cups_authstring = HTTP->authstring;
|
||||
#else
|
||||
cups_authstring = httpGetAuthString( HTTP );
|
||||
@@ -757,7 +757,7 @@ void IppRequest::setMap(const TQMap<TQString,TQString>& opts)
|
||||
cupsFreeOptions(n, options);
|
||||
|
||||
// find an remove that annoying "document-format" attribute
|
||||
-#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
|
||||
+#if CUPS_VERSION_MAJOR > 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2)
|
||||
ipp_attribute_t *attr = ippFindAttribute(request_, "document-format", IPP_TAG_NAME);
|
||||
ippDeleteAttribute(request_, attr);
|
||||
#else
|
||||
--
|
||||
cgit v0.9.0.2-52-g1de3
|
||||
diff --git a/tdecore/tdeglobal.h b/tdecore/tdeglobal.h
|
||||
index b5fddb8..1269c36 100644
|
||||
--- a/tdecore/tdeglobal.h
|
||||
+++ b/tdecore/tdeglobal.h
|
||||
@@ -25,8 +25,10 @@ class KCharsets;
|
||||
class TDEConfig;
|
||||
class TDESharedConfig;
|
||||
class TDEIconLoader;
|
||||
+#ifdef __TDE_HAVE_TDEHWLIB
|
||||
class TDEHardwareDevices;
|
||||
class TDEGlobalNetworkManager;
|
||||
+#endif
|
||||
class TDELocale;
|
||||
class TDEStandardDirs;
|
||||
class KStaticDeleterBase;
|
||||
@@ -79,6 +81,7 @@ public:
|
||||
*/
|
||||
static TDEIconLoader *iconLoader();
|
||||
|
||||
+#ifdef __TDE_HAVE_TDEHWLIB
|
||||
/**
|
||||
* Returns a TDEHardwareDevices object.
|
||||
* @return the global hardware devices object
|
||||
@@ -90,6 +93,7 @@ public:
|
||||
* @return the global network manager object
|
||||
*/
|
||||
static TDEGlobalNetworkManager *networkManager();
|
||||
+#endif
|
||||
|
||||
/**
|
||||
* Returns the global locale object.
|
||||
|
@ -1,704 +0,0 @@
|
||||
#
|
||||
# spec file for package tdelibs (version R14)
|
||||
#
|
||||
# Copyright (c) 2014 Trinity Desktop Environment
|
||||
#
|
||||
# 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://www.trinitydesktop.org/
|
||||
#
|
||||
|
||||
# BUILD WARNING:
|
||||
# Remove qt-devel and qt3-devel and any kde*-devel on your system !
|
||||
# Having KDE libraries may cause FTBFS here !
|
||||
|
||||
# TDE variables
|
||||
%define tde_epoch 2
|
||||
%if "%{?tde_version}" == ""
|
||||
%define tde_version 14.0.1
|
||||
%endif
|
||||
%define tde_pkg tdelibs
|
||||
%define tde_prefix /opt/trinity
|
||||
%define tde_bindir %{tde_prefix}/bin
|
||||
%define tde_confdir %{_sysconfdir}/trinity
|
||||
%define tde_datadir %{tde_prefix}/share
|
||||
%define tde_docdir %{tde_datadir}/doc
|
||||
%define tde_includedir %{tde_prefix}/include
|
||||
%define tde_libdir %{tde_prefix}/%{_lib}
|
||||
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||||
%define tde_tdedocdir %{tde_docdir}/tde
|
||||
%define tde_tdeincludedir %{tde_includedir}/tde
|
||||
%define tde_tdelibdir %{tde_libdir}/trinity
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?tde_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%endif
|
||||
|
||||
|
||||
Name: trinity-%{tde_pkg}
|
||||
Version: %{tde_version}
|
||||
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||||
Summary: TDE Libraries
|
||||
Group: System/GUI/Other
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if 0%{?suse_version}
|
||||
License: GPL-2.0+
|
||||
%else
|
||||
License: GPLv2+
|
||||
%endif
|
||||
|
||||
#Vendor: Trinity Desktop
|
||||
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
|
||||
Prefix: %{tde_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
|
||||
Obsoletes: tdelibs < %{version}-%{release}
|
||||
Provides: tdelibs = %{version}-%{release}
|
||||
Obsoletes: trinity-kdelibs < %{version}-%{release}
|
||||
Provides: trinity-kdelibs = %{version}-%{release}
|
||||
Obsoletes: trinity-kdelibs-apidocs < %{version}-%{release}
|
||||
Provides: trinity-kdelibs-apidocs = %{version}-%{release}
|
||||
|
||||
# for set_permissions macro
|
||||
%if 0%{?suse_version}
|
||||
PreReq: permissions
|
||||
%endif
|
||||
|
||||
# Trinity dependencies
|
||||
BuildRequires: libtqt4-devel = %{tde_epoch}:4.2.0
|
||||
BuildRequires: trinity-arts-devel >= %{tde_epoch}:1.5.10
|
||||
BuildRequires: libdbus-tqt-1-devel >= %{tde_epoch}:0.63
|
||||
BuildRequires: libdbus-1-tqt-devel >= %{tde_epoch}:0.9
|
||||
BuildRequires: trinity-filesystem >= %{tde_version}
|
||||
|
||||
Requires: trinity-arts >= %{tde_epoch}:1.5.10
|
||||
Requires: trinity-filesystem >= %{tde_version}
|
||||
Requires: fileshareset >= 2.0
|
||||
|
||||
BuildRequires: cmake >= 2.8
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: fdupes
|
||||
|
||||
# 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
|
||||
|
||||
# KRB5 support
|
||||
BuildRequires: krb5-devel
|
||||
|
||||
# XSLT support
|
||||
BuildRequires: libxslt-devel
|
||||
|
||||
# ALSA support
|
||||
BuildRequires: alsa-lib-devel
|
||||
|
||||
# IDN support
|
||||
BuildRequires: libidn-devel
|
||||
|
||||
# CUPS support
|
||||
BuildRequires: cups-devel
|
||||
|
||||
# TIFF support
|
||||
BuildRequires: libtiff-devel
|
||||
|
||||
# OPENSSL support
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
# GLIB2 support
|
||||
BuildRequires: glib2-devel
|
||||
|
||||
# LUA support are not ready yet
|
||||
#BuildRequires: lua-devel
|
||||
|
||||
# LIBART_LGPL support
|
||||
BuildRequires: libart_lgpl-devel
|
||||
|
||||
# ASPELL support
|
||||
BuildRequires: aspell
|
||||
BuildRequires: aspell-devel
|
||||
|
||||
# GAMIN support
|
||||
# Not on openSUSE.
|
||||
%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%define with_gamin 1
|
||||
BuildRequires: gamin-devel
|
||||
%endif
|
||||
|
||||
# PCRE support
|
||||
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_pcre 1
|
||||
BuildRequires: pcre-devel
|
||||
%endif
|
||||
|
||||
# INOTIFY support
|
||||
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_inotify 1
|
||||
%endif
|
||||
|
||||
# BZIP2 support
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: libbz2-devel
|
||||
%else
|
||||
BuildRequires: bzip2-devel
|
||||
%endif
|
||||
|
||||
# UTEMPTER support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}utempter-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >=5 || 0%{?fedora}
|
||||
BuildRequires: libutempter-devel
|
||||
%endif
|
||||
%if 0%{?rhel} == 4
|
||||
BuildRequires: utempter
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: utempter-devel
|
||||
%endif
|
||||
|
||||
# HSPELL support
|
||||
%if 0%{?rhel} >=6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%define with_hspell 1
|
||||
BuildRequires: hspell-devel
|
||||
%endif
|
||||
|
||||
# JASPER support
|
||||
%if 0%{?rhel} >=6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_jasper 1
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: libjasper-devel
|
||||
%endif
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}jasper-devel
|
||||
%endif
|
||||
%if 0%{?rhel} || 0%{?fedora}
|
||||
BuildRequires: jasper-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# AVAHI support
|
||||
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_avahi 1
|
||||
BuildRequires: libavahi-tqt-devel >= 1:0.6.30
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}avahi-client-devel
|
||||
Requires: %{_lib}avahi-client3
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||||
BuildRequires: avahi-devel
|
||||
Requires: avahi
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# OPENEXR support
|
||||
%if 0%{?rhel} >=6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||||
%define with_openexr 1
|
||||
BuildRequires: OpenEXR-devel
|
||||
%endif
|
||||
|
||||
# LIBTOOL
|
||||
BuildRequires: libtool
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}ltdl-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220
|
||||
BuildRequires: libtool-ltdl-devel
|
||||
%endif
|
||||
|
||||
# X11 support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: x11-proto-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||||
BuildRequires: xorg-x11-proto-devel
|
||||
%endif
|
||||
%if 0%{?rhel} == 4
|
||||
BuildRequires: xorg-x11-devel
|
||||
%endif
|
||||
|
||||
# ICEAUTH
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} >= 1220
|
||||
Requires: iceauth
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora}
|
||||
Requires: xorg-x11-server-utils
|
||||
%endif
|
||||
%if 0%{?rhel} == 4 || 0%{?suse_version}
|
||||
Requires: xorg-x11
|
||||
%endif
|
||||
|
||||
# XZ support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||||
%define with_lzma 1
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}lzma-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||||
BuildRequires: xz-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# Certificates support
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 6
|
||||
BuildRequires: ca-certificates
|
||||
Requires: ca-certificates
|
||||
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 6
|
||||
%define cacert %{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||||
%endif
|
||||
%if 0%{?fedora} == 18 || 0%{?fedora} == 19
|
||||
%define cacert %{_sysconfdir}/ssl/certs/ca-certificates.crt
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%if 0%{?pclinuxos}
|
||||
Requires: rootcerts
|
||||
%define cacert %{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||||
%else
|
||||
%define cacert %{_sysconfdir}/ssl/certs/ca-bundle.crt
|
||||
Requires: openssl
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?rhel} == 5
|
||||
%define cacert %{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||||
Requires: openssl
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%define cacert %{_sysconfdir}/ssl/ca-bundle.pem
|
||||
BuildRequires: ca-certificates
|
||||
Requires: ca-certificates
|
||||
%endif
|
||||
%if "%{cacert}" != ""
|
||||
Requires: %{cacert}
|
||||
%endif
|
||||
|
||||
# XRANDR support
|
||||
# On RHEL5, xrandr library is too old.
|
||||
%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?suse_version}
|
||||
%define with_xrandr 1
|
||||
%endif
|
||||
|
||||
# XCOMPOSITE support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
%if 0%{?mgaversion} >= 4
|
||||
%define xcomposite_devel %{_lib}xcomposite-devel
|
||||
%else
|
||||
%define xcomposite_devel %{_lib}xcomposite%{?mgaversion:1}-devel
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220
|
||||
%define xcomposite_devel libXcomposite-devel
|
||||
%endif
|
||||
%{?xcomposite_devel:BuildRequires: %{xcomposite_devel}}
|
||||
|
||||
# XT support
|
||||
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
|
||||
%define xt_devel libXt-devel
|
||||
%endif
|
||||
%{?xt_devel:BuildRequires: %{xt_devel}}
|
||||
|
||||
### New features in TDE R14
|
||||
|
||||
# LIBMAGIC support
|
||||
%if 0%{?rhel} == 5
|
||||
BuildRequires: file
|
||||
%else
|
||||
BuildRequires: file-devel
|
||||
%endif
|
||||
|
||||
# NETWORKMANAGER support
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?suse_version}
|
||||
%define with_nm 1
|
||||
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||||
BuildRequires: %{_lib}nm-util-devel
|
||||
%endif
|
||||
%if 0%{?rhel} >= 6 || 0%{?fedora}
|
||||
BuildRequires: NetworkManager-glib-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: NetworkManager-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# UDEV support
|
||||
%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 6
|
||||
%define with_tdehwlib 1
|
||||
BuildRequires: libudev-devel
|
||||
%endif
|
||||
|
||||
# HAL support
|
||||
%if 0%{?rhel} == 5
|
||||
%define with_hal 1
|
||||
%endif
|
||||
|
||||
# UDISKS support
|
||||
%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} == 6
|
||||
%if 0%{?pclinuxos} == 0
|
||||
%define with_udisks 1
|
||||
BuildRequires: udisks-devel
|
||||
Requires: udisks
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# PMOUNT support
|
||||
#Requires: pmount
|
||||
|
||||
# UDISKS2 support
|
||||
%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 7
|
||||
%define with_udisks2 1
|
||||
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
||||
BuildRequires: libudisks2-devel
|
||||
%else
|
||||
BuildRequires: udisks2-devel
|
||||
%endif
|
||||
Requires: udisks2
|
||||
%endif
|
||||
|
||||
# DEVICEKIT POWER support
|
||||
%if 0%{?rhel} == 6
|
||||
%define with_devkitpower 1
|
||||
Requires: DeviceKit-power
|
||||
%endif
|
||||
|
||||
# UPOWER support
|
||||
%if 0%{?fedora} || 0%{?suse_version} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?rhel} >= 7
|
||||
%define with_upower 1
|
||||
Requires: upower
|
||||
%endif
|
||||
|
||||
# SYSTEMD support
|
||||
%if 0%{?fedora} || 0%{?suse_version} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?rhel} >= 7
|
||||
%define with_systemd 1
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
Libraries for the Trinity Desktop Environment:
|
||||
TDE Libraries included: tdecore (TDE core library), tdeui (user interface),
|
||||
kfm (file manager), tdehtmlw (HTML widget), tdeio (Input/Output, networking),
|
||||
kspell (spelling checker), jscript (javascript), kab (addressbook),
|
||||
kimgio (image manipulation).
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB README TODO
|
||||
%{tde_bindir}/artsmessage
|
||||
%{tde_bindir}/cupsdconf
|
||||
%{tde_bindir}/cupsdoprint
|
||||
%{tde_bindir}/dcop
|
||||
%{tde_bindir}/dcopclient
|
||||
%{tde_bindir}/dcopfind
|
||||
%{tde_bindir}/dcopobject
|
||||
%{tde_bindir}/dcopquit
|
||||
%{tde_bindir}/dcopref
|
||||
%{tde_bindir}/dcopserver
|
||||
%{tde_bindir}/dcopserver_shutdown
|
||||
%{tde_bindir}/dcopstart
|
||||
%{tde_bindir}/imagetops
|
||||
%{tde_bindir}/tdeab2tdeabc
|
||||
%{tde_bindir}/kaddprinterwizard
|
||||
%{tde_bindir}/tdebuildsycoca
|
||||
%{tde_bindir}/tdecmshell
|
||||
%{tde_bindir}/tdeconf_update
|
||||
%{tde_bindir}/kcookiejar
|
||||
%{tde_bindir}/tde-config
|
||||
%{tde_bindir}/tde-menu
|
||||
%{tde_bindir}/kded
|
||||
%{tde_bindir}/tdeinit
|
||||
%{tde_bindir}/tdeinit_shutdown
|
||||
%{tde_bindir}/tdeinit_wrapper
|
||||
%{tde_bindir}/tdesu_stub
|
||||
%{tde_bindir}/kdetcompmgr
|
||||
%{tde_bindir}/kdontchangethehostname
|
||||
%{tde_bindir}/tdedostartupconfig
|
||||
%{tde_bindir}/tdefile
|
||||
%{tde_bindir}/kfmexec
|
||||
%{tde_bindir}/tdehotnewstuff
|
||||
%{tde_bindir}/kinstalltheme
|
||||
%{tde_bindir}/tdeio_http_cache_cleaner
|
||||
%{tde_bindir}/tdeio_uiserver
|
||||
%{tde_bindir}/tdeioexec
|
||||
%{tde_bindir}/tdeioslave
|
||||
%{tde_bindir}/tdeiso_info
|
||||
%{tde_bindir}/tdelauncher
|
||||
%if 0%{?with_elficon}
|
||||
%{tde_bindir}/tdelfeditor
|
||||
%endif
|
||||
%{tde_bindir}/tdemailservice
|
||||
%{tde_bindir}/tdemimelist
|
||||
%{tde_bindir}/tdesendbugmail
|
||||
%{tde_bindir}/kshell
|
||||
%{tde_bindir}/tdestartupconfig
|
||||
%{tde_bindir}/tdetelnetservice
|
||||
%{tde_bindir}/tdetradertest
|
||||
%{tde_bindir}/kwrapper
|
||||
%{tde_bindir}/lnusertemp
|
||||
%{tde_bindir}/make_driver_db_cups
|
||||
%{tde_bindir}/make_driver_db_lpr
|
||||
%{tde_bindir}/meinproc
|
||||
%{tde_bindir}/networkstatustestservice
|
||||
%{tde_bindir}/start_tdeinit_wrapper
|
||||
%{tde_bindir}/checkXML
|
||||
%{tde_bindir}/ksvgtopng
|
||||
%{tde_bindir}/tdeunittestmodrunner
|
||||
%{tde_bindir}/preparetips
|
||||
%{tde_tdelibdir}/*
|
||||
%{tde_libdir}/lib*.so.*
|
||||
%{tde_libdir}/libtdeinit_*.la
|
||||
%{tde_libdir}/libtdeinit_*.so
|
||||
%{tde_datadir}/applications/tde/*.desktop
|
||||
%{tde_datadir}/autostart/tdeab2tdeabc.desktop
|
||||
%{tde_datadir}/applnk/tdeio_iso.desktop
|
||||
%{tde_datadir}/apps/*
|
||||
%exclude %{tde_datadir}/apps/ksgmltools2/
|
||||
%{tde_datadir}/emoticons/*
|
||||
%{tde_datadir}/icons/crystalsvg/
|
||||
%{tde_datadir}/icons/default.tde
|
||||
%{tde_datadir}/icons/hicolor/index.theme
|
||||
%{tde_datadir}/locale/all_languages
|
||||
%{tde_datadir}/mimelnk/*/*.desktop
|
||||
%{tde_datadir}/services/*
|
||||
%{tde_datadir}/servicetypes/*
|
||||
%{tde_tdedocdir}/HTML/en/common/*
|
||||
%{tde_tdedocdir}/HTML/en/tdespell/
|
||||
|
||||
# Global Trinity configuration
|
||||
%config %{tde_confdir}
|
||||
|
||||
# Some setuid binaries need special care
|
||||
%if 0%{?suse_version}
|
||||
%verify(not mode) %{tde_bindir}/kgrantpty
|
||||
%verify(not mode) %{tde_bindir}/kpac_dhcp_helper
|
||||
%verify(not mode) %{tde_bindir}/start_tdeinit
|
||||
%else
|
||||
%attr(4755,root,root) %{tde_bindir}/kgrantpty
|
||||
%attr(4755,root,root) %{tde_bindir}/kpac_dhcp_helper
|
||||
%attr(4711,root,root) %{tde_bindir}/start_tdeinit
|
||||
%endif
|
||||
|
||||
%config %{_sysconfdir}/xdg/menus/tde-applications.menu
|
||||
%config %{_sysconfdir}/xdg/menus/tde-applications.menu-no-kde
|
||||
|
||||
# DBUS stuff, related to TDE hwlib
|
||||
%if 0%{?with_tdehwlib}
|
||||
%{tde_bindir}/tde_dbus_hardwarecontrol
|
||||
%config %{_sysconfdir}/dbus-1/system.d/org.trinitydesktop.hardwarecontrol.conf
|
||||
%{_datadir}/dbus-1/system-services/org.trinitydesktop.hardwarecontrol.service
|
||||
%endif
|
||||
|
||||
%pre
|
||||
# TDE Bug #1074
|
||||
if [ -d "%{tde_datadir}/locale/all_languages" ]; then
|
||||
rm -rf "%{tde_datadir}/locale/all_languages"
|
||||
fi
|
||||
|
||||
%post
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%if 0%{?suse_version}
|
||||
# Sets permissions on setuid files (openSUSE specific)
|
||||
%set_permissions %{tde_bindir}/kgrantpty
|
||||
%set_permissions %{tde_bindir}/kpac_dhcp_helper
|
||||
%set_permissions %{tde_bindir}/start_tdeinit
|
||||
%endif
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig || :
|
||||
|
||||
##########
|
||||
|
||||
%package devel
|
||||
Summary: TDE Libraries (Development files)
|
||||
Group: Development/Libraries/X11
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Obsoletes: tdelibs-devel < %{version}-%{release}
|
||||
Provides: tdelibs-devel = %{version}-%{release}
|
||||
Obsoletes: trinity-kdelibs-devel < %{version}-%{release}
|
||||
Provides: trinity-kdelibs-devel = %{version}-%{release}
|
||||
|
||||
Requires: libtqt3-mt-devel >= 3.5.0
|
||||
Requires: libtqt4-devel = %{tde_epoch}:4.2.0
|
||||
Requires: trinity-arts-devel >= %{tde_epoch}:1.5.10
|
||||
Requires: libart_lgpl-devel
|
||||
%{?xcomposite_devel:Requires: %{xcomposite_devel}}
|
||||
%{?xt_devel:Requires: %{xt_devel}}
|
||||
|
||||
%description devel
|
||||
This package includes the header files you will need to compile
|
||||
applications for TDE.
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_bindir}/dcopidl*
|
||||
%{tde_bindir}/*config_compiler
|
||||
%{tde_bindir}/maketdewidgets
|
||||
%{tde_datadir}/apps/ksgmltools2/
|
||||
%{tde_tdeincludedir}/*
|
||||
%{tde_libdir}/*.la
|
||||
%{tde_libdir}/*.so
|
||||
%{tde_libdir}/*.a
|
||||
%exclude %{tde_libdir}/libtdeinit_*.la
|
||||
%exclude %{tde_libdir}/libtdeinit_*.so
|
||||
%{tde_datadir}/cmake/tdelibs.cmake
|
||||
%{tde_libdir}/pkgconfig/tdelibs.pc
|
||||
|
||||
%post devel
|
||||
/sbin/ldconfig || :
|
||||
|
||||
%postun devel
|
||||
/sbin/ldconfig || :
|
||||
|
||||
##########
|
||||
|
||||
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
##########
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR QTINC QTLIB
|
||||
export PATH="%{tde_bindir}:${PATH}"
|
||||
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
|
||||
|
||||
if [ -d "/usr/X11R6" ]; then
|
||||
export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -L/usr/X11R6/%{_lib} -I/usr/X11R6/include"
|
||||
fi
|
||||
|
||||
export TDEDIR="%{tde_prefix}"
|
||||
|
||||
if ! rpm -E %%cmake|grep -q "cd build"; then
|
||||
%__mkdir_p build
|
||||
cd build
|
||||
fi
|
||||
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
||||
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||||
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||||
-DCMAKE_SKIP_RPATH=OFF \
|
||||
-DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
|
||||
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DWITH_GCC_VISIBILITY=ON \
|
||||
\
|
||||
-DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
|
||||
-DBIN_INSTALL_DIR="%{tde_bindir}" \
|
||||
-DCONFIG_INSTALL_DIR="%{tde_confdir}" \
|
||||
-DDOC_INSTALL_DIR="%{tde_docdir}" \
|
||||
-DINCLUDE_INSTALL_DIR="%{tde_tdeincludedir}" \
|
||||
-DLIB_INSTALL_DIR="%{tde_libdir}" \
|
||||
-DPKGCONFIG_INSTALL_DIR="%{tde_libdir}/pkgconfig" \
|
||||
-DSHARE_INSTALL_PREFIX="%{tde_datadir}" \
|
||||
\
|
||||
-DWITH_ALL_OPTIONS=ON \
|
||||
-DWITH_ARTS=ON \
|
||||
-DWITH_ALSA=ON \
|
||||
-DWITH_LIBART=ON \
|
||||
-DWITH_LIBIDN=ON \
|
||||
-DWITH_SSL=ON \
|
||||
-DWITH_CUPS=ON \
|
||||
-DWITH_LUA=OFF \
|
||||
-DWITH_TIFF=ON \
|
||||
%{?!with_jasper:-DWITH_JASPER=OFF} \
|
||||
%{?!with_openexr:-DWITH_OPENEXR=OFF} \
|
||||
-DWITH_UTEMPTER=ON \
|
||||
%{?!with_elficon:-DWITH_ELFICON=OFF} \
|
||||
%{?!with_avahi:-DWITH_AVAHI=OFF} \
|
||||
%{?!with_pcre:-DWITH_PCRE=OFF} \
|
||||
%{?!with_inotify:-DWITH_INOTIFY=OFF} \
|
||||
%{?!with_gamin:-DWITH_GAMIN=OFF} \
|
||||
%{?!with_tdehwlib:-DWITH_TDEHWLIB=OFF} \
|
||||
%{?!with_tdehwlib:-DWITH_TDEHWLIB_DAEMONS=OFF} \
|
||||
%{?with_hal:-DWITH_HAL=ON} \
|
||||
%{?with_devkitpower:-DWITH_DEVKITPOWER=ON} \
|
||||
%{?with_systemd:-DWITH_LOGINDPOWER=ON} \
|
||||
%{?!with_upower:-DWITH_UPOWER=OFF} \
|
||||
%{?!with_udisks:-DWITH_UDISKS=OFF} \
|
||||
%{?!with_udisks2:-DWITH_UDISKS2=OFF} \
|
||||
-DWITH_CONSOLEKIT=ON \
|
||||
%{?with_nm:-DWITH_NETWORK_MANAGER_BACKEND=ON} \
|
||||
-DWITH_SUDO_TDESU_BACKEND=OFF \
|
||||
-DWITH_OLD_XDG_STD=OFF \
|
||||
%{?!with_lzma:-DWITH_LZMA=OFF} \
|
||||
-DWITH_LIBBFD=OFF \
|
||||
%{?!with_xrandr:-DWITH_XRANDR=OFF} \
|
||||
-DWITH_XCOMPOSITE=ON \
|
||||
-DWITH_KDE4_MENU_SUFFIX=OFF \
|
||||
\
|
||||
-DWITH_ASPELL=ON \
|
||||
%{?!with_hspell:-DWITH_HSPELL=OFF} \
|
||||
-DWITH_TDEICONLOADER_DEBUG=OFF \
|
||||
..
|
||||
|
||||
%__make %{?_smp_mflags} || %__make
|
||||
|
||||
|
||||
%install
|
||||
%__rm -rf "%{?buildroot}"
|
||||
%__make install DESTDIR="%{?buildroot}" -C build
|
||||
|
||||
# Use system-wide CA certificates
|
||||
%if "%{?cacert}" != ""
|
||||
%__rm -f "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
|
||||
%__ln_s "%{cacert}" "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
|
||||
%endif
|
||||
|
||||
# Symlinks duplicate files (mostly under 'ksgmltools2')
|
||||
%fdupes -s "%{?buildroot}"
|
||||
|
||||
# Fix 'tderesources.desktop' (openSUSE only)
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -r tderesources Qt X-TDE-settings-desktop
|
||||
%endif
|
||||
|
||||
# Remove setuid bit on some binaries.
|
||||
chmod 0755 "%{?buildroot}%{tde_bindir}/kgrantpty"
|
||||
chmod 0755 "%{?buildroot}%{tde_bindir}/kpac_dhcp_helper"
|
||||
chmod 0755 "%{?buildroot}%{tde_bindir}/start_tdeinit"
|
||||
|
||||
# fileshareset 2.0 is provided separately.
|
||||
# Remove integrated fileshareset 1.0 .
|
||||
%__rm -f "%{?buildroot}%{tde_bindir}/filesharelist"
|
||||
%__rm -f "%{?buildroot}%{tde_bindir}/fileshareset"
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{?buildroot}"
|
||||
|
||||
%if 0%{?suse_version}
|
||||
# Check permissions on setuid files (openSUSE specific)
|
||||
%verifyscript
|
||||
%verify_permissions -e %{tde_bindir}/kgrantpty
|
||||
%verify_permissions -e %{tde_bindir}/kpac_dhcp_helper
|
||||
%verify_permissions -e %{tde_bindir}/start_tdeinit
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jul 21 2015 Francois Andriot <francois.andriot@free.fr> - 14.0.1-1
|
||||
- Initial release for TDE 14.0.1
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue