parent
d3c1f8ab66
commit
2835777e9a
@ -0,0 +1,185 @@
|
||||
#
|
||||
# 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
|
@ -0,0 +1,177 @@
|
||||
#
|
||||
# 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
|
@ -0,0 +1,323 @@
|
||||
#
|
||||
# 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_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_datadir}/config/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}"
|
||||
|
||||
%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
|
@ -0,0 +1,11 @@
|
||||
--- trinity-kmymoney-14.0.1~pre4+bb123ba2/kmymoney2/mymoney/Makefile.am.orig 2015-06-28 12:58:53.565869007 +0200
|
||||
+++ trinity-kmymoney-14.0.1~pre4+bb123ba2/kmymoney2/mymoney/Makefile.am 2015-06-28 12:59:16.595869143 +0200
|
||||
@@ -33,7 +33,7 @@
|
||||
libkmm_mymoney_la_METASOURCES = AUTO
|
||||
|
||||
libkmm_mymoney_la_SOURCES = mymoneymoney.cpp mymoneyfinancialcalculator.cpp mymoneytransactionfilter.cpp mymoneyobject.cpp mymoneykeyvaluecontainer.cpp mymoneyobserver.cpp mymoneysubject.cpp mymoneysplit.cpp mymoneyinstitution.cpp mymoneyexception.cpp mymoneyinvesttransaction.cpp mymoneyutils.cpp mymoneysecurity.cpp mymoneytransaction.cpp mymoneyscheduled.cpp mymoneypayee.cpp mymoneyfile.cpp mymoneycategory.cpp mymoneyaccount.cpp mymoneyreport.cpp mymoneystatement.cpp mymoneyprice.cpp mymoneybudget.cpp mymoneyobjectcontainer.cpp mymoneyforecast.cpp
|
||||
-libkmm_mymoney_la_LDFLAGS = $(all_libraries) -version-info $(LIBVERSION)
|
||||
+libkmm_mymoney_la_LDFLAGS = $(all_libraries) -version-info $(LIBVERSION) $(LIB_QT) $(LIB_TDECORE)
|
||||
|
||||
SUBDIRS = storage
|
||||
|
@ -0,0 +1,226 @@
|
||||
#
|
||||
# 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
|
@ -0,0 +1,380 @@
|
||||
diff --git a/src/ckpass.c b/src/ckpass.c
|
||||
index 1da83c6..f3a14d0 100644
|
||||
--- a/src/ckpass.c
|
||||
+++ b/src/ckpass.c
|
||||
@@ -8,6 +8,8 @@
|
||||
** or PAM.
|
||||
*/
|
||||
|
||||
+extern x_malloc(size_t size, const char *file, int line);
|
||||
+
|
||||
/* Used for unused parameters to silence gcc warnings. */
|
||||
#define UNUSED __attribute__((__unused__))
|
||||
|
||||
@@ -46,7 +48,7 @@
|
||||
number information for debugging error messages without the user having to
|
||||
pass those in every time. */
|
||||
#define xcalloc(n, size) x_calloc((n), (size), __FILE__, __LINE__)
|
||||
-#define xmalloc(size) x_malloc((size), __FILE__, __LINE__)
|
||||
+#define smartcardauth_xmalloc(size) x_malloc((size), __FILE__, __LINE__)
|
||||
#define xrealloc(p, size) x_realloc((p), (size), __FILE__, __LINE__)
|
||||
#define xstrdup(p) x_strdup((p), __FILE__, __LINE__)
|
||||
#define xstrndup(p, size) x_strndup((p), (size), __FILE__, __LINE__)
|
||||
@@ -71,7 +73,7 @@ struct auth_info {
|
||||
** This function allocates an array of struct pam_response to return to the
|
||||
** PAM libraries that's never freed. For this program, this isn't much of an
|
||||
** issue, since it will likely only be called once and then the program will
|
||||
-** exit. This function uses malloc and strdup instead of xmalloc and xstrdup
|
||||
+** exit. This function uses malloc and strdup instead of smartcardauth_xmalloc and xstrdup
|
||||
** intentionally so that the PAM conversation will be closed cleanly if we
|
||||
** run out of memory rather than simply terminated.
|
||||
**
|
||||
@@ -82,8 +84,9 @@ static int pass_conv(int num_msg, const struct pam_message **msgm UNUSED, struct
|
||||
int i;
|
||||
|
||||
*response = malloc(num_msg * sizeof(struct pam_response));
|
||||
- if (*response == NULL)
|
||||
+ if (*response == NULL) {
|
||||
return PAM_CONV_ERR;
|
||||
+ }
|
||||
for (i = 0; i < num_msg; i++) {
|
||||
(*response)[i].resp = strdup((char *)appdata_ptr);
|
||||
(*response)[i].resp_retcode = 0;
|
||||
@@ -115,17 +118,21 @@ static bool auth_pam(const char *username, char *password)
|
||||
conv.conv = pass_conv;
|
||||
conv.appdata_ptr = password;
|
||||
status = pam_start("nnrpd", username, &conv, &pamh);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_start failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
status = pam_authenticate(pamh, PAM_SILENT);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_authenticate failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
status = pam_acct_mgmt(pamh, PAM_SILENT);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_acct_mgmt failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
status = pam_end(pamh, status);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_end failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
|
||||
/* If we get to here, the user successfully authenticated. */
|
||||
return true;
|
||||
@@ -153,8 +160,9 @@ password_dbm(char *name, const char *file)
|
||||
char *password;
|
||||
|
||||
database = dbm_open(file, O_RDONLY, 0600);
|
||||
- if (database == NULL)
|
||||
+ if (database == NULL) {
|
||||
return NULL;
|
||||
+ }
|
||||
key.dptr = name;
|
||||
key.dsize = strlen(name);
|
||||
value = dbm_fetch(database, key);
|
||||
@@ -162,7 +170,7 @@ password_dbm(char *name, const char *file)
|
||||
dbm_close(database);
|
||||
return NULL;
|
||||
}
|
||||
- password = xmalloc(value.dsize + 1);
|
||||
+ password = smartcardauth_xmalloc(value.dsize + 1);
|
||||
strlcpy(password, value.dptr, value.dsize + 1);
|
||||
dbm_close(database);
|
||||
return password;
|
||||
@@ -188,8 +196,10 @@ password_shadow(const char *user)
|
||||
struct spwd *spwd;
|
||||
|
||||
spwd = getspnam(user);
|
||||
- if (spwd != NULL)
|
||||
- return xstrdup(spwd->sp_pwdp);
|
||||
+ if (spwd != NULL) {
|
||||
+ char* ret = xstrdup(spwd->sp_pwdp);
|
||||
+ return ret;
|
||||
+ }
|
||||
return NULL;
|
||||
}
|
||||
#endif /* HAVE_GETSPNAM */
|
||||
@@ -206,8 +216,10 @@ password_system(const char *username)
|
||||
struct passwd *pwd;
|
||||
|
||||
pwd = getpwnam(username);
|
||||
- if (pwd != NULL)
|
||||
- return xstrdup(pwd->pw_passwd);
|
||||
+ if (pwd != NULL) {
|
||||
+ char* ret = xstrdup(pwd->pw_passwd);
|
||||
+ return ret;
|
||||
+ }
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -225,12 +237,15 @@ group_system(const char *username)
|
||||
struct group *gr;
|
||||
|
||||
pwd = getpwnam(username);
|
||||
- if (pwd == NULL)
|
||||
+ if (pwd == NULL) {
|
||||
return NULL;
|
||||
+ }
|
||||
gr = getgrgid(pwd->pw_gid);
|
||||
- if (gr == NULL)
|
||||
+ if (gr == NULL) {
|
||||
return NULL;
|
||||
- return xstrdup(gr->gr_name);
|
||||
+ }
|
||||
+ char* ret = xstrdup(gr->gr_name);
|
||||
+ return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,12 +257,13 @@ output_user(const char *username, bool wantgroup)
|
||||
{
|
||||
if (wantgroup) {
|
||||
char *group = group_system(username);
|
||||
- if (group == NULL)
|
||||
+ if (group == NULL) {
|
||||
die("group info for user %s not available", username);
|
||||
+ }
|
||||
printf("User:%s@%s\n", username, group);
|
||||
- }
|
||||
- else
|
||||
+ } else {
|
||||
printf("User:%s\n", username);
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
@@ -264,7 +280,7 @@ check_password(const char* username, const char* password)
|
||||
bool wantgroup = false;
|
||||
struct auth_info *authinfo = NULL;
|
||||
|
||||
- authinfo = xmalloc(sizeof(struct auth_info));
|
||||
+ authinfo = smartcardauth_xmalloc(sizeof(struct auth_info));
|
||||
authinfo->username = username;
|
||||
authinfo->password = password;
|
||||
|
||||
@@ -273,12 +289,14 @@ check_password(const char* username, const char* password)
|
||||
return 0;
|
||||
}
|
||||
password = password_system(authinfo->username);
|
||||
- if (password == NULL)
|
||||
+ if (password == NULL) {
|
||||
return 1;
|
||||
- if (strcmp(password, crypt(authinfo->password, password)) != 0)
|
||||
+ }
|
||||
+ if (strcmp(password, crypt(authinfo->password, password)) != 0) {
|
||||
return 1;
|
||||
+ }
|
||||
|
||||
/* The password matched. */
|
||||
output_user(authinfo->username, wantgroup);
|
||||
return 0;
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/src/ckpasswd.c b/src/ckpasswd.c
|
||||
index 9dbdbcf..a0faa15 100644
|
||||
--- a/src/ckpasswd.c
|
||||
+++ b/src/ckpasswd.c
|
||||
@@ -83,8 +83,9 @@ static int pass_conv(int num_msg, const struct pam_message **msgm UNUSED, struct
|
||||
int i;
|
||||
|
||||
*response = malloc(num_msg * sizeof(struct pam_response));
|
||||
- if (*response == NULL)
|
||||
+ if (*response == NULL) {
|
||||
return PAM_CONV_ERR;
|
||||
+ }
|
||||
for (i = 0; i < num_msg; i++) {
|
||||
(*response)[i].resp = strdup((char *)appdata_ptr);
|
||||
(*response)[i].resp_retcode = 0;
|
||||
@@ -116,17 +117,21 @@ static bool auth_pam(const char *username, char *password)
|
||||
conv.conv = pass_conv;
|
||||
conv.appdata_ptr = password;
|
||||
status = pam_start("nnrpd", username, &conv, &pamh);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_start failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
status = pam_authenticate(pamh, PAM_SILENT);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_authenticate failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
status = pam_acct_mgmt(pamh, PAM_SILENT);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_acct_mgmt failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
status = pam_end(pamh, status);
|
||||
- if (status != PAM_SUCCESS)
|
||||
+ if (status != PAM_SUCCESS) {
|
||||
die("pam_end failed: %s", pam_strerror(pamh, status));
|
||||
+ }
|
||||
|
||||
/* If we get to here, the user successfully authenticated. */
|
||||
return true;
|
||||
@@ -154,8 +159,9 @@ password_dbm(char *name, const char *file)
|
||||
char *password;
|
||||
|
||||
database = dbm_open(file, O_RDONLY, 0600);
|
||||
- if (database == NULL)
|
||||
+ if (database == NULL) {
|
||||
return NULL;
|
||||
+ }
|
||||
key.dptr = name;
|
||||
key.dsize = strlen(name);
|
||||
value = dbm_fetch(database, key);
|
||||
@@ -189,8 +195,10 @@ password_shadow(const char *user)
|
||||
struct spwd *spwd;
|
||||
|
||||
spwd = getspnam(user);
|
||||
- if (spwd != NULL)
|
||||
- return xstrdup(spwd->sp_pwdp);
|
||||
+ if (spwd != NULL) {
|
||||
+ char* ret = xstrdup(spwd->sp_pwdp);
|
||||
+ return ret;
|
||||
+ }
|
||||
return NULL;
|
||||
}
|
||||
#endif /* HAVE_GETSPNAM */
|
||||
@@ -207,8 +215,10 @@ password_system(const char *username)
|
||||
struct passwd *pwd;
|
||||
|
||||
pwd = getpwnam(username);
|
||||
- if (pwd != NULL)
|
||||
- return xstrdup(pwd->pw_passwd);
|
||||
+ if (pwd != NULL) {
|
||||
+ char* ret = xstrdup(pwd->pw_passwd);
|
||||
+ return ret;
|
||||
+ }
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -226,12 +236,15 @@ group_system(const char *username)
|
||||
struct group *gr;
|
||||
|
||||
pwd = getpwnam(username);
|
||||
- if (pwd == NULL)
|
||||
+ if (pwd == NULL) {
|
||||
return NULL;
|
||||
+ }
|
||||
gr = getgrgid(pwd->pw_gid);
|
||||
- if (gr == NULL)
|
||||
+ if (gr == NULL) {
|
||||
return NULL;
|
||||
- return xstrdup(gr->gr_name);
|
||||
+ }
|
||||
+ char* ret = xstrdup(gr->gr_name);
|
||||
+ return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -243,12 +256,13 @@ output_user(const char *username, bool wantgroup)
|
||||
{
|
||||
if (wantgroup) {
|
||||
char *group = group_system(username);
|
||||
- if (group == NULL)
|
||||
+ if (group == NULL) {
|
||||
die("group info for user %s not available", username);
|
||||
+ }
|
||||
printf("User:%s@%s\n", username, group);
|
||||
- }
|
||||
- else
|
||||
+ } else {
|
||||
printf("User:%s\n", username);
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
@@ -276,29 +290,35 @@ main(int argc, char *argv[])
|
||||
while ((opt = getopt(argc, argv, "gf:u:p:" OPT_DBM OPT_SHADOW)) != -1) {
|
||||
switch (opt) {
|
||||
case 'g':
|
||||
- if (type == AUTH_DBM || type == AUTH_FILE)
|
||||
+ if (type == AUTH_DBM || type == AUTH_FILE) {
|
||||
die("-g option is incompatible with -d or -f");
|
||||
+ }
|
||||
wantgroup = true;
|
||||
break;
|
||||
case 'd':
|
||||
- if (type != AUTH_NONE)
|
||||
+ if (type != AUTH_NONE) {
|
||||
die("only one of -s, -f, or -d allowed");
|
||||
- if (wantgroup)
|
||||
+ }
|
||||
+ if (wantgroup) {
|
||||
die("-g option is incompatible with -d or -f");
|
||||
+ }
|
||||
type = AUTH_DBM;
|
||||
filename = optarg;
|
||||
break;
|
||||
case 'f':
|
||||
- if (type != AUTH_NONE)
|
||||
+ if (type != AUTH_NONE) {
|
||||
die("only one of -s, -f, or -d allowed");
|
||||
- if (wantgroup)
|
||||
+ }
|
||||
+ if (wantgroup) {
|
||||
die("-g option is incompatible with -d or -f");
|
||||
+ }
|
||||
type = AUTH_FILE;
|
||||
filename = optarg;
|
||||
break;
|
||||
case 's':
|
||||
- if (type != AUTH_NONE)
|
||||
+ if (type != AUTH_NONE) {
|
||||
die("only one of -s, -f, or -d allowed");
|
||||
+ }
|
||||
type = AUTH_SHADOW;
|
||||
break;
|
||||
case 'u':
|
||||
@@ -319,12 +339,15 @@ main(int argc, char *argv[])
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
- if (argc != optind)
|
||||
- die("extra arguments given");
|
||||
- if (authinfo != NULL && authinfo->username == NULL)
|
||||
+ if (argc != optind) {
|
||||
+ die("extra arguments given");
|
||||
+ }
|
||||
+ if (authinfo != NULL && authinfo->username == NULL) {
|
||||
die("-u option is required if -p option is given");
|
||||
- if (authinfo != NULL && authinfo->password == NULL)
|
||||
+ }
|
||||
+ if (authinfo != NULL && authinfo->password == NULL) {
|
||||
die("-p option is required if -u option is given");
|
||||
+ }
|
||||
|
||||
// /* Unless a username or password was given on the command line, assume
|
||||
// we're being run by nnrpd. */
|
||||
@@ -339,8 +362,9 @@ main(int argc, char *argv[])
|
||||
switch (type) {
|
||||
case AUTH_SHADOW:
|
||||
password = password_shadow(authinfo->username);
|
||||
- if (password == NULL)
|
||||
+ if (password == NULL) {
|
||||
password = password_system(authinfo->username);
|
||||
+ }
|
||||
break;
|
||||
// case AUTH_FILE:
|
||||
// password = password_file(authinfo->username, filename);
|
||||
@@ -357,10 +381,12 @@ main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
- if (password == NULL)
|
||||
+ if (password == NULL) {
|
||||
die("user %s unknown", authinfo->username);
|
||||
- if (strcmp(password, crypt(authinfo->password, password)) != 0)
|
||||
+ }
|
||||
+ if (strcmp(password, crypt(authinfo->password, password)) != 0) {
|
||||
die("invalid password for user %s", authinfo->username);
|
||||
+ }
|
||||
|
||||
/* The password matched. */
|
||||
output_user(authinfo->username, wantgroup);
|
@ -0,0 +1 @@
|
||||
setBadness('64bit-portability-issue', 0)
|
@ -0,0 +1,192 @@
|
||||
#
|
||||
# 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_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}"
|
||||
|
||||
|
||||
%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_datadir}/config/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
|
@ -0,0 +1,206 @@
|
||||
#
|
||||
# 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,568 @@
|
||||
#
|
||||
# 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
|
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session include system-auth
|
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session include system-auth
|
@ -0,0 +1,16 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_env.so
|
||||
auth required pam_permit.so
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
-session optional pam_ck_connector.so
|
||||
session required pam_selinux.so open
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_namespace.so
|
||||
session include system-auth
|
||||
session include postlogin
|
@ -0,0 +1,11 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_env.so
|
||||
auth required pam_permit.so
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_namespace.so
|
||||
session include system-auth
|
@ -0,0 +1,21 @@
|
||||
#%PAM-1.0
|
||||
auth [success=done ignore=ignore default=bad] pam_selinux_permit.so
|
||||
auth required pam_env.so
|
||||
auth substack system-auth
|
||||
-auth optional pam_gnome_keyring.so
|
||||
-auth optional pam_kwallet.so
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
-session optional pam_ck_connector.so
|
||||
session required pam_selinux.so open
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_namespace.so
|
||||
session include system-auth
|
||||
-session optional pam_gnome_keyring.so auto_start
|
||||
-session optional pam_kwallet.so
|
||||
session include postlogin
|
@ -0,0 +1,15 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_env.so
|
||||
auth required pam_succeed_if.so
|
||||
auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
|
||||
auth substack system-auth
|
||||
-auth optional pam_kwallet.so
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_namespace.so
|
||||
session include system-auth
|
||||
-session optional pam_kwallet.so
|
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session include system-auth
|
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session include system-auth
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,11 @@
|
||||
|
||||
module tdm.fc18 1.0;
|
||||
|
||||
require {
|
||||
type fprintd_t;
|
||||
type initrc_t;
|
||||
class dbus send_msg;
|
||||
}
|
||||
|
||||
#============= fprintd_t ==============
|
||||
allow fprintd_t initrc_t:dbus send_msg;
|
@ -0,0 +1,11 @@
|
||||
|
||||
module tdm.fc20 1.0;
|
||||
|
||||
require {
|
||||
type fprintd_t;
|
||||
type init_t;
|
||||
class dbus send_msg;
|
||||
}
|
||||
|
||||
#============= fprintd_t ==============
|
||||
allow fprintd_t init_t:dbus send_msg;
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
|
||||
module tdm.fc20 1.0;
|
||||
|
||||
require {
|
||||
type fprintd_t;
|
||||
type init_t;
|
||||
class dbus send_msg;
|
||||
}
|
||||
|
||||
#============= fprintd_t ==============
|
||||
allow fprintd_t init_t:dbus send_msg;
|
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=The Trinity login manager
|
||||
Conflicts=getty@tty1.service
|
||||
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/trinity/bin/kdm
|
||||
Restart=always
|
||||
IgnoreSIGPIPE=no
|
||||
|
||||
[Install]
|
||||
Alias=display-manager.service
|
@ -0,0 +1,700 @@
|
||||
#
|
||||
# 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_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}/config/*
|
||||
%{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/
|
||||
|
||||
# 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}" \
|
||||
-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
|
||||
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1
|
||||
- Initial release for TDE 14.0.0
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,199 @@
|
||||
alsa-lib-devel
|
||||
aspell
|
||||
aspell-devel
|
||||
audiofile-devel
|
||||
autotrace
|
||||
avahi-devel
|
||||
bind-devel
|
||||
binutils-devel
|
||||
bison
|
||||
boost-devel
|
||||
bzip2-devel
|
||||
ccache
|
||||
ccrtp-devel
|
||||
cdparanoia
|
||||
cdparanoia-devel
|
||||
chrpath
|
||||
clucene-core-devel
|
||||
cmake
|
||||
commoncpp2-devel
|
||||
cpp
|
||||
cppunit-devel
|
||||
createrepo
|
||||
cups-devel
|
||||
db4-devel
|
||||
dbus-glib-devel
|
||||
djvulibre
|
||||
djvulibre-devel
|
||||
doxygen
|
||||
dssi-devel
|
||||
esound-devel
|
||||
exiv2-devel
|
||||
fdupes
|
||||
ffmpeg-devel
|
||||
fftw-devel
|
||||
file-devel
|
||||
flac-devel
|
||||
flex-static
|
||||
fribidi-devel
|
||||
gamin-devel
|
||||
gcc
|
||||
gcc-c++
|
||||
gettext-devel
|
||||
glib-devel
|
||||
gmp-devel
|
||||
gnokii-devel
|
||||
gperf
|
||||
gpgme-devel
|
||||
gphoto2-devel
|
||||
GraphicsMagick-devel
|
||||
gsl-devel
|
||||
gstreamer-devel
|
||||
gstreamer-plugins-base-devel
|
||||
gtk2-devel
|
||||
gtk+-devel
|
||||
gtk-doc
|
||||
guile-devel
|
||||
hspell-devel
|
||||
html2ps
|
||||
icu
|
||||
ImageMagick-devel
|
||||
imake
|
||||
imlib-devel
|
||||
jack-audio-connection-kit-devel
|
||||
jasper-devel
|
||||
java-1.8.0-openjdk-devel
|
||||
java-devel
|
||||
java-openjdk
|
||||
lame-devel
|
||||
lcms-devel
|
||||
libacl-devel
|
||||
libart_lgpl-devel
|
||||
libblkid-devel
|
||||
libcap-devel
|
||||
libcdio-devel
|
||||
libcdio-paranoia-devel
|
||||
libcurl-devel
|
||||
libdb-cxx-devel
|
||||
libdb-devel
|
||||
libdvdread-devel
|
||||
libfontenc-devel
|
||||
libgadu-devel
|
||||
libgpod-devel
|
||||
libgsf-devel
|
||||
libical-devel
|
||||
libidn-devel
|
||||
libifp-devel
|
||||
liblo-devel
|
||||
liblrdf-devel
|
||||
libmad-devel
|
||||
libmng-devel
|
||||
libmp4v2-devel
|
||||
libmpcdec-devel
|
||||
libmtp-devel
|
||||
libmusicbrainz-devel
|
||||
libnjb-devel
|
||||
libofx-devel
|
||||
libogg-devel
|
||||
libotr-devel
|
||||
libpaper-devel
|
||||
libpqxx-devel
|
||||
libraw1394-devel
|
||||
librsvg2
|
||||
librsvg2-tools
|
||||
libsamplerate-devel
|
||||
libsmbclient-devel
|
||||
libsndfile-devel
|
||||
libssh2-devel
|
||||
libtheora-devel
|
||||
libtiff-devel
|
||||
libtool
|
||||
libtool-ltdl-devel
|
||||
libtunepimp-devel
|
||||
libudev-devel
|
||||
libutempter-devel
|
||||
libv4l-devel
|
||||
libvisual-devel
|
||||
libvorbis-devel
|
||||
libwmf-devel
|
||||
libwpd-devel
|
||||
libXaw-devel
|
||||
libXcomposite-devel
|
||||
libXdamage-devel
|
||||
libXdmcp-devel
|
||||
libxkbfile-devel
|
||||
libXScrnSaver-devel
|
||||
libxslt-devel
|
||||
libXtst-devel
|
||||
libXv-devel
|
||||
libXxf86dga-devel
|
||||
libXxf86vm-devel
|
||||
libzrtpcpp-devel
|
||||
lirc-devel
|
||||
lm_sensors-devel
|
||||
meanwhile-devel
|
||||
mftrace
|
||||
mysql-devel
|
||||
nas-devel
|
||||
neon-devel
|
||||
netpbm-progs
|
||||
net-snmp-devel
|
||||
net-tools
|
||||
NetworkManager-glib-devel
|
||||
ocaml
|
||||
ocaml(compiler)
|
||||
OpenEXR-devel
|
||||
openldap-devel
|
||||
openslp-devel
|
||||
opensp-devel
|
||||
ortp-devel
|
||||
pam-devel
|
||||
pciutils-devel
|
||||
pcre-devel
|
||||
pcsc-lite-devel
|
||||
perl
|
||||
perl-devel
|
||||
perl(ExtUtils::MakeMaker)
|
||||
perl(XML::Parser)
|
||||
pilot-link-devel
|
||||
poppler-devel
|
||||
postgresql-devel
|
||||
pth-devel
|
||||
pulseaudio-libs-devel
|
||||
recode
|
||||
redhat-rpm-config
|
||||
rpm-build
|
||||
ruby
|
||||
ruby-devel
|
||||
sane-backends-devel
|
||||
scons
|
||||
SDL-devel
|
||||
sip-devel
|
||||
speex-devel
|
||||
sqlite-devel
|
||||
subversion-devel
|
||||
sword-devel
|
||||
t1lib-devel
|
||||
t1utils
|
||||
taglib-devel
|
||||
tar
|
||||
transfig
|
||||
udisks-devel
|
||||
unixODBC-devel
|
||||
valgrind
|
||||
wireless-tools-devel
|
||||
xine-lib-devel
|
||||
xmedcon
|
||||
xmedcon-devel
|
||||
xmlto
|
||||
xorg-x11-font-utils
|
||||
xscreensaver
|
||||
xscreensaver-extras
|
||||
xulrunner-devel
|
||||
xz-devel
|
||||
texinfo
|
||||
fontpackages-devel
|
||||
libudisks2-devel
|
||||
htdig
|
||||
libconfig-devel
|
||||
gtk3-devel
|
@ -0,0 +1,215 @@
|
||||
GraphicsMagick-devel
|
||||
libotr-devel
|
||||
ImageMagick-devel
|
||||
NetworkManager-glib-devel
|
||||
OpenEXR-devel
|
||||
SDL-devel
|
||||
advancecomp
|
||||
alsa-lib-devel
|
||||
aspell
|
||||
aspell-en
|
||||
aspell-devel
|
||||
audiofile-devel
|
||||
bind-devel
|
||||
bison
|
||||
boost-devel
|
||||
bzip2-devel
|
||||
ccache
|
||||
cdparanoia
|
||||
chrpath
|
||||
cmake
|
||||
cups-devel
|
||||
curl-devel
|
||||
db5-devel
|
||||
dbus-devel
|
||||
dbus-glib
|
||||
dbus-glib-devel
|
||||
djvulibre
|
||||
docbook-dtd412-xml
|
||||
docbook-style-xsl
|
||||
docbook-utils
|
||||
doxygen
|
||||
drakconf
|
||||
dssi-devel
|
||||
expat-devel
|
||||
fftw-devel
|
||||
flex
|
||||
fontconfig-devel
|
||||
freetype-devel
|
||||
freetype2-devel
|
||||
fribidi-devel
|
||||
gamin-devel
|
||||
gettext-devel
|
||||
glib2-devel
|
||||
gnokii-devel
|
||||
gperf
|
||||
gpgme-devel
|
||||
gphoto2-devel
|
||||
gsl-devel
|
||||
gtk-doc
|
||||
gtk2-devel
|
||||
gtk+3.0-devel
|
||||
hspell-devel
|
||||
imake
|
||||
java-1.8.0-openjdk
|
||||
java-1.8.0-openjdk-devel
|
||||
karma-sharp
|
||||
kde-dev-scripts
|
||||
lcms-devel
|
||||
lib64apr-devel
|
||||
lib64apr-util-devel
|
||||
lib64binutils-devel
|
||||
lib64clucene-devel
|
||||
lib64commoncpp-devel
|
||||
lib64curl-devel
|
||||
lib64dvdread-devel
|
||||
lib64ecpg9.4_6
|
||||
lib64exiv2-devel
|
||||
lib64ffmpeg-devel
|
||||
lib64flac++-devel
|
||||
lib64flac-devel
|
||||
lib64fontenc-devel
|
||||
lib64gstreamer0.10-devel
|
||||
lib64inotifytools-devel
|
||||
lib64jasper-devel
|
||||
lib64jpeg-devel
|
||||
lib64lame-devel
|
||||
lib64lua-devel
|
||||
lib64mad-devel
|
||||
lib64paper-devel
|
||||
lib64poppler-devel
|
||||
lib64pulseaudio-devel
|
||||
lib64sane1-devel
|
||||
lib64t1lib-devel
|
||||
lib64tiff-devel
|
||||
lib64twolame-devel
|
||||
lib64udev-devel
|
||||
lib64usb1.0-devel
|
||||
lib64v4l-devel
|
||||
lib64xaw-devel
|
||||
lib64xi-devel
|
||||
lib64xine1.2-devel
|
||||
lib64xscrnsaver-devel
|
||||
lib64xtst-devel
|
||||
lib64xxf86dga-devel
|
||||
lib64yaz-devel
|
||||
libart_lgpl-devel
|
||||
libblkid-devel
|
||||
libcdda-devel
|
||||
libclucene-devel
|
||||
libcommoncpp-devel
|
||||
libconfig-devel
|
||||
libcurl-devel
|
||||
libdvdread-devel
|
||||
libffmpeg-devel
|
||||
libflac++-devel
|
||||
libflac-devel
|
||||
libgadu-devel
|
||||
libgpod-devel
|
||||
libgsf-devel
|
||||
libgstreamer-plugins-base-devel
|
||||
libhd-devel
|
||||
libical-devel
|
||||
libice-devel
|
||||
libifp-devel
|
||||
libinotifytools-devel
|
||||
libiodbc-devel
|
||||
libiw-devel
|
||||
libjack-devel
|
||||
libjasper-devel
|
||||
libkarma-devel
|
||||
liblo-devel
|
||||
liblrdf-devel
|
||||
libmad-devel
|
||||
libmng-devel
|
||||
libmp4v2-devel
|
||||
libmpcdec-devel
|
||||
libmtp-devel
|
||||
libmusicbrainz-devel
|
||||
libnjb-devel
|
||||
libofx-devel
|
||||
libpaper-devel
|
||||
libraw1394-devel
|
||||
librsvg
|
||||
libsm-devel
|
||||
libsmbclient-devel
|
||||
libsndfile-devel
|
||||
libt1lib-devel
|
||||
libtheora-devel
|
||||
libungif-devel
|
||||
lib64utempter-devel
|
||||
libvisual-devel
|
||||
libvorbis-devel
|
||||
libwmf-devel
|
||||
libwpd-devel
|
||||
libx11-devel
|
||||
libxcursor-devel
|
||||
libxext-devel
|
||||
libxft-devel
|
||||
libxi-devel
|
||||
libxinerama-devel
|
||||
libxkbfile-devel
|
||||
libxmu-devel
|
||||
libxrandr-devel
|
||||
libxrender-devel
|
||||
libxslt-devel
|
||||
libxv-devel
|
||||
libxxf86dga-devel
|
||||
libyaz-devel
|
||||
lilo
|
||||
lirc-devel
|
||||
lm_sensors-devel
|
||||
mesaglu-devel
|
||||
mysql-devel
|
||||
nas-devel
|
||||
neon-devel
|
||||
net-snmp-devel
|
||||
netpbm
|
||||
ocaml
|
||||
openldap-devel
|
||||
openslp-devel
|
||||
opensp-devel
|
||||
optipng
|
||||
pam-devel
|
||||
pciutils-devel
|
||||
perl(XML::Parser)
|
||||
perl-devel
|
||||
pilot-link-devel
|
||||
pkgconfig(audiofile)
|
||||
pkgconfig(libpng16)
|
||||
postgresql9.4
|
||||
postgresql9.4-devel
|
||||
pth-devel
|
||||
python-devel
|
||||
python-sip
|
||||
qt4-devel
|
||||
readline-devel
|
||||
recode
|
||||
rpm-build
|
||||
rpm-devel
|
||||
ruby-devel
|
||||
scons
|
||||
speex-devel
|
||||
sqlite-devel
|
||||
sqlite3-devel
|
||||
subversion-devel
|
||||
sword-devel
|
||||
taglib-devel
|
||||
transfig
|
||||
udisks-devel
|
||||
udisks2-devel
|
||||
unixODBC-devel
|
||||
valgrind
|
||||
wv2-devel
|
||||
x11-font-util
|
||||
xmlto
|
||||
xscreensaver
|
||||
xscreensaver-base
|
||||
xscreensaver-extrusion
|
||||
xscreensaver-gl
|
||||
yaz
|
||||
zlib-devel
|
||||
fdupes
|
||||
firebird-devel
|
||||
GraphicsMagick-devel
|
||||
dssi-devel
|
Loading…
Reference in new issue