Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
commit
5181d0f5c4
@ -0,0 +1,20 @@
|
||||
diff -rcb abakus.ORI/src/SConscript abakus/src/SConscript
|
||||
*** abakus.ORI/src/SConscript 2011-09-14 21:44:42.191599072 +0200
|
||||
--- abakus/src/SConscript 2011-09-14 21:44:51.352602708 +0200
|
||||
***************
|
||||
*** 66,72 ****
|
||||
myenv.KDEaddpaths_includes('#/src/ #/')
|
||||
|
||||
## Necessary libraries to link against
|
||||
! myenv.KDEaddlibs( 'qt-mt kio kdecore kdeprint kdeui' )
|
||||
|
||||
#############################
|
||||
## Data to install
|
||||
--- 66,72 ----
|
||||
myenv.KDEaddpaths_includes('#/src/ #/')
|
||||
|
||||
## Necessary libraries to link against
|
||||
! myenv.KDEaddlibs( 'qt-mt kio kdecore kdeprint kdeui DCOP' )
|
||||
|
||||
#############################
|
||||
## Data to install
|
@ -0,0 +1,93 @@
|
||||
# Default version for this component
|
||||
%define kdecomp abakus
|
||||
%define version 0.91
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: Calculator for TDE
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
Patch0: abakus-0.91-link-dcop.patch
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: scons
|
||||
|
||||
%description
|
||||
AbaKus is a complex calculator, which provides
|
||||
many different kinds of calculations.
|
||||
Think of it as bc (the command-line calculator) with a nice GUI.
|
||||
It also gives information about mathematical variables and
|
||||
has the user-friendly menu options of a normal KDE application.
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
export CXXFLAGS="-I%{_includedir}/tqt"
|
||||
|
||||
./configure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}%{_prefix}
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{tde_docdir}/HTML/*/*/
|
||||
%{_datadir}/applnk/Utilities/abakus.desktop
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.91-1
|
||||
- Initial build for RHEL 6 and Fedora 15
|
||||
- Import to GIT
|
@ -0,0 +1,118 @@
|
||||
# Default version for this component
|
||||
%define kdecomp basket
|
||||
%define version 1.0.3.1
|
||||
%define release 3
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: Taking care of your ideas.
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
%description
|
||||
This application is mainly an all-purpose notes taker. It provide several baskets where
|
||||
to drop every sort of items: text, rich text, links, images, sounds, files, colors,
|
||||
application launcher... Objects can be edited, copied, dragged... So, you can arrange
|
||||
them as you want ! This application can be used to quickly drop web objects (link, text,
|
||||
images...) or notes, as well as to free your clutered desktop (if any). It is also useful
|
||||
to collect informations for a report. Those data can be shared with co-workers by exporting
|
||||
baskets to HTML.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/locale/*/*/*.mo
|
||||
%{tde_docdir}/HTML/en/*/
|
||||
%{_datadir}/services/*.desktop
|
||||
%{_datadir}/mimelnk/application/*.desktop
|
||||
%{_datadir}/services/*/*.desktop
|
||||
%{_datadir}/config/magic/*.magic
|
||||
%{_libdir}/*.so
|
||||
%{tde_libdir}/*.so
|
||||
|
||||
%exclude %{_libdir}/*.la
|
||||
%exclude %{tde_libdir}/*.la
|
||||
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.3.1-3
|
||||
- Import to GIT
|
||||
|
||||
* Tue Aug 23 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.3.1-2
|
||||
- Add correction for Fedora 15
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.3.1-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.3.1-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
@ -0,0 +1,134 @@
|
||||
# Default version for this component
|
||||
%define kdecomp dolphin
|
||||
%define version 0.9.2
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: File manager for KDE focusing on usability
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
|
||||
|
||||
%description
|
||||
Dolphin focuses on being only a file manager.
|
||||
This approach allows to optimize the user
|
||||
interface for the task of file management.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
# TDE 3.5.12: dirty hack to prevent duplicate line in file 'd3lphin.desktop'
|
||||
sed -i "%{buildroot}%{_datadir}/applications/kde/d3lphin.desktop" \
|
||||
-e "/^Name\[pa\].*/d"
|
||||
|
||||
desktop-file-install --vendor "" \
|
||||
--delete-original \
|
||||
--dir %{buildroot}%{_datadir}/applications/ \
|
||||
%{buildroot}%{_datadir}/applications/kde/d3lphin.desktop
|
||||
|
||||
|
||||
## File lists
|
||||
# HTML (1.0)
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS ChangeLog COPYING TODO
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{tde_docdir}/HTML/en/*/
|
||||
%{_datadir}/icons/hicolor/128x128/apps/*.png
|
||||
%{_datadir}/icons/hicolor/??x??/apps/*.png
|
||||
%{_datadir}/locale/*/*/d3lphin.mo
|
||||
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-2
|
||||
- Import to GIT
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Thu Jun 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-0
|
||||
- Initial build for RHEL 6.0
|
||||
- Based on FC7 'Dolphin 0.8.2-2" SPEC file.
|
||||
|
@ -0,0 +1,106 @@
|
||||
# Default version for this component
|
||||
%define kdecomp filelight
|
||||
%define version 1.0
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: Graphical disk usage display
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
%description
|
||||
Filelight creates a complex, but data-rich graphical representation of the files and
|
||||
directories on your computer.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/locale/*/*/*.mo
|
||||
%{_datadir}/config/filelightrc
|
||||
%{_datadir}/services/*.desktop
|
||||
%{tde_docdir}/HTML/*/*/
|
||||
|
||||
%{_libdir}/*/*.so
|
||||
%exclude %{_libdir}/*/*.la
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-2
|
||||
- Import to GIT
|
||||
|
||||
* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
@ -0,0 +1,153 @@
|
||||
# Default version for this component
|
||||
%define kdecomp gwenview
|
||||
%define version 1.4.2
|
||||
%define release 3
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: Gwenview is an image viewer for KDE.
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
BuildRequires: exiv2-devel
|
||||
|
||||
%if "%{?_prefix}" == "/usr"
|
||||
Conflicts: kdegraphics
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
Gwenview is a fast and easy to use image viewer/browser for KDE.
|
||||
All common image formats are supported, such as PNG(including transparency),
|
||||
JPEG(including EXIF tags and lossless transformations), GIF, XCF (Gimp
|
||||
image format), BMP, XPM and others. Standard features include slideshow,
|
||||
fullscreen view, image thumbnails, drag'n'drop, image zoom, full network
|
||||
transparency using the KIO framework, including basic file operations and
|
||||
browsing in compressed archives, non-blocking GUI with adjustable views.
|
||||
Gwenview also provides image and directory KParts components for use e.g. in
|
||||
Konqueror. Additional features, such as image renaming, comparing,
|
||||
converting, and batch processing, HTML gallery and others are provided by the
|
||||
KIPI image framework.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
|
||||
## File lists
|
||||
# HTML (1.0)
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
%{_datadir}/applications/*/*.desktop
|
||||
%{_datadir}/services/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/config.kcfg/*
|
||||
%{tde_docdir}/HTML/en/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%{_libdir}/libkdeinit_gwenview.so
|
||||
%exclude %{_libdir}/libgwenviewcore.so
|
||||
|
||||
%exclude %{_libdir}/*.la
|
||||
%exclude %{_libdir}/*/*.so
|
||||
%exclude %{_libdir}/*/*.la
|
||||
|
||||
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-3
|
||||
- Import to GIT
|
||||
|
||||
* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-2
|
||||
- Add fix for Fedora 15
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sat Aug 13 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
@ -0,0 +1,48 @@
|
||||
--- k3b-1.0.3/libk3b/core/k3bglobals.cpp.umount 2007-07-27 21:26:30.000000000 +0200
|
||||
+++ k3b-1.0.3/libk3b/core/k3bglobals.cpp 2007-07-27 21:31:26.000000000 +0200
|
||||
@@ -569,7 +569,24 @@
|
||||
return true;
|
||||
}
|
||||
|
||||
- // now try pmount
|
||||
+#ifdef HAVE_HAL
|
||||
+ if (!K3bDevice::HalConnection::instance()->unmount( dev ))
|
||||
+ return true;
|
||||
+#endif
|
||||
+
|
||||
+ QString gumountBin = K3b::findExe( "gnome-umount" );
|
||||
+ if( !gumountBin.isEmpty() ) {
|
||||
+ KProcess p;
|
||||
+ p << gumountBin;
|
||||
+ p << "-u";
|
||||
+ p << "-d";
|
||||
+ p << dev->blockDeviceName();
|
||||
+ p.start( KProcess::Block );
|
||||
+ if( !p.exitStatus() )
|
||||
+ return true;
|
||||
+ }
|
||||
+
|
||||
+// now try pmount
|
||||
QString pumountBin = K3b::findExe( "pumount" );
|
||||
if( !pumountBin.isEmpty() ) {
|
||||
KProcess p;
|
||||
@@ -577,15 +592,11 @@
|
||||
p << "-l"; // lazy unmount
|
||||
p << dev->blockDeviceName();
|
||||
p.start( KProcess::Block );
|
||||
- return !p.exitStatus();
|
||||
- }
|
||||
- else {
|
||||
-#ifdef HAVE_HAL
|
||||
- return !K3bDevice::HalConnection::instance()->unmount( dev );
|
||||
-#else
|
||||
- return false;
|
||||
-#endif
|
||||
+ if( !p.exitStatus() )
|
||||
+ return true;
|
||||
}
|
||||
+
|
||||
+ return false;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,21 @@
|
||||
diff -up k3b-1.0.4/libk3b/core/k3bglobalsettings.cpp.manualbufsize k3b-1.0.4/libk3b/core/k3bglobalsettings.cpp
|
||||
--- k3b-1.0.4/libk3b/core/k3bglobalsettings.cpp.manualbufsize 2007-11-02 10:55:39.000000000 +0100
|
||||
+++ k3b-1.0.4/libk3b/core/k3bglobalsettings.cpp 2008-04-22 14:15:06.000000000 +0200
|
||||
@@ -22,7 +22,7 @@ K3bGlobalSettings::K3bGlobalSettings()
|
||||
: m_eject(true),
|
||||
m_burnfree(true),
|
||||
m_overburn(false),
|
||||
- m_useManualBufferSize(false),
|
||||
+ m_useManualBufferSize(true),
|
||||
m_bufferSize(4),
|
||||
m_force(false)
|
||||
{
|
||||
@@ -37,7 +37,7 @@ void K3bGlobalSettings::readSettings( KC
|
||||
m_eject = !c->readBoolEntry( "No cd eject", false );
|
||||
m_burnfree = c->readBoolEntry( "burnfree", true );
|
||||
m_overburn = c->readBoolEntry( "Allow overburning", false );
|
||||
- m_useManualBufferSize = c->readBoolEntry( "Manual buffer size", false );
|
||||
+ m_useManualBufferSize = c->readBoolEntry( "Manual buffer size", true );
|
||||
m_bufferSize = c->readNumEntry( "Fifo buffer", 4 );
|
||||
m_force = c->readBoolEntry( "Force unsafe operations", false );
|
||||
|
@ -0,0 +1,31 @@
|
||||
diff -up k3b-1.0.5/src/Makefile.in.hidden k3b-1.0.5/src/Makefile.in
|
||||
--- k3b-1.0.5/src/Makefile.in.hidden 2008-05-27 03:34:44.000000000 -0500
|
||||
+++ k3b-1.0.5/src/Makefile.in 2008-08-27 14:18:54.000000000 -0500
|
||||
@@ -512,9 +512,9 @@ k3b_LDADD = ./option/liboption.la ./rip/
|
||||
-lkio -lkparts $(CAM_LIB) $(MUSICBRAINZ_LIBS)
|
||||
|
||||
SUBDIRS = option misc rip projects fastscale pics icons konqi mimetypes sounds
|
||||
-xdg_apps_DATA = k3b.desktop
|
||||
-silent_DATA = k3b-iso.desktop k3b-cue.desktop
|
||||
-silentdir = $(kde_appsdir)/.hidden/
|
||||
+xdg_apps_DATA = k3b.desktop k3b-iso.desktop k3b-cue.desktop
|
||||
+#silent_DATA = k3b-iso.desktop k3b-cue.desktop
|
||||
+#silentdir = $(kde_appsdir)/.hidden/
|
||||
|
||||
###################
|
||||
# this 10 paths are KDE specific. Use them:
|
||||
diff -up k3b-1.0.5/src/Makefile.am.hidden k3b-1.0.5/src/Makefile.am
|
||||
--- k3b-1.0.5/src/Makefile.am.hidden 2008-05-27 03:24:04.000000000 -0500
|
||||
+++ k3b-1.0.5/src/Makefile.am 2008-08-27 14:13:36.000000000 -0500
|
||||
@@ -32,10 +32,7 @@ k3b_LDADD = ./option/liboption.la ./rip/
|
||||
|
||||
SUBDIRS = option misc rip projects fastscale pics icons konqi mimetypes sounds
|
||||
|
||||
-xdg_apps_DATA = k3b.desktop
|
||||
-
|
||||
-silent_DATA = k3b-iso.desktop k3b-cue.desktop
|
||||
-silentdir = $(kde_appsdir)/.hidden/
|
||||
+xdg_apps_DATA = k3b.desktop k3b-iso.desktop k3b-cue.desktop
|
||||
|
||||
###################
|
||||
# this 10 paths are KDE specific. Use them:
|
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
[General Options]
|
||||
check system config=false
|
||||
Manual buffer size=true
|
||||
|
||||
[Notification Messages]
|
||||
Don't prompt me again.=No
|
@ -0,0 +1,33 @@
|
||||
--- libk3b/jobs/k3bverificationjob.cpp.sav 2008-05-27 10:24:20.000000000 +0200
|
||||
+++ libk3b/jobs/k3bverificationjob.cpp 2009-06-11 17:58:58.000000000 +0200
|
||||
@@ -154,6 +154,20 @@ void K3bVerificationJob::start()
|
||||
emit newTask( i18n("Checking medium") );
|
||||
|
||||
d->mediumHasBeenReloaded = false;
|
||||
+ connect( K3bDevice::sendCommand( K3bDevice::DeviceHandler::LOAD, d->device ),
|
||||
+ SIGNAL(finished(K3bDevice::DeviceHandler*)),
|
||||
+ this,
|
||||
+ SLOT(slotMediaLoaded()) );
|
||||
+}
|
||||
+
|
||||
+void K3bVerificationJob::slotMediaLoaded()
|
||||
+{
|
||||
+ // we always need to wait for the medium. Otherwise the diskinfo below
|
||||
+ // may run before the drive is ready!
|
||||
+ waitForMedia( d->device,
|
||||
+ K3bDevice::STATE_COMPLETE|K3bDevice::STATE_INCOMPLETE,
|
||||
+ K3bDevice::MEDIA_WRITABLE );
|
||||
+
|
||||
connect( K3bDevice::sendCommand( K3bDevice::DeviceHandler::DISKINFO, d->device ),
|
||||
SIGNAL(finished(K3bDevice::DeviceHandler*)),
|
||||
this,
|
||||
--- libk3b/jobs/k3bverificationjob.h.sav 2008-05-27 10:24:20.000000000 +0200
|
||||
+++ libk3b/jobs/k3bverificationjob.h 2009-06-11 17:13:37.000000000 +0200
|
||||
@@ -75,6 +75,7 @@ class K3bVerificationJob : public K3bJob
|
||||
void setGrownSessionSize( const K3b::Msf& );
|
||||
|
||||
private slots:
|
||||
+ void slotMediaLoaded();
|
||||
void slotMediaReloaded( bool success );
|
||||
void slotDiskInfoReady( K3bDevice::DeviceHandler* dh );
|
||||
void readTrack( int trackIndex );
|
@ -0,0 +1,271 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 6
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-k3b
|
||||
Summary: CD/DVD burning application
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if "%{?_prefix}" == "/usr"
|
||||
Obsoletes: k3b
|
||||
%endif
|
||||
|
||||
Group: Applications/Archiving
|
||||
License: GPLv2+
|
||||
Source0: k3b-%{version}.tar.gz
|
||||
Source1: k3b-i18n-1.0.5.tar.bz2
|
||||
Source2: k3brc
|
||||
|
||||
# Legacy RedHat / Fedora patches
|
||||
Patch2: k3b-1.0.3-umount.patch
|
||||
# manual bufsize (upstream?)
|
||||
Patch4: k3b-1.0.4-manualbufsize.patch
|
||||
# 3rd time is a charm, https://bugs.kde.org/show_bug.cgi?id=156684#c30
|
||||
Patch102: reload-for-verification.diff
|
||||
# put k3b-(iso,cue).desktop to xdg_apps_DATA , see http://bugzilla.redhat.com/419681
|
||||
# upstreamed 2008-08-27
|
||||
Patch105: k3b-1.0.5-hidden.patch
|
||||
# RHEL6: Fix K3B icon
|
||||
Patch106: trinity-k3b-icons.patch
|
||||
|
||||
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: audiofile-devel
|
||||
BuildRequires: dbus-qt-devel hal-devel
|
||||
BuildRequires: flac-devel
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libdvdread-devel
|
||||
%if 0%{?fedora} >= 15
|
||||
BuildRequires: libmpcdec-devel
|
||||
%else
|
||||
BuildRequires: musepack-tools-devel
|
||||
%endif
|
||||
BuildRequires: libmusicbrainz-devel
|
||||
BuildRequires: libsamplerate-devel
|
||||
BuildRequires: libsndfile-devel
|
||||
BuildRequires: libvorbis-devel
|
||||
BuildRequires: taglib-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
Obsoletes: k3b-extras < 0:1.0-1
|
||||
Provides: k3b-extras = %{version}-%{release}
|
||||
|
||||
Obsoletes: %{name}-i18n
|
||||
Provides: %{name}-i18n
|
||||
|
||||
Requires(post): coreutils
|
||||
Requires(postun): coreutils
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
|
||||
Requires: cdrecord mkisofs
|
||||
Requires: cdrdao
|
||||
Requires: dvd+rw-tools
|
||||
|
||||
%description
|
||||
K3b provides a comfortable user interface to perform most CD/DVD
|
||||
burning tasks. While the experienced user can take influence in all
|
||||
steps of the burning process the beginner may find comfort in the
|
||||
automatic settings and the reasonable k3b defaults which allow a quick
|
||||
start.
|
||||
|
||||
%package common
|
||||
Summary: Common files of %{name}
|
||||
Group: Applications/Archiving
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description common
|
||||
%{summary}.
|
||||
|
||||
%package libs
|
||||
Summary: Runtime libraries for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Files for the development of applications which will use %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -a 1 -n applications/k3b
|
||||
|
||||
%patch2 -p1 -b .umount
|
||||
# set in k3brc too
|
||||
%patch4 -p1 -b .manualbufsize
|
||||
%patch102 -p0 -b .kde#156684
|
||||
%patch106 -p1 -b .desktopfile
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
%patch105 -p1 -b .hidden
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
CFLAGS="%optflags -fno-strict-aliasing" \
|
||||
CXXFLAGS="%optflags -fno-strict-aliasing" \
|
||||
%configure \
|
||||
--includedir=%{_includedir}/k3b \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-debug --disable-warnings \
|
||||
--disable-dependency-tracking --enable-final \
|
||||
--with-k3bsetup=no \
|
||||
--without-cdrecord-suid-root \
|
||||
--with-oggvorbis \
|
||||
--with-flac \
|
||||
--with-external-libsamplerate \
|
||||
--with-libdvdread \
|
||||
--with-musicbrainz \
|
||||
--with-sndfile \
|
||||
--without-ffmpeg --without-lame --without-libmad \
|
||||
--with-musepack \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
# Build for i18n tarball
|
||||
pushd k3b-i18n-1.0.5
|
||||
%configure
|
||||
%__make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
%make_install -C k3b-i18n-1.0.5
|
||||
%{__install} -D -m 644 -p %{SOURCE2} %{buildroot}%{_datadir}/config/k3brc
|
||||
|
||||
# remove the .la files
|
||||
%{__rm} -f %{buildroot}%{_libdir}/libk3b*.la
|
||||
|
||||
# remove i18n for Plattdeutsch (Low Saxon)
|
||||
%{__rm} -fr %{buildroot}%{_datadir}/locale/nds
|
||||
|
||||
%find_lang k3b --with-kde
|
||||
%find_lang k3bsetup
|
||||
%find_lang libk3b
|
||||
%find_lang libk3bdevice
|
||||
cat k3b.lang k3bsetup.lang libk3b.lang libk3bdevice.lang >> all.lang
|
||||
|
||||
|
||||
%check
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/kde/k3b.desktop
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%post common
|
||||
touch --no-create %{_datadir}/icons/hicolor ||:
|
||||
|
||||
%postun common
|
||||
if [ $1 -eq 0 ] ; then
|
||||
touch --no-create %{_datadir}/icons/hicolor &> /dev/null
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
||||
update-desktop-database -q &> /dev/null
|
||||
fi
|
||||
|
||||
%posttrans common
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
||||
update-desktop-database -q &> /dev/null
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS README COPYING TODO ChangeLog
|
||||
%{_bindir}/k3b
|
||||
%{tde_libdir}/*.so
|
||||
%{tde_libdir}/*.la
|
||||
%doc %{tde_docdir}/HTML/*/k3b/*
|
||||
|
||||
%files common -f all.lang
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/apps/k3b/
|
||||
%{_datadir}/apps/konqueror/servicemenus/*.desktop
|
||||
%{_datadir}/apps/konqsidebartng/virtual_folders/services/videodvd.desktop
|
||||
%{_datadir}/config/k3brc
|
||||
%{_datadir}/mimelnk/application/x-k3b.desktop
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/services/kfile_k3b.desktop
|
||||
%{_datadir}/services/videodvd.protocol
|
||||
%{_datadir}/sounds/k3b_*.wav
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libk3b.so.3*
|
||||
%{_libdir}/libk3bdevice.so.5*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/libk3b.so
|
||||
%{_libdir}/libk3bdevice.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-6
|
||||
- Import to GIT
|
||||
|
||||
* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-5
|
||||
- Add fix for Fedora 15
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-4
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Thu Apr 28 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
|
||||
- Fix config file '/usr/share/config/k3brc'
|
||||
|
||||
* Sun Dec 19 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Add i18n translations
|
||||
- Add patches from RHEL 6.0 (except Patch106, redundant with our 'patch0')
|
||||
- Renamed 'patch0' (Thales) to 'patch106'
|
||||
|
||||
* Fri Dec 17 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Add macro _kde3_prefix to define custom installation prefix (ex: /opt/kde3)
|
||||
- Add '--with-extra-includes=%{_includedir}/tqt'
|
||||
|
||||
* Wed Dec 15 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-0
|
||||
- Initial version built for RHEL 6.0
|
||||
- Add 'patch0' : invalid syntax in 'k3b.desktop'
|
||||
|
@ -0,0 +1,244 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.13
|
||||
%endif
|
||||
%define release 0
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.13 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}/kde
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-k3b
|
||||
Summary: CD/DVD burning application
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
%if "%{?_prefix}" == "/usr"
|
||||
Obsoletes: k3b
|
||||
%endif
|
||||
|
||||
Group: Applications/Archiving
|
||||
License: GPLv2+
|
||||
Source0: k3b-%{version}.tar.gz
|
||||
Source1: k3b-i18n-1.0.5.tar.bz2
|
||||
Source2: k3brc
|
||||
|
||||
# Legacy RedHat / Fedora patches
|
||||
# manual bufsize (upstream?)
|
||||
Patch4: k3b-1.0.4-manualbufsize.patch
|
||||
# Thales: correction de l'icone
|
||||
Patch106: trinity-k3b-icons.patch
|
||||
|
||||
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: audiofile-devel
|
||||
BuildRequires: dbus-qt-devel hal-devel
|
||||
BuildRequires: flac-devel
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libdvdread-devel
|
||||
%if 0%{?fedora} >= 15
|
||||
BuildRequires: libmpcdec-devel
|
||||
%else
|
||||
BuildRequires: musepack-tools-devel
|
||||
%endif
|
||||
BuildRequires: libmusicbrainz-devel
|
||||
BuildRequires: libsamplerate-devel
|
||||
BuildRequires: libsndfile-devel
|
||||
BuildRequires: libvorbis-devel
|
||||
BuildRequires: taglib-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
Obsoletes: k3b-extras < 0:1.0-1
|
||||
Provides: k3b-extras = %{version}-%{release}
|
||||
|
||||
Obsoletes: %{name}-i18n
|
||||
Provides: %{name}-i18n
|
||||
|
||||
Requires(post): coreutils
|
||||
Requires(postun): coreutils
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
|
||||
Requires: cdrecord mkisofs
|
||||
Requires: cdrdao
|
||||
Requires: dvd+rw-tools
|
||||
|
||||
%description
|
||||
K3b provides a comfortable user interface to perform most CD/DVD
|
||||
burning tasks. While the experienced user can take influence in all
|
||||
steps of the burning process the beginner may find comfort in the
|
||||
automatic settings and the reasonable k3b defaults which allow a quick
|
||||
start.
|
||||
|
||||
%package common
|
||||
Summary: Common files of %{name}
|
||||
Group: Applications/Archiving
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description common
|
||||
%{summary}.
|
||||
|
||||
%package libs
|
||||
Summary: Runtime libraries for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Files for the development of applications which will use %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -a 1 -n applications/k3b
|
||||
|
||||
# set in k3brc too
|
||||
%patch4 -p1 -b .manualbufsize
|
||||
%patch106 -p1 -b .desktopfile
|
||||
|
||||
# Ugly hack to modify TQT include directory inside autoconf files.
|
||||
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
|
||||
sed -i admin/acinclude.m4.in \
|
||||
-e "s,/usr/include/tqt,%{_includedir}/tqt,g"
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
CFLAGS="%optflags -fno-strict-aliasing" \
|
||||
CXXFLAGS="%optflags -fno-strict-aliasing" \
|
||||
%configure \
|
||||
--includedir=%{_includedir}/k3b \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-debug --disable-warnings \
|
||||
--disable-dependency-tracking --enable-final \
|
||||
--with-k3bsetup=no \
|
||||
--without-cdrecord-suid-root \
|
||||
--with-oggvorbis \
|
||||
--with-flac \
|
||||
--with-external-libsamplerate \
|
||||
--with-libdvdread \
|
||||
--with-musicbrainz \
|
||||
--with-sndfile \
|
||||
--without-ffmpeg --without-lame --without-libmad \
|
||||
--with-musepack \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
# Build for i18n tarball
|
||||
pushd k3b-i18n-1.0.5
|
||||
%configure
|
||||
%__make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
%make_install -C k3b-i18n-1.0.5
|
||||
%{__install} -D -m 644 -p %{SOURCE2} %{buildroot}%{_datadir}/config/k3brc
|
||||
|
||||
# remove the .la files
|
||||
%{__rm} -f %{buildroot}%{_libdir}/libk3b*.la
|
||||
|
||||
# remove i18n for Plattdeutsch (Low Saxon)
|
||||
%{__rm} -fr %{buildroot}%{_datadir}/locale/nds
|
||||
|
||||
%find_lang k3b --with-kde
|
||||
%find_lang k3bsetup
|
||||
%find_lang libk3b
|
||||
%find_lang libk3bdevice
|
||||
cat k3b.lang k3bsetup.lang libk3b.lang libk3bdevice.lang >> all.lang
|
||||
|
||||
|
||||
%check
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/kde/k3b.desktop
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%post common
|
||||
touch --no-create %{_datadir}/icons/hicolor ||:
|
||||
|
||||
%postun common
|
||||
if [ $1 -eq 0 ] ; then
|
||||
touch --no-create %{_datadir}/icons/hicolor &> /dev/null
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
||||
update-desktop-database -q &> /dev/null
|
||||
fi
|
||||
|
||||
%posttrans common
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
||||
update-desktop-database -q &> /dev/null
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS README COPYING TODO ChangeLog
|
||||
%{_bindir}/k3b
|
||||
%{tde_libdir}/*.so
|
||||
%{tde_libdir}/*.la
|
||||
%doc %{tde_docdir}/HTML/*/k3b/*
|
||||
|
||||
%files common -f all.lang
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/apps/k3b/
|
||||
%{_datadir}/apps/konqueror/servicemenus/*.desktop
|
||||
%{_datadir}/apps/konqsidebartng/virtual_folders/services/videodvd.desktop
|
||||
%{_datadir}/config/k3brc
|
||||
%{_datadir}/mimelnk/application/x-k3b.desktop
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/services/kfile_k3b.desktop
|
||||
%{_datadir}/services/videodvd.protocol
|
||||
%{_datadir}/sounds/k3b_*.wav
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libk3b.so.3*
|
||||
%{_libdir}/libk3bdevice.so.5*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/libk3b.so
|
||||
%{_libdir}/libk3bdevice.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
|
||||
- Import to GIT
|
@ -0,0 +1,22 @@
|
||||
diff -rcb k3b.ori/src/k3b.desktop k3b/src/k3b.desktop
|
||||
*** k3b.ori/src/k3b.desktop Wed Dec 15 14:23:05 2010
|
||||
--- k3b/src/k3b.desktop Wed Dec 15 14:28:55 2010
|
||||
***************
|
||||
*** 116,123 ****
|
||||
Name[ar]= K3b
|
||||
Name[bn]=কে-থ্রি-বি
|
||||
Name[hi]=के3बी
|
||||
! MimeType=application/x-k3b;application/x-iso;application/x-cue
|
||||
X-KDE-StartupNotify=true
|
||||
! X-KDE-NativeMimeType=application/x-k3b;application/x-iso;application/x-cue
|
||||
! Categories=KDE;Application;AudioVideo;DiscBurning;
|
||||
X-DCOP-ServiceType=Unique
|
||||
--- 116,123 ----
|
||||
Name[ar]= K3b
|
||||
Name[bn]=কে-থ্রি-বি
|
||||
Name[hi]=के3बी
|
||||
! MimeType=application/x-k3b;application/x-iso;application/x-cue;
|
||||
X-KDE-StartupNotify=true
|
||||
! X-KDE-NativeMimeType=application/x-k3b;application/x-iso;application/x-cue;
|
||||
! Categories=KDE;AudioVideo;DiscBurning;
|
||||
X-DCOP-ServiceType=Unique
|
@ -0,0 +1,111 @@
|
||||
# Default version for this component
|
||||
%define kdecomp kdiff3
|
||||
%define version 0.9.91
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: KDiff3 is a utility for comparing and/or merging two or three text files or directories.
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
%description
|
||||
Shows the differences line by line and character by character (!).
|
||||
Provides an automatic merge-facility and
|
||||
an integrated editor for comfortable solving of merge-conflicts.
|
||||
Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
|
||||
Unicode & UTF-8 support
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/locale/*/*/*.mo
|
||||
%{tde_docdir}/HTML/*/*
|
||||
%{_datadir}/services/*.desktop
|
||||
%{tde_libdir}/*.so
|
||||
%{_datadir}/applnk/Development/*.desktop
|
||||
%{_datadir}/applnk/.hidden/*.desktop
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%{tde_libdir}/*.la
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-2
|
||||
- Import to GIT
|
||||
|
||||
* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
@ -0,0 +1,104 @@
|
||||
# Default version for this component
|
||||
%define kdecomp krename
|
||||
%define version 3.0.14
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: A KDE batch file renaming utility.
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: imlib-devel
|
||||
|
||||
%description
|
||||
KRename is a powerful batch renamer for KDE 3.x. It allows you to easily rename hundreds or
|
||||
even more files in one go. The filenames can be created by parts of the original filename,
|
||||
numbering the files or accessing hundreds of informations about the file, like creation date
|
||||
or Exif informations of an image.
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{tde_docdir}/HTML/en/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/locale/*/*/*.mo
|
||||
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-2
|
||||
- Import to GIT
|
||||
|
||||
* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
@ -0,0 +1,109 @@
|
||||
# Default version for this component
|
||||
%define kdecomp kuickshow
|
||||
%define version 0.8.13
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: Quick picture viewer for KDE
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
Conflicts: trinity-kdegraphics
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: imlib-devel
|
||||
|
||||
%description
|
||||
Kuickshow is a picture viewer for KDE. It displays the directory structure,
|
||||
displaying images as thumbnails.
|
||||
Clicking on an image shows the image in its normal size.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{tde_docdir}/HTML/en/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_libdir}/libkdeinit_%{kdecomp}.so
|
||||
|
||||
%exclude %{_libdir}/*.la
|
||||
%exclude %{_libdir}/*/*.so
|
||||
%exclude %{_libdir}/*/*.la
|
||||
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.13-2
|
||||
- Import to GIT
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.13-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sat Aug 13 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.13-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
@ -0,0 +1,97 @@
|
||||
# Default version for this component
|
||||
%define kdecomp yakuake
|
||||
%define version 2.8.1
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-%{kdecomp}
|
||||
Summary: Yakuake is a Quake-style terminal emulator based on KDE Konsole technology.
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Group: Applications/Utilities
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: %{kdecomp}-3.5.12.tar.gz
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
%description
|
||||
Yakuake is a Quake-style terminal emulator based on KDE Konsole technology.
|
||||
|
||||
%prep
|
||||
%setup -q -n applications/%{kdecomp}
|
||||
|
||||
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/locale/*/*/*.mo
|
||||
%{_datadir}/config.kcfg/*.kcfg
|
||||
|
||||
%Changelog
|
||||
* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-2
|
||||
- Import to GIT
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-1
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-0
|
||||
- Initial build for RHEL 6.0
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
||||
diff -rcb kde-i18n-fr-3.5.10.ori/messages/kdebase/kdesktop.po kde-i18n-fr-3.5.10/messages/kdebase/kdesktop.po
|
||||
*** kde-i18n-fr-3.5.10.ori/messages/kdebase/kdesktop.po 2011-07-21 10:02:12.261100210 +0200
|
||||
--- kde-i18n-fr-3.5.10/messages/kdebase/kdesktop.po 2011-07-21 10:05:55.365975529 +0200
|
||||
***************
|
||||
*** 246,251 ****
|
||||
--- 246,255 ----
|
||||
msgid "Run Command..."
|
||||
msgstr "Exécuter une commande..."
|
||||
|
||||
+ #: krootwm.cc:135 (Trinity Specific)
|
||||
+ msgid "Open Terminal Here..."
|
||||
+ msgstr "Ouvrir un Terminal..."
|
||||
+
|
||||
#: krootwm.cc:137
|
||||
msgid "Configure Desktop..."
|
||||
msgstr "Configurer le bureau..."
|
@ -0,0 +1,176 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Summary: K Desktop Environment - Accessibility
|
||||
Name: trinity-kdeaccessibility
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: User Interface/Desktops
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: kdeaccessibility-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
|
||||
Provides: kdeaccessibility3 = %{version}-%{release}
|
||||
|
||||
Requires: trinity-kdelibs
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: alsa-lib-devel
|
||||
%if 0%{?fedora} > 4 || 0%{?rhel} > 4
|
||||
BuildRequires: libXtst-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
Included with this package are:
|
||||
* kmag, a screen magnifier,
|
||||
* kmousetool, a program for people whom it hurts to click the mouse,
|
||||
* kmouth, program that allows people who have lost their voice
|
||||
to let their computer speak for them.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Provides: kdeaccessibility3-devel = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeaccessibility
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--includedir=%{tde_includedir} \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-debug --disable-warnings \
|
||||
--disable-dependancy-tracking --enable-final \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
desktop-file-install \
|
||||
--vendor="" \
|
||||
--dir %{buildroot}%{_datadir}/applications/kde \
|
||||
--delete-original \
|
||||
%{buildroot}%{_datadir}/applnk/Applications/*.desktop ||:
|
||||
|
||||
# file lists for locale
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}/$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}/$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in kmag kmousetool ksayit kttsd ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
test -s $dir/$file && install -p -m644 -D $dir/$file rpmdocs/$dir/$file
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
/sbin/ldconfig ||:
|
||||
for icon_theme in mono hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig ||:
|
||||
for icon_theme in mono hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%doc rpmdocs/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/apps/*/
|
||||
%{_datadir}/config/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
%{_datadir}/icons/mono/
|
||||
%{_datadir}/service*/*.desktop
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/*.la
|
||||
%{tde_libdir}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdeaccessibility-3.5.10-1"
|
||||
- Import to GIT
|
@ -0,0 +1,244 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdeaddons
|
||||
Summary: Trinity Desktop Environment - Plugins
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: User Interface/Desktops
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: kdeaddons-%{version}.tar.gz
|
||||
Source1: metabar-fedora.tar.bz2
|
||||
Source2: metabarrc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Patch3: kdeaddons-3.5.3-sdl.patch
|
||||
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: trinity-kdegames-devel
|
||||
BuildRequires: trinity-kdemultimedia-devel
|
||||
BuildRequires: trinity-kdepim-devel
|
||||
BuildRequires: SDL-devel
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: db4-devel
|
||||
BuildRequires: xmms-devel
|
||||
|
||||
Requires: trinity-kdebase
|
||||
%if 0%{?fedora}
|
||||
# used in jpegorient (#312641)
|
||||
Requires: python-exif
|
||||
%endif
|
||||
Requires: which
|
||||
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
|
||||
Obsoletes: %{name}-xmms < %{version}-%{release}
|
||||
|
||||
%description
|
||||
A collection of KDE Addons/Plugins, including:
|
||||
* konq-plugins: akregator, babelfish, domtreeviewer, imagerotation, validators, webarchiver
|
||||
* kate (plugins)
|
||||
* kicker-applets: kbinaryclock, kolourpicker, ktimemon, mediacontrol
|
||||
* knewsticker-scripts
|
||||
|
||||
%package extras
|
||||
Group: User Interface/Desktops
|
||||
Summary: Extras packages from kdeaddons
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: kdegames3 >= %{version}
|
||||
Obsoletes: %{name}-atlantikdesigner < %{version}-%{release}
|
||||
%description extras
|
||||
This package includes:
|
||||
* atlantikdesigner: game board designer
|
||||
* noatun-plugins
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -a 1 -n kdeaddons
|
||||
|
||||
%patch3 -p1 -b .sdl
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%if 0%{?fedora} > 0
|
||||
export CXXFLAGS="${CXXFLAGS} -fpermissive"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--includedir=%{_includedir}/kde \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-debug --disable-warnings \
|
||||
--disable-dependency-tracking --enable-final \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
# File lists for locale
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}/$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}/$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in konq-plugins ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
# install fedora metabar theme
|
||||
cp -prf fedora %{buildroot}%{_datadir}/apps/metabar/themes
|
||||
install -m644 -p %{SOURCE2} %{buildroot}%{_datadir}/config/
|
||||
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post extras
|
||||
touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||
|
||||
%postun extras
|
||||
touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%doc rpmdocs/*
|
||||
%{_bindir}/*
|
||||
%{tde_libdir}/*
|
||||
%{_datadir}/applications/kde/*
|
||||
%{_datadir}/applnk/.hidden/*
|
||||
%{_datadir}/apps/akregator/pics/*
|
||||
%{_datadir}/apps/domtreeviewer/
|
||||
%{_datadir}/apps/fsview/
|
||||
%{_datadir}/apps/imagerotation/
|
||||
%{_datadir}/apps/kaddressbook/*
|
||||
%{_datadir}/apps/kate/*
|
||||
%{_datadir}/apps/katepart/syntax/*
|
||||
%{_datadir}/apps/katexmltools
|
||||
# own dir so we don't need to Requires: kdenetwork too
|
||||
%dir %{_datadir}/apps/knewsticker
|
||||
%{_datadir}/apps/knewsticker/*
|
||||
%{_datadir}/apps/khtml/kpartplugins/*
|
||||
%{_datadir}/apps/konq*view/kpartplugins/*
|
||||
%{_datadir}/apps/konqueror/icons/*/*/*/*
|
||||
%dir %{_datadir}/apps/konqueror/kpartplugins/
|
||||
%{_datadir}/apps/konqueror/kpartplugins/*
|
||||
%{_datadir}/apps/konqueror/servicemenus/*
|
||||
%{_datadir}/apps/konqsidebartng/*/*
|
||||
%{_datadir}/apps/mediacontrol/
|
||||
%{_datadir}/apps/metabar/
|
||||
%{_datadir}/apps/microformat/
|
||||
#%{_datadir}/apps/noatun/*
|
||||
%{_datadir}/apps/kicker/applets/*
|
||||
%{_datadir}/apps/ksig/
|
||||
%{_datadir}/config*/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
%{_datadir}/mimelnk/*/*
|
||||
%{_datadir}/service*/*
|
||||
|
||||
# atlantikdesigner
|
||||
#%exclude %{_bindir}/atlantikdesigner
|
||||
#%exclude %{_datadir}/icons/hicolor/*/*/atlantikdesigner*
|
||||
#%exclude %{_datadir}/applications/kde/atlantikdesigner.desktop
|
||||
|
||||
# noatun-plugins
|
||||
#%exclude %{_bindir}/noatun*
|
||||
#%exclude %{tde_libdir}/noatun*
|
||||
#%exclude %{_datadir}/apps/noatun/*
|
||||
|
||||
|
||||
%files extras
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# atlantikdesigner
|
||||
%doc atlantikdesigner/TODO
|
||||
#%{_bindir}/atlantikdesigner
|
||||
#%{_datadir}/apps/atlantikdesigner/
|
||||
#%{_datadir}/icons/hicolor/*/*/atlantikdesigner*
|
||||
#%{_datadir}/applications/kde/atlantikdesigner.desktop
|
||||
|
||||
# noatun-plugins
|
||||
#%{_bindir}/noatun*
|
||||
#%{tde_libdir}/noatun*
|
||||
#%{_datadir}/apps/noatun/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdeaddons-3.5.10-1"
|
||||
- Import to GIT
|
@ -0,0 +1,190 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
%define console_helper 1
|
||||
|
||||
Name: trinity-kdeadmin
|
||||
Summary: Administrative tools for TDE
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: User Interface/Desktops
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Prefix: %{_prefix}
|
||||
|
||||
Source0: kdeadmin-%{version}.tar.gz
|
||||
Source1: kuser.pam
|
||||
Source2: kuser.pamd
|
||||
Source5: kpackagerc
|
||||
Source6: ksysvrc
|
||||
Source7: kuserrc
|
||||
|
||||
Requires: trinity-kdelibs
|
||||
Requires: pkgconfig
|
||||
%if 0%{?console_helper}
|
||||
Requires: usermode-gtk
|
||||
%endif
|
||||
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: rpm-devel
|
||||
|
||||
%description
|
||||
The kdeadmin package includes administrative tools for the K Desktop
|
||||
Environment (KDE) including:
|
||||
kcron, kdat, knetworkconf, kpackage, ksysv, kuser.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeadmin
|
||||
|
||||
%if 0%{?rhel} > 1
|
||||
echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE kpackage"' >kpackage/configure.in.in
|
||||
echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE ksysv"' >ksysv/configure.in.in
|
||||
echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE kuser"' >kuser/configure.in.in
|
||||
echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE lilo-config"' >lilo-config/configure.in.in
|
||||
%endif
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%if 0%{?fedora} > 0
|
||||
export CXXFLAGS="${CXXFLAGS} -fpermissive"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--with-rpm \
|
||||
--enable-final \
|
||||
--with-private-groups \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
%if 0%{?rhel} > 1
|
||||
comps="kcron kdat knetworkconf"
|
||||
rm -rf %{buildroot}%{_docdir}/HTML/en/kuser \
|
||||
%{buildroot}%{_docdir}/HTML/en/kpackage \
|
||||
%{buildroot}%{_docdir}/HTML/en/ksysv \
|
||||
%{buildroot}%{_docdir}/HTML/en/lilo-config
|
||||
%else
|
||||
comps="kcron kdat knetworkconf kpackage ksysv kuser"
|
||||
mkdir -p %{buildroot}%{_datadir}/config \
|
||||
%{buildroot}/etc/security/console.apps \
|
||||
%{buildroot}/etc/pam.d \
|
||||
%{buildroot}%{_sbindir}
|
||||
|
||||
install -p -m644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{_datadir}/config/
|
||||
|
||||
# Run kuser through consolehelper
|
||||
install -p -m644 %{SOURCE1} %{buildroot}/etc/security/console.apps/kuser
|
||||
install -p -m644 %{SOURCE2} %{buildroot}/etc/pam.d/kuser
|
||||
mv %{buildroot}%{_bindir}/kuser %{buildroot}%{_sbindir}
|
||||
ln -s consolehelper %{buildroot}%{_bindir}/kuser
|
||||
%endif
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}/$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}/$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in $comps ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
%post
|
||||
for icon_theme in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
for icon_theme in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING README
|
||||
%doc rpmdocs/*
|
||||
%{_bindir}/*
|
||||
%if 0%{?rhel} < 1
|
||||
%{_sbindir}/*
|
||||
%config(noreplace) /etc/pam.d/*
|
||||
%config(noreplace) /etc/security/console.apps/*
|
||||
%endif
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
#%{_datadir}/config*/*
|
||||
#%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
#%{_datadir}/mimelnk/*/*.desktop
|
||||
%{_datadir}/service*/*.desktop
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdeadmin-3.5.10-1"
|
||||
- Import to GIT
|
@ -0,0 +1,179 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 4
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdeartwork
|
||||
Summary: Additional artwork (themes, sound themes, ...) for KDE
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: User Interface/Desktops
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
Url: http://www.trinitydesktop.org/
|
||||
|
||||
Source: kdeartwork-%{version}.tar.gz
|
||||
|
||||
# FIXME: this should go in kde-settings -- Rex
|
||||
Source1: webcollagerc
|
||||
|
||||
BuildRequires: gettext
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: libart_lgpl-devel
|
||||
BuildRequires: nas-devel esound-devel jack-audio-connection-kit-devel
|
||||
|
||||
Requires: trinity-kdebase
|
||||
|
||||
%description
|
||||
Additional artwork (themes, sound themes, screensavers ...) for KDE.
|
||||
|
||||
# TODO: build this subpkg noarch
|
||||
%package icons
|
||||
Summary: Icon themes (kdeclassic, slick ....) for KDE
|
||||
Group: User Interface/Desktops
|
||||
%description icons
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeartwork
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug --disable-warnings \
|
||||
--enable-final \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%make_install
|
||||
|
||||
# webcollage -root -directory /usr/share/backgrounds/images #227683
|
||||
|
||||
# rpmdocs
|
||||
for dir in IconThemes/* kworldclock kscreensaver/kxsconfig ; do
|
||||
for file in AUTHORS ChangeLog COPYRIGHT README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
# File lists
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# kde vs xscreensaver based screensavers
|
||||
for screensaver in %{buildroot}%{_datadir}/applnk/System/ScreenSavers/*.desktop ; do
|
||||
if [ `grep '^TryExec=xscreensaver' $screensaver` ]; then
|
||||
echo $screensaver | sed -e "s|%{buildroot}||" >> %{name}-extras.lang
|
||||
else
|
||||
echo $screensaver | sed -e "s|%{buildroot}||" >> %{name}.lang
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
%post icons
|
||||
for i in locolor ikons kdeclassic kids slick ; do
|
||||
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
|
||||
done
|
||||
|
||||
%postun icons
|
||||
for i in locolor ikons kdeclassic kids slick ; do
|
||||
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
|
||||
done
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc kwin-styles/smooth-blend/COPYING
|
||||
%doc rpmdocs/kworldclock
|
||||
%{_bindir}/*.kss
|
||||
%{tde_libdir}/plugins/styles/*
|
||||
%{tde_libdir}/*.so
|
||||
%{tde_libdir}/*.la
|
||||
%{_datadir}/apps/kfiresaver/
|
||||
%{_datadir}/apps/kscreensaver/
|
||||
%{_datadir}/apps/kstyle/themes/*
|
||||
%{_datadir}/apps/kwin/*
|
||||
%{_datadir}/apps/kworldclock/
|
||||
%{_datadir}/sounds/*
|
||||
%{_datadir}/wallpapers/*
|
||||
%{_datadir}/emoticons/*
|
||||
%{_bindir}/kxs*
|
||||
|
||||
%files icons
|
||||
%defattr(-,root,root,-)
|
||||
%doc rpmdocs/IconThemes/*
|
||||
%{_datadir}/icons/ikons/
|
||||
%{_datadir}/icons/kdeclassic/
|
||||
%{_datadir}/icons/kids/
|
||||
%{_datadir}/icons/Locolor/
|
||||
%{_datadir}/icons/slick/
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-4
|
||||
- Import to GIT
|
||||
|
||||
* Tue Aug 23 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
|
||||
- Add correction for Fedora 15
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Fri Aug 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial version
|
||||
- Spec file based on Fedora 8 "kdeartwork 3.5.10-1"
|
@ -0,0 +1,169 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.13
|
||||
%endif
|
||||
%define release 0
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.13 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_libdir %{_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-kdeartwork
|
||||
Summary: Additional artwork (themes, sound themes, ...) for KDE
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: User Interface/Desktops
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
Url: http://www.trinitydesktop.org/
|
||||
|
||||
Source: kdeartwork-%{version}.tar.gz
|
||||
|
||||
# FIXME: this should go in kde-settings -- Rex
|
||||
Source1: webcollagerc
|
||||
|
||||
BuildRequires: gettext
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: libart_lgpl-devel
|
||||
BuildRequires: nas-devel esound-devel jack-audio-connection-kit-devel
|
||||
|
||||
Requires: trinity-kdebase
|
||||
|
||||
%description
|
||||
Additional artwork (themes, sound themes, screensavers ...) for KDE.
|
||||
|
||||
# TODO: build this subpkg noarch
|
||||
%package icons
|
||||
Summary: Icon themes (kdeclassic, slick ....) for KDE
|
||||
Group: User Interface/Desktops
|
||||
%description icons
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeartwork
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug --disable-warnings \
|
||||
--enable-final \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%make_install
|
||||
|
||||
# webcollage -root -directory /usr/share/backgrounds/images #227683
|
||||
|
||||
# rpmdocs
|
||||
for dir in IconThemes/* kworldclock kscreensaver/kxsconfig ; do
|
||||
for file in AUTHORS ChangeLog COPYRIGHT README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
# File lists
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# kde vs xscreensaver based screensavers
|
||||
for screensaver in %{buildroot}%{_datadir}/applnk/System/ScreenSavers/*.desktop ; do
|
||||
if [ `grep '^TryExec=xscreensaver' $screensaver` ]; then
|
||||
echo $screensaver | sed -e "s|%{buildroot}||" >> %{name}-extras.lang
|
||||
else
|
||||
echo $screensaver | sed -e "s|%{buildroot}||" >> %{name}.lang
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
%post icons
|
||||
for i in locolor ikons kdeclassic kids slick ; do
|
||||
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
|
||||
done
|
||||
|
||||
%postun icons
|
||||
for i in locolor ikons kdeclassic kids slick ; do
|
||||
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc kwin-styles/smooth-blend/COPYING
|
||||
%doc rpmdocs/kworldclock
|
||||
%{_bindir}/*.kss
|
||||
%{tde_libdir}/plugins/styles/*
|
||||
%{tde_libdir}/*.so
|
||||
%{tde_libdir}/*.la
|
||||
%{_datadir}/apps/kfiresaver/
|
||||
%{_datadir}/apps/kscreensaver/
|
||||
%{_datadir}/apps/kstyle/themes/*
|
||||
%{_datadir}/apps/kwin/*
|
||||
%{_datadir}/apps/kworldclock/
|
||||
%{_datadir}/sounds/*
|
||||
%{_datadir}/wallpapers/*
|
||||
%{_datadir}/emoticons/*
|
||||
%{_bindir}/kxs*
|
||||
|
||||
%files icons
|
||||
%defattr(-,root,root,-)
|
||||
%doc rpmdocs/IconThemes/*
|
||||
%{_datadir}/icons/ikons/
|
||||
%{_datadir}/icons/kdeclassic/
|
||||
%{_datadir}/icons/kids/
|
||||
%{_datadir}/icons/Locolor/
|
||||
%{_datadir}/icons/slick/
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
|
||||
- Import to GIT
|
@ -0,0 +1,220 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdeedu
|
||||
Summary: Educational/Edutainment applications
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: Amusements/Games
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Source0: kdeedu-%{version}.tar.gz
|
||||
|
||||
Provides: kdeedu3 = %{version}-%{release}
|
||||
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: python-devel python
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: ocaml(compiler)
|
||||
#BuildRequires: ocaml-facile-devel
|
||||
|
||||
|
||||
%description
|
||||
Educational/Edutainment applications, including:
|
||||
* blinken: Simon Says Game
|
||||
* kalzium: Periodic Table of Elements
|
||||
* kanagram: Letter Order Game
|
||||
* kbruch: Exercise Fractions
|
||||
* keduca: Tests and Exams
|
||||
* kgeography: Geography Trainer
|
||||
* khangman: Hangman Game
|
||||
* kig: Interactive Geometry
|
||||
* kiten: Japanese Reference/Study Tool
|
||||
* klatin: Latin Reviser
|
||||
* klettres: French alphabet tutor
|
||||
* kmplot: Mathematical Function Plotter
|
||||
* kpercentage: Excersie Percentages
|
||||
* kstars: Desktop Planetarium
|
||||
* ktouch: Touch Typing Tutor
|
||||
* kturtle: Logo Programming Environment
|
||||
* kverbos: Study Spanish Verbforms
|
||||
* kvoctrain: Vocabulary Trainer
|
||||
* kwordquiz: Vocabulary Trainer
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Provides: kdeedu3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs
|
||||
# include to be paranoid, installing libs-only is still mostly untested -- Rex
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeedu
|
||||
|
||||
%if 0%{?rhel} > 0
|
||||
rm -rf doc/kgeography kgeography
|
||||
perl -pi -e "s|kgeography||" subdirs
|
||||
%endif
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
# Fix link with kparts
|
||||
export CXXFLAGS="${CXXFLAGS} -lkparts"
|
||||
|
||||
%if 0%{?fedora}
|
||||
export CXXFLAGS="${CXXFLAGS} -fpermissive"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--enable-kig-python-scripting \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--enable-final \
|
||||
--enable-closure \
|
||||
--includedir=%{_includedir}/kde \
|
||||
--disable-ocamlsolver \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
|
||||
%__make %{?_smp_mflags} \
|
||||
OCAMLLIB=$(ocamlc -where) FACILELIB=$(ocamlc -where)
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in blinken k* ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
for i in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
|
||||
done
|
||||
update-desktop-database >& /dev/null ||:
|
||||
|
||||
%postun
|
||||
for i in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
|
||||
gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
|
||||
done
|
||||
update-desktop-database >& /dev/null ||:
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc README COPYING
|
||||
%doc rpmdocs/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*
|
||||
# FIXME
|
||||
%{_datadir}/applnk/Edutainment/
|
||||
%{_datadir}/apps/*
|
||||
%config %{_datadir}/config*/*
|
||||
%{_datadir}/mimelnk/*/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
%{_datadir}/services/*
|
||||
%{tde_libdir}/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc libkdeedu/AUTHORS libkdeedu/README
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdeedu-3.5.10-1"
|
||||
- Import to GIT
|
@ -0,0 +1,189 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdegames
|
||||
Summary: Trinity Desktop Environment - Games
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: Amusements/Games
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Source: kdegames-%{version}.tar.gz
|
||||
|
||||
Provides: kdegames3 = %{version}-%{release}
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
|
||||
%description
|
||||
Games and gaming libraries for the K Desktop Environment.
|
||||
Included with this package are: kenolaba, kasteroids, kblackbox, kmahjongg,
|
||||
kmines, konquest, kpat, kpoker, kreversi, ksame, kshisen, ksmiletris,
|
||||
ksnake, ksirtet, katomic, kjumpingcube, ktuberling.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2
|
||||
Provides: kdegames3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
%{summary}.
|
||||
Install %{name}-devel if you wish to develop or compile games for the
|
||||
KDE desktop.
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs
|
||||
License: LGPLv2
|
||||
# include to paranoid, installing libs-only is still mostly untested -- Rex
|
||||
#Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdegames
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%if 0%{?fedora} > 0
|
||||
export CXXFLAGS="${CXXFLAGS} -lkio"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--enable-final \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--includedir=%{_includedir}/kde \
|
||||
--disable-setgid \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%make_install
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in k* lskat ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS README COPYING
|
||||
%doc rpmdocs/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/config*/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/mimelnk/*/*
|
||||
%{_datadir}/service*/*
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/libkdeinit_*.so
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.LIB
|
||||
%doc libkdegames/README libkdegames/TODO
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %{_libdir}/libkdeinit_*.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdegames-3.5.10-1"
|
||||
- Import to GIT
|
@ -0,0 +1,357 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdegraphics
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{_variant}
|
||||
License: GPL
|
||||
Summary: K Desktop Environment - Graphics Applications
|
||||
|
||||
Group: Applications/Multimedia
|
||||
Prefix: %{_prefix}
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: kdegraphics-%{version}.tar.gz
|
||||
|
||||
# Official TDE patches (from SVN)
|
||||
# Fix kdegraphics FTBFS under gcc4.6
|
||||
# Thanks to David Rankin for the patch!
|
||||
Patch0: r1242777.diff
|
||||
|
||||
# [kdegraphics/kviewshell]: GCC >= 4.5 fix
|
||||
# avoid "documentWidget.cpp:290:70: error: taking address of temporary"
|
||||
Patch1: kdegraphics-documentwidget-gcc45.patch
|
||||
|
||||
BuildRequires: tqtinterface-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdebase-devel
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libmng-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libungif-devel
|
||||
BuildRequires: automake libtool
|
||||
BuildRequires: gphoto2-devel
|
||||
BuildRequires: sane-backends-devel
|
||||
BuildRequires: libusb-devel
|
||||
|
||||
# kgamma
|
||||
BuildRequires: libXxf86vm-devel
|
||||
# kuickshow
|
||||
BuildRequires: imlib-devel
|
||||
#kfile-plugin
|
||||
BuildRequires: OpenEXR-devel
|
||||
# kpdf
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: poppler-qt-devel
|
||||
BuildRequires: libpaper-devel
|
||||
# ksvg
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: fribidi-devel
|
||||
BuildRequires: lcms-devel
|
||||
BuildRequires: libart_lgpl-devel
|
||||
BuildRequires: libXmu-devel
|
||||
# kpovmodeler
|
||||
BuildRequires: libGL-devel libGLU-devel libXi-devel
|
||||
|
||||
Requires: tqtinterface
|
||||
Requires: trinity-arts
|
||||
Requires: trinity-kdelibs
|
||||
Requires: ghostscript
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%if "%{_prefix}" == "/usr"
|
||||
Provides: kdegraphics3 = %{version}-%{release}
|
||||
Conflicts: kdegraphics
|
||||
%endif
|
||||
|
||||
%description
|
||||
Graphics applications for the K Desktop Environment, including
|
||||
* kamera (digital camera support)
|
||||
* kcoloredit (palette editor and color chooser)
|
||||
* kdvi (displays TeX .dvi files)
|
||||
* kghostview (displays postscript files)
|
||||
* kiconedit (icon editor)
|
||||
* kooka (scanner application)
|
||||
* kpdf (displays PDF files)
|
||||
* kruler (screen ruler and color measurement tool)
|
||||
* ksnapshot (screen capture utility)
|
||||
* kview (image viewer for GIF, JPEG, TIFF, etc.)
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Provides: kdegraphics3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Group: Development/Libraries
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
## FIXME: move more stuff to -extras
|
||||
%package extras
|
||||
Summary: Extra applications from %{name}
|
||||
Group: Applications/Multimedia
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
|
||||
%description extras
|
||||
%{summary}, including:
|
||||
* kfax
|
||||
* kfaxview
|
||||
* kpovmodler
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs >= %{version}
|
||||
# include to be paranoid, installing libs-only is still mostly untested -- Rex
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdegraphics
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--enable-final \
|
||||
--includedir=%{_includedir}/kde \
|
||||
--with-xinerama \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%if 0%{?fedora} >= 15
|
||||
# Ugly fix for kolourpaint - problem when linking libkdefx.so
|
||||
sed -i kolourpaint/Makefile \
|
||||
-e 's,\($(kolourpaint_LINK) $(kolourpaint_OBJECTS) $(kolourpaint_LDADD) \)\($(LIBS)\),\1 -lkdefx \2,'
|
||||
|
||||
# Another ugly fix for kpdf - problem when linking fontconfig
|
||||
sed -i kpdf/Makefile \
|
||||
-e '/^LDFLAGS = .*/ s,$, -lfontconfig,'
|
||||
%endif
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in k* ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
if test -s "$dir/$file" ; then
|
||||
install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
echo "%doc rpmdocs/$dir/" >> %{name}.lang
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# unpackaged files
|
||||
# omit kpovmodeler-devel files (for now) -- Rex
|
||||
rm -f %{buildroot}/libkpovmodeler.so
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%post extras
|
||||
/sbin/ldconfig ||:
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun extras
|
||||
/sbin/ldconfig ||:
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
|
||||
%files extras
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# kfax
|
||||
%doc rpmdocs/kfax/
|
||||
%{_bindir}/kfax
|
||||
%{_datadir}/applications/kde/kfax.desktop
|
||||
%{_datadir}/apps/kfax/
|
||||
%{_datadir}/icons/hicolor/??x??/apps/kfax.png
|
||||
%{_datadir}/icons/hicolor/scalable/apps/kfax.svgz
|
||||
|
||||
# kfaxview
|
||||
%{_bindir}/kfaxview
|
||||
%{_libdir}/libkfaximage.so
|
||||
%{_libdir}/libkfaximage.la
|
||||
%{tde_libdir}/kfaxviewpart.*
|
||||
%{_datadir}/applications/kde/kfaxview.desktop
|
||||
%{_datadir}/apps/kfaxview/
|
||||
%{_datadir}/icons/hicolor/??x??/apps/kfaxview.png
|
||||
%{_datadir}/icons/hicolor/scalable/apps/kfaxview.svgz
|
||||
%{_datadir}/services/kfaxmultipage.desktop
|
||||
%{_datadir}/services/kfaxmultipage_tiff.desktop
|
||||
|
||||
# kpovmodeler
|
||||
%doc rpmdocs/kpovmodeler/
|
||||
%doc %{_docdir}/HTML/en/kpovmodeler/
|
||||
%{_bindir}/kpovmodeler
|
||||
%{_libdir}/libkpovmodeler.so.*
|
||||
%{_libdir}/libkpovmodeler.la
|
||||
%{tde_libdir}/libkpovmodelerpart.*
|
||||
%{_datadir}/applications/kde/kpovmodeler.desktop
|
||||
%{_datadir}/apps/kpovmodeler/
|
||||
%{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
|
||||
%{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING README
|
||||
%doc rpmdocs/*
|
||||
|
||||
# kfax
|
||||
%exclude %{_bindir}/kfax
|
||||
%exclude %{_datadir}/applications/kde/kfax.desktop
|
||||
%exclude %{_datadir}/apps/kfax/
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/kfax.*
|
||||
|
||||
# kfaxview
|
||||
%exclude %{_bindir}/kfaxview
|
||||
%exclude %{_libdir}/libkfaximage.so
|
||||
%exclude %{_libdir}/libkfaximage.la
|
||||
%exclude %{tde_libdir}/kfaxviewpart.*
|
||||
%exclude %{_datadir}/applications/kde/kfaxview.desktop
|
||||
%exclude %{_datadir}/apps/kfaxview/
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/kfaxview.*
|
||||
%exclude %{_datadir}/services/kfaxmultipage.desktop
|
||||
%exclude %{_datadir}/services/kfaxmultipage_tiff.desktop
|
||||
|
||||
# kpovmodeler
|
||||
%exclude %{tde_docdir}/HTML/en/kpovmodeler/
|
||||
%exclude %{_bindir}/kpovmodeler
|
||||
%exclude %{_libdir}/libkpovmodeler.*
|
||||
%exclude %{tde_libdir}/libkpovmodelerpart.*
|
||||
%exclude %{_datadir}/applications/kde/kpovmodeler.desktop
|
||||
%exclude %{_datadir}/apps/kpovmodeler/
|
||||
%exclude %{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
|
||||
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/applnk/Graphics/*kruler.desktop
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/config*/*
|
||||
%{_datadir}/service*/*
|
||||
%{_datadir}/mimelnk/*/*
|
||||
%{_libdir}/libkdeinit_*.so
|
||||
%{tde_libdir}/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%exclude %{_libdir}/libkfaximage.la
|
||||
%exclude %{_libdir}/libkpovmodeler.la
|
||||
%exclude %{_libdir}/libkpovmodeler.so.*
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
# Why ???
|
||||
%{_libdir}/libdjvu.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/kde/*
|
||||
%{_libdir}/lib*.so
|
||||
#exclude %{_libdir}/libkpovmodeler.so
|
||||
%exclude %{_libdir}/libkfaximage.so
|
||||
%exclude %{_libdir}/libkdeinit_*.so
|
||||
%exclude %{_libdir}/libdjvu.so
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Import to GIT
|
||||
|
||||
* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Add fix for Fedora 15
|
||||
- Add 'patch0' and 'patch1' for GCC >= 4.5
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Thu Jun 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-0
|
||||
- Initial build for RHEL 6.0
|
||||
- SPEC file taken from Fedora 8 "kdegraphics 7:3.5.10-1"
|
@ -0,0 +1,10 @@
|
||||
--- kdemultimedia-3.4.0/kappfinder-data/kde-multimedia-music.menu.tn 2005-04-25 16:16:32.000000000 +0200
|
||||
+++ kdemultimedia-3.4.0/kappfinder-data/kde-multimedia-music.menu 2005-04-25 16:17:51.000000000 +0200
|
||||
@@ -2,6 +2,7 @@
|
||||
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
|
||||
|
||||
<Menu>
|
||||
+<Name>Applications</Name>
|
||||
<Menu>
|
||||
<Name>Multimedia</Name>
|
||||
<Exclude>
|
@ -0,0 +1,11 @@
|
||||
--- kdemultimedia-3.5.7-patched/xine_artsplugin/Makefile.am.pthread 2006-07-22 03:10:54.000000000 -0500
|
||||
+++ kdemultimedia-3.5.7-patched/xine_artsplugin/Makefile.am 2007-06-28 06:50:53.000000000 -0500
|
||||
@@ -8,7 +8,7 @@
|
||||
xinePlayObject_impl.cpp \
|
||||
audio_fifo_out.c
|
||||
libarts_xine_la_LDFLAGS = $(all_libraries) -module -no-undefined -pthread
|
||||
-libarts_xine_la_LIBADD = $(XINE_LIBS) $(LIB_X11) $(LIB_XEXT) \
|
||||
+libarts_xine_la_LIBADD = $(XINE_LIBS) $(LIBPTHREAD) $(LIB_X11) $(LIB_XEXT) \
|
||||
-lkmedia2_idl -lsoundserver_idl -lartsflow
|
||||
|
||||
libarts_xine_la_METASOURCES = AUTO
|
@ -0,0 +1,19 @@
|
||||
*** configure.in.in.ORI 2011-09-10 21:38:57.805533683 +0200
|
||||
--- configure.in.in 2011-09-10 21:39:08.687283728 +0200
|
||||
***************
|
||||
*** 542,548 ****
|
||||
if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
|
||||
LIB_ARTS="-lartskde"
|
||||
ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
|
||||
! ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
|
||||
AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
|
||||
else
|
||||
build_arts="no"
|
||||
--- 542,548 ----
|
||||
if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
|
||||
LIB_ARTS="-lartskde"
|
||||
ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
|
||||
! ARTS_CFLAGS="-I$ARTS_PREFIX/include"
|
||||
AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
|
||||
else
|
||||
build_arts="no"
|
@ -0,0 +1,389 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
%define appdir %{_datadir}/applications/kde
|
||||
|
||||
# former extras bits
|
||||
#define _with_akode --with-akode
|
||||
## not currently compatible with libtunepimp-0.5 (only libtunepimp-0.4)
|
||||
#define _with_musicbrainz --with-musicbrainz
|
||||
%define _with_taglib --with-taglib
|
||||
%define _with_xine --with-xine
|
||||
|
||||
Name: trinity-kdemultimedia
|
||||
Summary: Multimedia applications for the K Desktop Environment (KDE)
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: Applications/Multimedia
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: kdemultimedia-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Provides: kdemultimedia3 = %{version}-%{release}
|
||||
|
||||
# RedHat Legacy patches (from Fedora 8)
|
||||
Patch3: kdemultimedia-3.4.0-xdg.patch
|
||||
Patch5: kdemultimedia-3.5.7-pthread.patch
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: libvorbis-devel
|
||||
BuildRequires: audiofile-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libtheora-devel
|
||||
BuildRequires: flac-devel
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: cdparanoia-devel cdparanoia
|
||||
BuildRequires: gstreamer-devel
|
||||
BuildRequires: automake libtool
|
||||
%{?_with_akode:BuildRequires: akode-devel}
|
||||
%{?_with_musicbrainz:BuildRequires: libmusicbrainz-devel libtunepimp-devel}
|
||||
%{?_with_taglib:BuildRequires: taglib-devel}
|
||||
%{?_with_xine:BuildRequires: xine-lib-devel}
|
||||
|
||||
%description
|
||||
The K Desktop Environment (KDE) is a GUI desktop for the X Window
|
||||
System. The %{name} package contains multimedia applications for
|
||||
KDE, including:
|
||||
kmid, a midi player
|
||||
kmix, an audio mixer
|
||||
arts, additional functionality for the aRts sound system
|
||||
krec, a recording tool
|
||||
kscd, an Audio-CD player
|
||||
kaudiocreator, a graphical frontend for audio file creation
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}, aRts and noatun plugins
|
||||
Group: Development/Libraries
|
||||
Provides: kdemultimedia3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
# for noatun shlib(s)
|
||||
Requires: %{name}-extras-libs = %{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
{summary}.
|
||||
Install %{name}-devel if you wish to develop or compile any
|
||||
applications using aRtsbuilder, aRtsmidi, aRtskde, aRts modules or
|
||||
noatun plugins.
|
||||
|
||||
%package extras
|
||||
Summary: Extra applications from %{name}
|
||||
Group: Applications/Multimedia
|
||||
%if 0%{?libs}
|
||||
Requires: %{name}-extras-libs = %{version}-%{release}
|
||||
%else
|
||||
Obsoletes: %{name}-extras-libs < %{version}-%{release}
|
||||
Provides: %{name}-extras-libs = %{version}-%{release}
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
%endif
|
||||
%description extras
|
||||
%{summary}, including:
|
||||
* juk, a media player
|
||||
* kaboodle, a media player
|
||||
* noatun, a media player
|
||||
|
||||
%package extras-libs
|
||||
Summary: Extra %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%description extras-libs
|
||||
%{summary}.
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs
|
||||
# include to be paranoid, installing libs-only is still mostly untested -- Rex
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdemultimedia
|
||||
%patch3 -p1 -b .xdg
|
||||
%patch5 -p1 -b .pthread
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%if 0%{?fedora} > 0
|
||||
export CXXFLAGS="${CXXFLAGS} -lDCOP"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--includedir=%{tde_includedir} \
|
||||
--with-cdparanoia \
|
||||
--with-flac \
|
||||
--with-theora \
|
||||
--with-vorbis \
|
||||
--with-alsa \
|
||||
--with-gstreamer \
|
||||
--without-lame \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--enable-final \
|
||||
--disable-rpath \
|
||||
%{?_with_akode} %{!?_with_akode:--without-akode} \
|
||||
%{?_with_musicbrainz} %{!?_with_musicbrainz:--without-musicbrainz} \
|
||||
%{?_with_taglib} %{!?_with_taglib:--without-taglib} \
|
||||
%{?_with_xine} %{!?_with_xine:--without-xine} \
|
||||
--with-extra-includes=%{_usr}/include/cdda:%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%make_install
|
||||
%make_install -C kaudiocreator
|
||||
|
||||
## Remove/uninstall (conflicting) bits we don't want
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/mcop/akode*MPEGPlayObject.mcopclass
|
||||
|
||||
# only show in KDE, really? -- Rex (FIXME)
|
||||
for f in %{buildroot}%{appdir}/*.desktop ; do
|
||||
if [ -f %{buildroot}%{appdir}/*.desktop ] ; then
|
||||
echo "OnlyShowIn=KDE;" >> $f
|
||||
fi
|
||||
done
|
||||
|
||||
# don't make these world-writeable
|
||||
chmod go-w %{buildroot}%{_datadir}/apps/kscd/*
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in k* ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
if test -s "$dir/$file" ; then
|
||||
install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
# exclude kaboodle, juk, noatun
|
||||
if [ $dir != kaboodle -a $dir != juk -a $dir != noatun ] ; then
|
||||
echo "%doc rpmdocs/$dir/" >> %{name}.lang
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
%post
|
||||
%{?libs:/sbin/ldconfig}
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
%{?libs:/sbin/ldconfig}
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%post extras-libs -p /sbin/ldconfig
|
||||
|
||||
%postun extras-libs -p /sbin/ldconfig
|
||||
|
||||
%post extras
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun extras
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files extras
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# kaboodle
|
||||
%doc rpmdocs/kaboodle/
|
||||
%doc %lang(en) %{_docdir}/HTML/en/kaboodle/
|
||||
%{_bindir}/kaboodle
|
||||
%{tde_libdir}/libkaboodlepart.*
|
||||
%{_datadir}/applications/kde/kaboodle.desktop
|
||||
%{_datadir}/apps/kaboodle/
|
||||
%{_datadir}/icons/hicolor/*/apps/kaboodle.png
|
||||
%{_datadir}/services/kaboodle*
|
||||
|
||||
# noatun
|
||||
%doc %lang(en) %{_docdir}/HTML/en/noatun/
|
||||
%{_bindir}/noatun
|
||||
%{_libdir}/kconf_update_bin/noatun20update
|
||||
%{tde_libdir}/noatun*
|
||||
%{_libdir}/libartseffects.*
|
||||
%{_libdir}/libwinskinvis.*
|
||||
%{_libdir}/libkdeinit_noatun.*
|
||||
%{_datadir}/applications/kde/noatun.desktop
|
||||
%{_datadir}/apps/kconf_update/noatun.upd
|
||||
%{_datadir}/apps/noatun/
|
||||
%{_datadir}/icons/hicolor/*/apps/noatun.png
|
||||
%{_datadir}/mimelnk/interface/x-winamp-skin.desktop
|
||||
|
||||
# juk
|
||||
%doc %lang(en) %{_docdir}/HTML/en/juk/
|
||||
%{_bindir}/juk
|
||||
%{_datadir}/applications/kde/juk.desktop
|
||||
%{_datadir}/apps/juk/
|
||||
%{_datadir}/apps/konqueror/servicemenus/jukservicemenu.desktop
|
||||
%{_datadir}/icons/crystalsvg/*/*/juk*
|
||||
%{_datadir}/icons/hicolor/*/apps/juk.png
|
||||
|
||||
%files extras-libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libnoatun*.la
|
||||
%{_libdir}/libnoatun*.so.*
|
||||
%{_libdir}/libnoatunarts.so
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
|
||||
# kaboodle
|
||||
%exclude %{tde_docdir}/HTML/en/kaboodle/
|
||||
%exclude %{_bindir}/kaboodle
|
||||
%exclude %{tde_libdir}/libkaboodlepart.*
|
||||
%exclude %{_datadir}/applications/kde/kaboodle.desktop
|
||||
%exclude %{_datadir}/apps/kaboodle/
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/kaboodle.png
|
||||
%exclude %{_datadir}/services/kaboodle*
|
||||
|
||||
# noatun
|
||||
%exclude %{tde_docdir}/HTML/en/noatun/
|
||||
%exclude %{_bindir}/noatun
|
||||
%exclude %{_libdir}/kconf_update_bin/noatun20update
|
||||
%exclude %{tde_libdir}/noatun*
|
||||
%exclude %{_libdir}/libartseffects.*
|
||||
%exclude %{_libdir}/libkdeinit_noatun.*
|
||||
%exclude %{_libdir}/libnoatunarts.*
|
||||
%exclude %{_libdir}/libnoatuncontrols.*
|
||||
%exclude %{_libdir}/libnoatun.*
|
||||
%exclude %{_libdir}/libnoatuntags.*
|
||||
%exclude %{_libdir}/libwinskinvis.*
|
||||
%exclude %{_datadir}/applications/kde/noatun.desktop
|
||||
%exclude %{_datadir}/apps/kconf_update/noatun.upd
|
||||
%exclude %{_datadir}/apps/noatun/
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/noatun.png
|
||||
%exclude %{_datadir}/mimelnk/interface/x-winamp-skin.desktop
|
||||
|
||||
# juk
|
||||
%exclude %{tde_docdir}/HTML/en/juk/
|
||||
%exclude %{_bindir}/juk
|
||||
%exclude %{_datadir}/applications/kde/juk.desktop
|
||||
%exclude %{_datadir}/apps/juk/
|
||||
%exclude %{_datadir}/apps/konqueror/servicemenus/jukservicemenu.desktop
|
||||
%exclude %{_datadir}/icons/crystalsvg/*/*/juk*
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/juk.png
|
||||
|
||||
/etc/xdg/menus/applications-merged/*
|
||||
%{_libdir}/mcop/*
|
||||
%{_libdir}/libkdeinit_*.so
|
||||
#%{_libdir}/liboggarts.so
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/kconf_update_bin/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/autostart/*
|
||||
%{_datadir}/config.kcfg/*
|
||||
%{_datadir}/desktop-directories/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
%{_datadir}/mimelnk/*
|
||||
%{_datadir}/services/*
|
||||
%{_datadir}/servicetypes/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%exclude %{_libdir}/libnoatun*.*
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %{_libdir}/libkdeinit_*.so
|
||||
%exclude %{_libdir}/libartseffects.so
|
||||
%exclude %{_libdir}/libnoatunarts.*
|
||||
#exclude %{_libdir}/liboggarts.so
|
||||
%exclude %{_libdir}/libwinskinvis.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 09 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdemultimedia-6:3.5.10-2"
|
@ -0,0 +1,396 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.13
|
||||
%endif
|
||||
%define release 0
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.13 specific building variables
|
||||
BuildRequires: cmake >= 2.8
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/trinity
|
||||
|
||||
|
||||
%define appdir %{_datadir}/applications/kde
|
||||
|
||||
# former extras bits
|
||||
#define _with_akode --with-akode
|
||||
## not currently compatible with libtunepimp-0.5 (only libtunepimp-0.4)
|
||||
#define _with_musicbrainz --with-musicbrainz
|
||||
%define _with_taglib --with-taglib
|
||||
%define _with_xine --with-xine
|
||||
|
||||
Name: trinity-kdemultimedia
|
||||
Summary: Multimedia applications for the K Desktop Environment (KDE)
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: Applications/Multimedia
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Source0: kdemultimedia-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Provides: kdemultimedia3 = %{version}-%{release}
|
||||
|
||||
# RedHat Legacy patches (from Fedora 8)
|
||||
Patch3: kdemultimedia-3.4.0-xdg.patch
|
||||
Patch5: kdemultimedia-3.5.7-pthread.patch
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: libvorbis-devel
|
||||
BuildRequires: audiofile-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libtheora-devel
|
||||
BuildRequires: flac-devel
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: cdparanoia-devel cdparanoia
|
||||
BuildRequires: gstreamer-devel
|
||||
BuildRequires: automake libtool
|
||||
%{?_with_akode:BuildRequires: akode-devel}
|
||||
%{?_with_musicbrainz:BuildRequires: libmusicbrainz-devel libtunepimp-devel}
|
||||
%{?_with_taglib:BuildRequires: taglib-devel}
|
||||
%{?_with_xine:BuildRequires: xine-lib-devel}
|
||||
|
||||
%description
|
||||
The K Desktop Environment (KDE) is a GUI desktop for the X Window
|
||||
System. The %{name} package contains multimedia applications for
|
||||
KDE, including:
|
||||
kmid, a midi player
|
||||
kmix, an audio mixer
|
||||
arts, additional functionality for the aRts sound system
|
||||
krec, a recording tool
|
||||
kscd, an Audio-CD player
|
||||
kaudiocreator, a graphical frontend for audio file creation
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}, aRts and noatun plugins
|
||||
Group: Development/Libraries
|
||||
Provides: kdemultimedia3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
# for noatun shlib(s)
|
||||
Requires: %{name}-extras-libs = %{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
{summary}.
|
||||
Install %{name}-devel if you wish to develop or compile any
|
||||
applications using aRtsbuilder, aRtsmidi, aRtskde, aRts modules or
|
||||
noatun plugins.
|
||||
|
||||
%package extras
|
||||
Summary: Extra applications from %{name}
|
||||
Group: Applications/Multimedia
|
||||
%if 0%{?libs}
|
||||
Requires: %{name}-extras-libs = %{version}-%{release}
|
||||
%else
|
||||
Obsoletes: %{name}-extras-libs < %{version}-%{release}
|
||||
Provides: %{name}-extras-libs = %{version}-%{release}
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
%endif
|
||||
%description extras
|
||||
%{summary}, including:
|
||||
* juk, a media player
|
||||
* kaboodle, a media player
|
||||
* noatun, a media player
|
||||
|
||||
%package extras-libs
|
||||
Summary: Extra %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%description extras-libs
|
||||
%{summary}.
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs
|
||||
# include to be paranoid, installing libs-only is still mostly untested -- Rex
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdemultimedia
|
||||
%patch3 -p1 -b .xdg
|
||||
%patch5 -p1 -b .pthread
|
||||
|
||||
# Ugly hack to modify TQT include directory inside autoconf files.
|
||||
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
|
||||
sed -i admin/acinclude.m4.in \
|
||||
-e "s,/usr/include/tqt,%{_includedir}/tqt,g"
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
|
||||
# just to be paranoid -- Rex
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
export CXXFLAGS="${LDFLAGS} $(pkg-config --libs gsl)"
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--includedir=%{tde_includedir} \
|
||||
--with-cdparanoia \
|
||||
--with-flac \
|
||||
--with-theora \
|
||||
--with-vorbis \
|
||||
--with-alsa \
|
||||
--with-gstreamer \
|
||||
--without-lame \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--enable-final \
|
||||
--disable-rpath \
|
||||
%{?_with_akode} %{!?_with_akode:--without-akode} \
|
||||
%{?_with_musicbrainz} %{!?_with_musicbrainz:--without-musicbrainz} \
|
||||
%{?_with_taglib} %{!?_with_taglib:--without-taglib} \
|
||||
%{?_with_xine} %{!?_with_xine:--without-xine} \
|
||||
--with-extra-includes=%{_usr}/include/cdda:%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%make_install
|
||||
%make_install -C kaudiocreator
|
||||
|
||||
## Remove/uninstall (conflicting) bits we don't want
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/mcop/akode*MPEGPlayObject.mcopclass
|
||||
|
||||
# only show in KDE, really? -- Rex (FIXME)
|
||||
for f in %{buildroot}%{appdir}/*.desktop ; do
|
||||
if [ -f %{buildroot}%{appdir}/*.desktop ] ; then
|
||||
echo "OnlyShowIn=KDE;" >> $f
|
||||
fi
|
||||
done
|
||||
|
||||
# don't make these world-writeable
|
||||
chmod go-w %{buildroot}%{_datadir}/apps/kscd/*
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in k* ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
if test -s "$dir/$file" ; then
|
||||
install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
# exclude kaboodle, juk, noatun
|
||||
if [ $dir != kaboodle -a $dir != juk -a $dir != noatun ] ; then
|
||||
echo "%doc rpmdocs/$dir/" >> %{name}.lang
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
%post
|
||||
%{?libs:/sbin/ldconfig}
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
%{?libs:/sbin/ldconfig}
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%if 0%{?libs}
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%post extras-libs -p /sbin/ldconfig
|
||||
|
||||
%postun extras-libs -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
%post extras
|
||||
%{?libs:/sbin/ldconfig}
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun extras
|
||||
%{?libs:/sbin/ldconfig}
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files extras
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# kaboodle
|
||||
%doc rpmdocs/kaboodle/
|
||||
%doc %lang(en) %{_docdir}/HTML/en/kaboodle/
|
||||
%{_bindir}/kaboodle
|
||||
%{tde_libdir}/libkaboodlepart.*
|
||||
%{_datadir}/applications/kde/kaboodle.desktop
|
||||
%{_datadir}/apps/kaboodle/
|
||||
%{_datadir}/icons/hicolor/*/apps/kaboodle.png
|
||||
%{_datadir}/services/kaboodle*
|
||||
|
||||
# noatun
|
||||
%doc %lang(en) %{_docdir}/HTML/en/noatun/
|
||||
%{_bindir}/noatun
|
||||
%{_libdir}/kconf_update_bin/noatun20update
|
||||
%{tde_libdir}/noatun*
|
||||
%{_libdir}/libartseffects.*
|
||||
%{_libdir}/libwinskinvis.*
|
||||
%{_libdir}/libkdeinit_noatun.*
|
||||
%{_datadir}/applications/kde/noatun.desktop
|
||||
%{_datadir}/apps/kconf_update/noatun.upd
|
||||
%{_datadir}/apps/noatun/
|
||||
%{_datadir}/icons/hicolor/*/apps/noatun.png
|
||||
%{_datadir}/mimelnk/interface/x-winamp-skin.desktop
|
||||
|
||||
# juk
|
||||
%doc %lang(en) %{_docdir}/HTML/en/juk/
|
||||
%{_bindir}/juk
|
||||
%{_datadir}/applications/kde/juk.desktop
|
||||
%{_datadir}/apps/juk/
|
||||
%{_datadir}/apps/konqueror/servicemenus/jukservicemenu.desktop
|
||||
%{_datadir}/icons/crystalsvg/*/*/juk*
|
||||
%{_datadir}/icons/hicolor/*/apps/juk.png
|
||||
|
||||
%files extras-libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libnoatun*.la
|
||||
%{_libdir}/libnoatun*.so.*
|
||||
%{_libdir}/libnoatunarts.so
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
|
||||
# kaboodle
|
||||
%exclude %{tde_docdir}/HTML/en/kaboodle/
|
||||
%exclude %{_bindir}/kaboodle
|
||||
%exclude %{tde_libdir}/libkaboodlepart.*
|
||||
%exclude %{_datadir}/applications/kde/kaboodle.desktop
|
||||
%exclude %{_datadir}/apps/kaboodle/
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/kaboodle.png
|
||||
%exclude %{_datadir}/services/kaboodle*
|
||||
|
||||
# noatun
|
||||
%exclude %{tde_docdir}/HTML/en/noatun/
|
||||
%exclude %{_bindir}/noatun
|
||||
%exclude %{_libdir}/kconf_update_bin/noatun20update
|
||||
%exclude %{tde_libdir}/noatun*
|
||||
%exclude %{_libdir}/libartseffects.*
|
||||
%exclude %{_libdir}/libkdeinit_noatun.*
|
||||
%exclude %{_libdir}/libnoatunarts.*
|
||||
%exclude %{_libdir}/libnoatuncontrols.*
|
||||
%exclude %{_libdir}/libnoatun.*
|
||||
%exclude %{_libdir}/libnoatuntags.*
|
||||
%exclude %{_libdir}/libwinskinvis.*
|
||||
%exclude %{_datadir}/applications/kde/noatun.desktop
|
||||
%exclude %{_datadir}/apps/kconf_update/noatun.upd
|
||||
%exclude %{_datadir}/apps/noatun/
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/noatun.png
|
||||
%exclude %{_datadir}/mimelnk/interface/x-winamp-skin.desktop
|
||||
|
||||
# juk
|
||||
%exclude %{tde_docdir}/HTML/en/juk/
|
||||
%exclude %{_bindir}/juk
|
||||
%exclude %{_datadir}/applications/kde/juk.desktop
|
||||
%exclude %{_datadir}/apps/juk/
|
||||
%exclude %{_datadir}/apps/konqueror/servicemenus/jukservicemenu.desktop
|
||||
%exclude %{_datadir}/icons/crystalsvg/*/*/juk*
|
||||
%exclude %{_datadir}/icons/hicolor/*/apps/juk.png
|
||||
|
||||
/etc/xdg/menus/applications-merged/*
|
||||
%{_libdir}/mcop/*
|
||||
%{_libdir}/libkdeinit_*.so
|
||||
#%{_libdir}/liboggarts.so
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/kconf_update_bin/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/autostart/*
|
||||
%{_datadir}/config.kcfg/*
|
||||
%{_datadir}/desktop-directories/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
%{_datadir}/mimelnk/*
|
||||
%{_datadir}/services/*
|
||||
%{_datadir}/servicetypes/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%exclude %{_libdir}/libnoatun*.*
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %{_libdir}/libkdeinit_*.so
|
||||
%exclude %{_libdir}/libartseffects.so
|
||||
%exclude %{_libdir}/libnoatunarts.*
|
||||
#exclude %{_libdir}/liboggarts.so
|
||||
%exclude %{_libdir}/libwinskinvis.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 09 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdemultimedia-6:3.5.10-2"
|
@ -0,0 +1,493 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 4
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
# Fedora review: http://bugzilla.redhat.com/195486
|
||||
|
||||
## Conditional build:
|
||||
# disabled, for now, doesn't build -- Rex
|
||||
#define _enable_jingle --enable-jingle
|
||||
%define _enable_sametime_plugin --enable-sametime-plugin
|
||||
#define _enable_slp --enable-slp
|
||||
# RHEL6: xmms is outdated !
|
||||
#define _with_xmms --with-xmms
|
||||
%ifnarch s390 s390x
|
||||
%define _with_wifi --with-wifi
|
||||
%endif
|
||||
|
||||
%define console_helper 1
|
||||
|
||||
Name: trinity-kdenetwork
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
Summary: K Desktop Environment - Network Applications
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
License: GPLv2
|
||||
Group: Applications/Internet
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Provides: kdenetwork3 = %{version}-%{release}
|
||||
|
||||
Source0: kdenetwork-%{version}.tar.gz
|
||||
Source1: kppp.pamd
|
||||
Source2: ktalk
|
||||
Source4: lisarc
|
||||
Source5: lisa.redhat
|
||||
|
||||
# RedHat/Fedora legacy patches
|
||||
Patch3: kdenetwork-3.5.8-kppp.patch
|
||||
Patch4: kdenetwork-3.2.3-resolv.patch
|
||||
# include more/proper ppp headers
|
||||
Patch6: kdenetwork-3.5.9-krfb_httpd.patch
|
||||
|
||||
# Trinity official patches, from SVN
|
||||
# Use libv4l1-videodev.h when available in kdenetwork
|
||||
Patch7: r1243951.diff
|
||||
|
||||
# Trinity unofficial patches
|
||||
# Compiling Kopete for Fedora15 ...
|
||||
Patch8: kdenetwork-kopete-gcc45.patch
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: gettext
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: openssl-devel
|
||||
%if 0%{?fedora} > 4 || 0%{?rhel} > 4
|
||||
BuildRequires: libXmu-devel libXScrnSaver-devel libXtst-devel libXxf86vm-devel
|
||||
%endif
|
||||
%if "%{?_with_wifi:1}" == "1"
|
||||
%if 0%{?fedora} > 5 || 0%{?rhel} > 4
|
||||
BuildRequires: wireless-tools-devel
|
||||
%else
|
||||
BuildRequires: wireless-tools
|
||||
%endif
|
||||
%endif
|
||||
%{?_enable_slp:BuildRequires: openslp-devel}
|
||||
## kopete:
|
||||
BuildRequires: libxml2-devel libxslt-devel
|
||||
%ifarch %{ix86}
|
||||
# BR: %{_includedir}/valgrind/valgrind.h
|
||||
BuildRequires: valgrind
|
||||
%endif
|
||||
#jabber
|
||||
BuildRequires: libidn-devel
|
||||
#jabber/jingle
|
||||
%{?_enable_jingle:BuildRequires: expat-devel glib2-devel ortp-devel speex-devel}
|
||||
# jabber/ssl
|
||||
#{?fedora:Requires(hint): qca-tls}
|
||||
# sametime
|
||||
%{?_enable_sametime_plugin:BuildRequires: meanwhile-devel}
|
||||
%{?_with_xmms:BuildRequires: xmms-devel}
|
||||
Requires: jasper
|
||||
## kppp
|
||||
Requires: ppp
|
||||
## krdc
|
||||
Requires: rdesktop
|
||||
## lisa
|
||||
Requires(preun): chkconfig
|
||||
Requires(post): chkconfig
|
||||
#Requires(hint): samba-client
|
||||
BuildRequires: avahi-qt3-devel
|
||||
|
||||
BuildRequires: libv4l-devel
|
||||
|
||||
%if 0%{?console_helper}
|
||||
Requires: usermode-gtk
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
Networking applications, including:
|
||||
* kget: downloader manager
|
||||
* kio_lan: lan browsing kio slave
|
||||
* knewsticker: RDF newsticker applet
|
||||
* kopete: chat client
|
||||
* kppp: dialer and front end for pppd
|
||||
* krdc: a client for Desktop Sharing and other VNC servers
|
||||
* krfb: Desktop Sharing server, allow others to access your desktop via VNC
|
||||
* lisa: lan information server
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Provides: kdenetwork3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%package extras
|
||||
Summary: Extras packages for %{name}
|
||||
Group: Applications/Internet
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%if "%{?_with_xmms:1}" == "1"
|
||||
Obsoletes: %{name}-nowlistening < %{version}-%{release}
|
||||
Provides: %{name}-nowlistening = %{version}-%{release}
|
||||
%endif
|
||||
%description extras
|
||||
More Networking applications for the K Desktop Environment:
|
||||
* ksirc
|
||||
* kdict
|
||||
* ktalkd
|
||||
* kpf
|
||||
* kwifimanager
|
||||
%if "%{?_with_xmms:1}" == "1"
|
||||
* nowlistening (xmms) plugin for Kopete.
|
||||
%endif
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs >= %{version}
|
||||
# helps multilib upgrades
|
||||
Obsoletes: %{name} < %{version}-%{release}
|
||||
# include to be paranoid, installing libs-only is still mostly untested -- Rex
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdenetwork
|
||||
|
||||
%if %{console_helper}
|
||||
%patch3 -p1 -b .kppp
|
||||
%endif
|
||||
%patch4 -p1 -b .resolv
|
||||
%patch6 -p1 -b .krfb_httpd
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--enable-final \
|
||||
--includedir=%{tde_includedir} \
|
||||
%{?_enable_jingle} %{!?_enable_jingle:--disable-jingle} \
|
||||
%{?_enable_sametime_plugin} %{!?_enable_sametime_plugin:--disable-sametime-plugin} \
|
||||
%{?_enable_slp} %{!?_enable_slp:--disable-slp} \
|
||||
%{?_with_wifi} %{!?_with_wifi:--without-wifi} \
|
||||
%{?_with_xmms} %{!?_with_xmms:--without-xmms} \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%make_install
|
||||
# RHEL6: kppp seems to be not installed by previous command ???
|
||||
%make_install -C kppp
|
||||
|
||||
|
||||
## File lists
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
# HTML (1.0)
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && %{__rm} -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Show only in KDE, FIXME, need to re-evaluate these -- Rex
|
||||
for i in fileshare kcmkrfb kcmktalkd kcmwifi krfb kppp kppplogview \
|
||||
kwifimanager kget knewsticker ksirc kdict ; do
|
||||
if [ -f %{buildroot}%{_datadir}/applications/kde/$i.desktop ] ; then
|
||||
echo "OnlyShowIn=KDE;" >> %{buildroot}%{_datadir}/applications/kde/$i.desktop
|
||||
fi
|
||||
done
|
||||
|
||||
%if %console_helper
|
||||
# Run kppp through consolehelper
|
||||
install -p -m644 -D %{SOURCE1} %{buildroot}/etc/pam.d/kppp3
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mv %{buildroot}%{_bindir}/kppp %{buildroot}%{_sbindir}
|
||||
ln -s consolehelper %{buildroot}%{_bindir}/kppp
|
||||
mkdir -p %{buildroot}/etc/security/console.apps
|
||||
cat > %{buildroot}/etc/security/console.apps/kppp3 <<EOF
|
||||
USER=root
|
||||
PROGRAM=%{_sbindir}/kppp
|
||||
SESSION=true
|
||||
EOF
|
||||
%endif
|
||||
|
||||
# ktalk
|
||||
install -p -m 0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/ktalk
|
||||
|
||||
# Add lisa startup script
|
||||
install -p -m 0644 -D %{SOURCE4} %{buildroot}%{_sysconfdir}/lisarc
|
||||
install -p -m 0755 -D %{SOURCE5} %{buildroot}%{_initrddir}/lisa
|
||||
|
||||
%post
|
||||
/sbin/chkconfig --add lisa ||:
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/chkconfig --del lisa ||:
|
||||
/sbin/service lisa stop > /dev/null 2>&1 ||:
|
||||
fi
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%post extras
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
|
||||
%postun extras
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files extras
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# ksirc
|
||||
%{_docdir}/HTML/??/ksirc/
|
||||
%{_bindir}/ksirc
|
||||
%{_libdir}/libkdeinit_ksirc.*
|
||||
%{_libdir}/kde3/ksirc.*
|
||||
%{_datadir}/applications/kde/ksirc.desktop
|
||||
%{_datadir}/apps/ksirc/
|
||||
%config(noreplace) %{_datadir}/config/ksircrc
|
||||
%{_datadir}/icons/hicolor/*/apps/ksirc.*
|
||||
|
||||
# kdict
|
||||
%{_docdir}/HTML/en/kdict
|
||||
%{_bindir}/kdict
|
||||
%{_libdir}/kde3/kdict*
|
||||
%{_libdir}/libkdeinit_kdict.*
|
||||
%{_datadir}/applications/kde/kdict.desktop
|
||||
%{_datadir}/apps/kdict
|
||||
%{_datadir}/apps/kicker/applets/kdictapplet.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/kdict.*
|
||||
|
||||
# ktalk
|
||||
%{_docdir}/HTML/en/ktalkd
|
||||
%{_bindir}/ktalkd*
|
||||
%{_libdir}/kde3/kcm_ktalkd.*
|
||||
%{_datadir}/applications/kde/kcmktalkd.desktop
|
||||
%config(noreplace) %{_datadir}/config/ktalkdrc
|
||||
%{_datadir}/icons/crystalsvg/*/apps/ktalkd.*
|
||||
%{_datadir}/sounds/ktalkd.wav
|
||||
%config(noreplace) %{_sysconfdir}/xinetd.d/ktalk
|
||||
|
||||
# kpf
|
||||
%{_docdir}/HTML/en/kpf
|
||||
%{_libdir}/kde3/kpf*
|
||||
%{_datadir}/apps/kicker/applets/kpfapplet.desktop
|
||||
%{_datadir}/icons/crystalsvg/*/apps/kpf.*
|
||||
%{_datadir}/services/kpfpropertiesdialogplugin.desktop
|
||||
|
||||
%if "%{?_with_wifi:1}" == "1"
|
||||
# kwifimanager
|
||||
%doc %{_docdir}/HTML/en/kwifimanager
|
||||
%{_bindir}/kwifimanager
|
||||
%{_libdir}/kde3/kcm_wifi.*
|
||||
%{_datadir}/applications/kde/kcmwifi.desktop
|
||||
%{_datadir}/applications/kde/kwifimanager.desktop
|
||||
%{_datadir}/apps/kwifimanager
|
||||
%{_datadir}/icons/hicolor/*/apps/kwifimanager.png
|
||||
%endif
|
||||
|
||||
%if "%{?_with_xmms:1}" == "1"
|
||||
#files nowlistening
|
||||
#defattr(-,root,root,-)
|
||||
%{_datadir}/apps/kopete/*nowlisteningchatui*
|
||||
%{_datadir}/apps/kopete/*nowlisteningui*
|
||||
%{_datadir}/services/kconfiguredialog/*nowlistening*
|
||||
%{_datadir}/services/*nowlistening*
|
||||
%{_libdir}/kde3/*nowlistening*
|
||||
%endif
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING README
|
||||
|
||||
# ksirc
|
||||
%exclude %{_bindir}/ksirc
|
||||
%exclude %{_libdir}/libkdeinit_ksirc.*
|
||||
%exclude %{_libdir}/kde3/ksirc.*
|
||||
%exclude %{_datadir}/applications/kde/ksirc.desktop
|
||||
%exclude %{_datadir}/apps/ksirc/
|
||||
%exclude %{_datadir}/config/ksircrc
|
||||
%exclude %{_docdir}/HTML/??/ksirc/
|
||||
%exclude %{_datadir}/icons/hicolor/??x??/apps/ksirc.png
|
||||
|
||||
# kdict
|
||||
%exclude %{_docdir}/HTML/en/kdict
|
||||
%exclude %{_bindir}/kdict
|
||||
%exclude %{_libdir}/kde3/kdict*
|
||||
%exclude %{_libdir}/libkdeinit_kdict.*
|
||||
%exclude %{_datadir}/applications/kde/kdict.desktop
|
||||
%exclude %{_datadir}/apps/kdict
|
||||
%exclude %{_datadir}/apps/kicker/applets/kdictapplet.desktop
|
||||
%exclude %{_datadir}/icons/hicolor/128x128/apps/kdict.png
|
||||
%exclude %{_datadir}/icons/hicolor/??x??/apps/kdict.png
|
||||
%exclude %{_datadir}/icons/hicolor/scalable/apps/kdict.svgz
|
||||
|
||||
# ktalk
|
||||
%exclude %{_docdir}/HTML/en/ktalkd
|
||||
%exclude %{_sysconfdir}/xinetd.d/ktalk
|
||||
%exclude %{_bindir}/ktalkd*
|
||||
%exclude %{_libdir}/kde3/kcm_ktalkd.*
|
||||
%exclude %{_datadir}/applications/kde/kcmktalkd.desktop
|
||||
%exclude %{_datadir}/config/ktalkdrc
|
||||
%exclude %{_datadir}/icons/crystalsvg/128x128/apps/ktalkd.png
|
||||
%exclude %{_datadir}/icons/crystalsvg/??x??/apps/ktalkd.png
|
||||
%exclude %{_datadir}/sounds/ktalkd.wav
|
||||
|
||||
# kpf
|
||||
%exclude %{_libdir}/kde3/kpf*
|
||||
%exclude %{_datadir}/apps/kicker/applets/kpfapplet.desktop
|
||||
%exclude %{_docdir}/HTML/en/kpf
|
||||
%exclude %{_datadir}/icons/crystalsvg/??x??/apps/kpf.png
|
||||
%exclude %{_datadir}/services/kpfpropertiesdialogplugin.desktop
|
||||
|
||||
%ifnarch s390 s390x
|
||||
# kwifimanager
|
||||
%exclude %{_bindir}/kwifimanager
|
||||
%exclude %{_libdir}/kde3/kcm_wifi.*
|
||||
%exclude %{_datadir}/applications/kde/kcmwifi.desktop
|
||||
%exclude %{_datadir}/applications/kde/kwifimanager.desktop
|
||||
%exclude %{_datadir}/apps/kwifimanager
|
||||
%exclude %{_docdir}/HTML/en/kwifimanager
|
||||
%exclude %{_datadir}/icons/hicolor/128x128/apps/kwifimanager.png
|
||||
%exclude %{_datadir}/icons/hicolor/??x??/apps/kwifimanager.png
|
||||
%exclude %{_datadir}/icons/hicolor/scalable/apps/kwifimanager.svgz
|
||||
%endif
|
||||
|
||||
# nowlistening
|
||||
%if "%{?_with_xmms:1}" == "1"
|
||||
%exclude %{_datadir}/apps/kopete/*nowlisteningchatui*
|
||||
%exclude %{_datadir}/apps/kopete/*nowlisteningui*
|
||||
%exclude %{_datadir}/services/kconfiguredialog/*nowlistening*
|
||||
%exclude %{_datadir}/services/*nowlistening*
|
||||
%exclude %{_libdir}/kde3/*nowlistening*
|
||||
%endif
|
||||
|
||||
%{_docdir}/HTML/en/*
|
||||
%if %console_helper
|
||||
%config(noreplace) /etc/security/console.apps/kppp3
|
||||
%config(noreplace) /etc/pam.d/kppp3
|
||||
%{_sbindir}/kppp
|
||||
%else
|
||||
%attr(4755,root,root) %{_bindir}/kppp
|
||||
%endif
|
||||
%config(noreplace) %{_sysconfdir}/lisarc
|
||||
%config(noreplace) %{_initrddir}/lisa
|
||||
%{_libdir}/libkdeinit_*.so
|
||||
%if "%{?_with_wifi:1}" == "1"
|
||||
%{_libdir}/libkwireless.*
|
||||
%endif
|
||||
%{_libdir}/kde3/*
|
||||
%{_libdir}/kconf_update_bin/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/applications/kde/*
|
||||
%{_datadir}/applnk/.hidden/*
|
||||
%{_datadir}/config/*
|
||||
%{_datadir}/config.kcfg/*
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/mimelnk/*
|
||||
%{_datadir}/services/*
|
||||
%{_datadir}/servicetypes/*
|
||||
%{_datadir}/sounds/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libkopete*.so.*
|
||||
%{_libdir}/libkopete*.la
|
||||
%{_libdir}/librss.so.*
|
||||
%{_libdir}/librss.la
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/kde/*
|
||||
%{_libdir}/libkopete*.so
|
||||
%{_libdir}/librss.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-4
|
||||
- Import to GIT
|
||||
|
||||
* Tue Aug 23 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
|
||||
- Add correction for Fedora 15
|
||||
- Add patch7 for V4L compilation
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Fri Aug 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial version
|
||||
- Spec file based on Fedora 8 "kdenetwork 7:3.5.10-1"
|
||||
|
@ -0,0 +1,163 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 3
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Summary: K Desktop Environment - Toys and Amusements
|
||||
Name: trinity-kdetoys
|
||||
Group: Amusements/Graphics
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2+
|
||||
Source0: kdetoys-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Prefix: %{_prefix}
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: tqtinterface-devel >= %{version}
|
||||
BuildRequires: trinity-kdelibs-devel >= %{version}
|
||||
BuildRequires: gettext
|
||||
|
||||
#Requires(hint): kdebase3 >= %{version}
|
||||
|
||||
%description
|
||||
Includes:
|
||||
* amor: Amusing Misuse Of Resources put's comic figures above your windows
|
||||
* eyesapplet: a kicker applet similar to XEyes
|
||||
* fifteenapplet: kicker applet, order 15 pieces in a 4x4 square by moving them
|
||||
* kmoon: system tray applet showing the moon phase
|
||||
* kodo: mouse movement meter
|
||||
* kteatime: system tray applet that makes sure your tea doesn't get too strong
|
||||
* ktux: Tux-in-a-Spaceship screen saver
|
||||
* kweather: kicker applet that will display the current weather outside
|
||||
* kworldwatch: application and kicker applet showing daylight area on the world
|
||||
globe
|
||||
|
||||
NOTE: kicker applets and screen savers require kdebase to be installed,
|
||||
and user to be logged-in to KDE.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdetoys
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--includedir=%{_includedir}/kde \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-debug --disable-warnings \
|
||||
--disable-dependency-tracking --enable-final \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf "%{buildroot}"
|
||||
%make_install
|
||||
|
||||
desktop-file-install \
|
||||
--dir=%{buildroot}%{_datadir}/applnk/System/ScreenSavers \
|
||||
--vendor="" \
|
||||
%{buildroot}%{_datadir}/applnk/System/ScreenSavers/*.desktop ||:
|
||||
|
||||
desktop-file-install \
|
||||
--dir=%{buildroot}%{_datadir}/applications/kde \
|
||||
--vendor="" \
|
||||
%{buildroot}%{_datadir}/applications/kde/*.desktop ||:
|
||||
|
||||
# replace absolute symlink with relative
|
||||
ln -nfs tips-en %{buildroot}%{_datadir}/apps/amor/tips
|
||||
|
||||
## File lists
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
# HTML (1.0)
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
## Unpackaged files
|
||||
# not sure the point of just one header file 'AmorIface.h', omit (for now).
|
||||
%__rm -rf %{buildroot}%{_includedir}
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING README
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libkdeinit_*.*
|
||||
%{tde_libdir}/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/applnk/System/ScreenSavers/*.desktop
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/service*/*.desktop
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
|
||||
- Import to GIT
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Fri Aug 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial version
|
||||
- Spec file based on Fedora 8 "kdetoys 7:3.5.10-1"
|
||||
|
@ -0,0 +1,114 @@
|
||||
[AcpiDefault]
|
||||
EnableHibernate=true
|
||||
EnablePerformance=false
|
||||
EnableStandby=true
|
||||
EnableSuspend=true
|
||||
EnableThrottle=false
|
||||
|
||||
[BatteryCritical]
|
||||
Brightness=false
|
||||
BrightnessValue=255
|
||||
CriticalValPercent=3
|
||||
CriticalValTime=5
|
||||
Hibernate=false
|
||||
Logout=false
|
||||
Notify=true
|
||||
Performance=false
|
||||
PerformanceValue=
|
||||
PlaySound=false
|
||||
PlaySoundPath=
|
||||
RunCommand=false
|
||||
RunCommandPath=
|
||||
Shutdown=true
|
||||
Standby=false
|
||||
Suspend=false
|
||||
SystemBeep=true
|
||||
Throttle=false
|
||||
ThrottleValue=00%
|
||||
TimeBasedAction=true
|
||||
|
||||
[BatteryDefault]
|
||||
BlankSaver=false
|
||||
ChargePixmap=laptop_charge
|
||||
Enable=true
|
||||
NoBatteryPixmap=laptop_nobattery
|
||||
NoChargePixmap=laptop_nocharge
|
||||
NotifyMe=false
|
||||
Poll=20
|
||||
|
||||
[BatteryLow]
|
||||
Brightness=false
|
||||
BrightnessValue=255
|
||||
Hibernate=false
|
||||
Logout=false
|
||||
LowValPercent=7
|
||||
LowValTime=15
|
||||
Notify=true
|
||||
Performance=false
|
||||
PerformanceValue=
|
||||
PlaySound=false
|
||||
PlaySoundPath=
|
||||
RunCommand=false
|
||||
RunCommandPath=
|
||||
Shutdown=false
|
||||
Standby=false
|
||||
Suspend=false
|
||||
SystemBeep=true
|
||||
Throttle=false
|
||||
ThrottleValue=00%
|
||||
TimeBasedAction=true
|
||||
|
||||
[LaptopButtons]
|
||||
LidBrightness=0
|
||||
LidBrightnessEnabled=false
|
||||
LidPerformance=
|
||||
LidPerformanceEnabled=false
|
||||
LidSuspend=0
|
||||
LidThrottle=00%
|
||||
LidThrottleEnabled=false
|
||||
PowerBrightness=0
|
||||
PowerBrightnessEnabled=false
|
||||
PowerPerformance=
|
||||
PowerPerformanceEnabled=false
|
||||
PowerSuspend=0
|
||||
PowerThrottle=
|
||||
PowerThrottleEnabled=false
|
||||
|
||||
[LaptopPower]
|
||||
LavEnabled=false
|
||||
NoLavEnabled=false
|
||||
NoPowerBrightness=0
|
||||
NoPowerBrightnessEnabled=false
|
||||
NoPowerLav=0
|
||||
NoPowerPerformance=
|
||||
NoPowerPerformanceEnabled=false
|
||||
NoPowerSuspend=0
|
||||
NoPowerThrottle=00%
|
||||
NoPowerThrottleEnabled=false
|
||||
NoPowerWait=5
|
||||
PowerBrightness=255
|
||||
PowerBrightnessEnabled=false
|
||||
PowerLav=0
|
||||
PowerPerformance=
|
||||
PowerPerformanceEnabled=false
|
||||
PowerSuspend=0
|
||||
PowerThrottle=00%
|
||||
PowerThrottleEnabled=false
|
||||
PowerWait=20
|
||||
|
||||
[ProfileDefault]
|
||||
BrightnessOffLevel=160
|
||||
BrightnessOnLevel=255
|
||||
EnableBrightnessOff=0
|
||||
EnableBrightnessOn=0
|
||||
EnablePerformanceOff=0
|
||||
EnablePerformanceOn=0
|
||||
EnableThrottleOff=0
|
||||
EnableThrottleOn=0
|
||||
PerformanceOffLevel=
|
||||
PerformanceOnLevel=
|
||||
ThrottleOffLevel=00%
|
||||
ThrottleOnLevel=00%
|
||||
|
||||
[SoftwareSuspendDefault]
|
||||
EnableHibernate=false
|
@ -0,0 +1,13 @@
|
||||
--- kdeutils-3.0.3/kdf/disklist.cpp.label 2002-08-19 14:36:13.000000000 +0200
|
||||
+++ kdeutils-3.0.3/kdf/disklist.cpp 2002-08-19 14:37:34.000000000 +0200
|
||||
@@ -163,8 +163,9 @@
|
||||
while (! t.eof()) {
|
||||
s=t.readLine();
|
||||
s=s.simplifyWhiteSpace();
|
||||
- if ( (!s.isEmpty() ) && (s.find(DELIMITER)!=0) ) {
|
||||
+ if ( (!s.isEmpty() ) && (s.find(DELIMITER)!=0) && (s.find("LABEL")!=0) ) {
|
||||
// not empty or commented out by '#'
|
||||
+ // skip LABEL entries as long as kdf can't handle them properly
|
||||
// kdDebug() << "GOT: [" << s << "]" << endl;
|
||||
disk = new DiskEntry();// Q_CHECK_PTR(disk);
|
||||
disk->setMounted(FALSE);
|
@ -0,0 +1 @@
|
||||
FALLBACK=true
|
@ -0,0 +1,4 @@
|
||||
#%PAM-1.0
|
||||
auth sufficient pam_rootok.so
|
||||
auth required pam_console.so
|
||||
account required pam_permit.so
|
@ -0,0 +1,357 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 6
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdeutils
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
License: GPL
|
||||
Summary: TDE Utilities
|
||||
Group: Applications/System
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Prefix: %{_prefix}
|
||||
|
||||
Source0: kdeutils-%{version}.tar.gz
|
||||
Source1: klaptop_acpi_helper.pam
|
||||
Source2: klaptop_acpi_helper.console
|
||||
Source3: kcmlaptoprc
|
||||
|
||||
BuildRequires: tqtinterface
|
||||
BuildRequires: trinity-arts
|
||||
BuildRequires: trinity-kdelibs
|
||||
|
||||
# RedHat / Fedora legacy patches
|
||||
Patch1: kdf-3.0.2-label.patch
|
||||
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
|
||||
Requires: tqtinterface
|
||||
Requires: trinity-kdelibs
|
||||
|
||||
BuildRequires: gettext
|
||||
BuildRequires: net-snmp-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: gmp-devel
|
||||
%if 0%{?fedora} > 4 || 0%{?rhel} > 4
|
||||
BuildRequires: libXScrnSaver-devel libXtst-devel
|
||||
%endif
|
||||
BuildRequires: xmms-devel
|
||||
|
||||
%define superkaramba_ver 0.39
|
||||
Obsoletes: superkaramba < 0:%{superkaramba_ver}
|
||||
Provides: superkaramba = 0:%{superkaramba_ver}
|
||||
|
||||
%description
|
||||
Utilities for the Trinity Desktop Environment, including:
|
||||
* ark (tar/gzip archive manager)
|
||||
* kcalc (scientific calculator)
|
||||
* kcharselect (character selector)
|
||||
* kdepasswd (change password)
|
||||
* kdessh (ssh front end)
|
||||
* kdf (view disk usage)
|
||||
* kedit (simple text editor)
|
||||
* kfloppy (floppy formatting tool)
|
||||
* kgpg (gpg gui)
|
||||
* khexedit (hex editor)
|
||||
* kjots (note taker)
|
||||
* kregexpeditor (regular expression editor)
|
||||
* ktimer (task scheduler)
|
||||
* kwikdisk (removable media utility)
|
||||
|
||||
# afaik, nobody BR's it, and it pulls kdeutils into multilib -- Rex
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-extras = %{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
Development files for %{name}.
|
||||
|
||||
%package extras
|
||||
Summary: Extras packages from %{name}
|
||||
Group: Applications/Internet
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if 0%{?fedora} > 5 || 0%{?rhel} > 4
|
||||
Requires: pm-utils
|
||||
%endif
|
||||
Requires: usermode
|
||||
%description extras
|
||||
More Utilities for the K Desktop Environment:
|
||||
* kmilo
|
||||
* ksim (system information monitor);
|
||||
* klaptopdaemon (battery monitoring and management for laptops);
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeutils
|
||||
|
||||
%patch1 -p1 -b .label
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f admin/Makefile.common
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; source /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--disable-debug --disable-warnings \
|
||||
--enable-final \
|
||||
--includedir=%{tde_includedir} \
|
||||
--with-snmp \
|
||||
--with-xscreensaver \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{?buildroot}
|
||||
%make_install
|
||||
|
||||
# Show only in KDE (really? -- Rex)
|
||||
for i in kcalc kregexpeditor Kjots ktimer kdf kcmdf ksim KFloppy KEdit \
|
||||
KCharSelect ark kwalletmanager kwalletconfig \
|
||||
irkick kcmlirc laptop pcmcia kvaio thinkpad kwikdisk; do
|
||||
if [ -f %{buildroot}%{_datadir}/applications/kde/$i.desktop ] ; then
|
||||
echo "OnlyShowIn=KDE;" >> %{buildroot}%{_datadir}/applications/kde/$i.desktop
|
||||
fi
|
||||
done
|
||||
|
||||
## File lists
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
# HTML (1.0)
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
pushd $lang_dir/kcontrol
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# using pam
|
||||
install -p -D -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/pam.d/klaptop_acpi_helper
|
||||
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/console.apps/klaptop_acpi_helper
|
||||
|
||||
pushd %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mv klaptop_acpi_helper ../sbin
|
||||
ln -s consolehelper klaptop_acpi_helper
|
||||
popd
|
||||
|
||||
# klaptop setting
|
||||
install -p -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/config/kcmlaptoprc
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{?buildroot}
|
||||
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post extras
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
|
||||
%postun extras
|
||||
/sbin/ldconfig
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
|
||||
|
||||
%files extras
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# kmilo
|
||||
%{tde_libdir}/kded_kmilod.*
|
||||
%{tde_libdir}/kmilo*
|
||||
%{_libdir}/libkmilo.la
|
||||
%{_libdir}/libkmilo.so.*
|
||||
%{_datadir}/services/kded/kmilod.desktop
|
||||
%{_datadir}/services/kmilo
|
||||
%{_datadir}/servicetypes/kmilo
|
||||
|
||||
# ksim
|
||||
%{tde_docdir}/HTML/*/ksim/
|
||||
%{tde_libdir}/ksim*
|
||||
%{_libdir}/libksimcore.la
|
||||
%{_libdir}/libksimcore.so.*
|
||||
%{_datadir}/apps/kicker/extensions/ksim.desktop
|
||||
%{_datadir}/apps/ksim/
|
||||
%config %{_datadir}/config/ksim_panelextensionrc
|
||||
%{_datadir}/icons/crystalsvg/??x??/apps/ksim.png
|
||||
%{_datadir}/icons/crystalsvg/16x16/devices/ksim_cpu.png
|
||||
|
||||
# klaptop
|
||||
%{tde_docdir}/HTML/en/kcontrol
|
||||
%{_sysconfdir}/pam.d/klaptop_acpi_helper
|
||||
%attr(644,root,root) %{_sysconfdir}/security/console.apps/klaptop_acpi_helper
|
||||
%{_bindir}/klaptop*
|
||||
%{tde_libdir}/kded_klaptopdaemon.*
|
||||
%{_sbindir}/klaptop_acpi_helper
|
||||
%{_datadir}/apps/klaptopdaemon
|
||||
%{_datadir}/services/kded/klaptopdaemon.desktop
|
||||
%{tde_libdir}/kcm_laptop.*
|
||||
%{_libdir}/libkcmlaptop.*
|
||||
%{_datadir}/applications/kde/laptop.desktop
|
||||
%config %{_datadir}/config/kcmlaptoprc
|
||||
%{_datadir}/icons/crystalsvg/128x128/apps/laptop_battery.png
|
||||
%{_datadir}/icons/crystalsvg/??x??/apps/laptop_battery.png
|
||||
%{_datadir}/icons/crystalsvg/scalable/apps/laptop_battery.svgz
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
# kmilo
|
||||
%exclude %{tde_libdir}/kded_kmilod.*
|
||||
%exclude %{tde_libdir}/kmilo*
|
||||
%exclude %{_libdir}/libkmilo.la
|
||||
%exclude %{_libdir}/libkmilo.so.*
|
||||
%exclude %{_datadir}/services/kded/kmilod.desktop
|
||||
%exclude %{_datadir}/services/kmilo
|
||||
%exclude %{_datadir}/servicetypes/kmilo
|
||||
|
||||
# ksim
|
||||
%exclude %{tde_docdir}/HTML/*/ksim/
|
||||
%exclude %{tde_libdir}/ksim*
|
||||
%exclude %{_libdir}/libksimcore.la
|
||||
%exclude %{_libdir}/libksimcore.so.*
|
||||
%exclude %{_datadir}/apps/kicker/extensions/ksim.desktop
|
||||
%exclude %{_datadir}/apps/ksim/
|
||||
%exclude %{_datadir}/config/ksim_panelextensionrc
|
||||
%exclude %{_datadir}/icons/crystalsvg/??x??/apps/ksim.png
|
||||
%exclude %{_datadir}/icons/crystalsvg/16x16/devices/ksim_cpu.png
|
||||
|
||||
# klaptop
|
||||
%exclude %{_sysconfdir}/pam.d/klaptop_acpi_helper
|
||||
%exclude %{_sysconfdir}/security/console.apps/klaptop_acpi_helper
|
||||
%exclude %{_bindir}/klaptop*
|
||||
%exclude %{tde_libdir}/kded_klaptopdaemon.*
|
||||
%exclude %{_sbindir}/klaptop_acpi_helper
|
||||
%exclude %{_datadir}/apps/klaptopdaemon
|
||||
%exclude %{_datadir}/services/kded/klaptopdaemon.desktop
|
||||
%exclude %{tde_libdir}/kcm_laptop.*
|
||||
%exclude %{_libdir}/libkcmlaptop.*
|
||||
%exclude %{_datadir}/applications/kde/laptop.desktop
|
||||
%exclude %{_datadir}/config/kcmlaptoprc
|
||||
%exclude %{tde_docdir}/HTML/en/kcontrol/
|
||||
%exclude %{_datadir}/icons/crystalsvg/128x128/apps/laptop_battery.png
|
||||
%exclude %{_datadir}/icons/crystalsvg/??x??/apps/laptop_battery.png
|
||||
%exclude %{_datadir}/icons/crystalsvg/scalable/apps/laptop_battery.svgz
|
||||
|
||||
%{tde_docdir}/HTML/en/*
|
||||
%attr(644,root,root) %{_sysconfdir}/security/console.apps/*
|
||||
%attr(644,root,root) %{_sysconfdir}/pam.d/*
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/libkdeinit*.so
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_datadir}/icons/*/*/*/*
|
||||
%{_datadir}/apps/*
|
||||
%config %{_datadir}/config/*
|
||||
%{_datadir}/config.kcfg/*
|
||||
%{_datadir}/services/*
|
||||
%{_datadir}/servicetypes/*
|
||||
%{_datadir}/applications/kde/*
|
||||
%if 0%{?rhel} > 6
|
||||
%{_datadir}/applnk/Utilities/*
|
||||
%{_datadir}/mimelnk/application/*
|
||||
%endif
|
||||
%{_datadir}/autostart/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/libkcmlaptop.so
|
||||
%{_libdir}/libkhexeditcommon.so
|
||||
%{_libdir}/libkmilo.so
|
||||
%{_libdir}/libkregexpeditorcommon.so
|
||||
%{_libdir}/libksimcore.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-6
|
||||
- Merge Spec file from Fedora8 "kdeutils-3.5.10-6"
|
||||
|
||||
* Sun Sep 04 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-5
|
||||
- Import to GIT
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-4
|
||||
- Correct (again) macro to install under "/opt", if desired
|
||||
|
||||
* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
|
||||
- Correct macro to install under "/opt", if desired
|
||||
|
||||
* Sun Dec 19 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Rebuilt
|
||||
|
||||
* Fri Dec 17 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Add macro _kde3_prefix to define custom installation prefix (ex: /opt/kde3)
|
||||
- Add '--with-extra-includes=%{_includedir}/tqt'
|
||||
|
||||
* Wed Dec 15 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-0
|
||||
- Initial version
|
||||
|
@ -0,0 +1,118 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.13
|
||||
%endif
|
||||
%define release 0
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.13 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_libdir %{_libdir}/trinity
|
||||
|
||||
|
||||
Name: trinity-kdeutils
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
License: GPL
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
Summary: Trinity KDE Utilities
|
||||
Prefix: %{_prefix}
|
||||
|
||||
Source0: kdeutils-%{version}.tar.gz
|
||||
|
||||
BuildRequires: tqtinterface
|
||||
BuildRequires: trinity-arts
|
||||
BuildRequires: trinity-kdelibs
|
||||
|
||||
Requires: tqtinterface
|
||||
Requires: trinity-kdelibs
|
||||
|
||||
%description
|
||||
Trinity KDE Utilities.
|
||||
|
||||
|
||||
%package devel
|
||||
Requires: %{name}
|
||||
Summary: %{name} - Development files
|
||||
%description devel
|
||||
Development files for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdeutils
|
||||
|
||||
# Ugly hack to modify TQT include directory inside autoconf files.
|
||||
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
|
||||
sed -i admin/acinclude.m4.in \
|
||||
-e "s,/usr/include/tqt,%{_includedir}/tqt,g"
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f admin/Makefile.common
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; source /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
export LDFLAGS="${LDFLAGS} -lqt-mt -lkdeui -L${QTLIB}"
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-debug --disable-warnings --enable-final \
|
||||
--with-xinerama \
|
||||
--with-extra-includes=%{_includedir}/tqt \
|
||||
--with-extra-libs=%{tde_libdir} \
|
||||
--enable-closure
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%__rm -rf %{?buildroot}
|
||||
%__mkdir_p %{?buildroot}
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%make_install
|
||||
|
||||
%clean
|
||||
%__rm -rf %{?buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/autostart/*.desktop
|
||||
%{_datadir}/config/*
|
||||
%{_datadir}/icons/*
|
||||
%{_datadir}/services/*
|
||||
%{_datadir}/config.kcfg/*
|
||||
%{_datadir}/servicetypes/kmilo/kmilopluginsvc.desktop
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/libkdeinit*.so
|
||||
%{tde_libdir}/*.so
|
||||
%{tde_docdir}/HTML/en/*
|
||||
|
||||
%if 0%{?rhel} >= 4
|
||||
%{_datadir}/applnk/*/*
|
||||
%{_datadir}/mimelnk/application/*
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_includedir}/*
|
||||
%{tde_libdir}/*.la
|
||||
|
||||
%changelog
|
||||
* Mon Sep 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
|
||||
- Import to GIT
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- c_cpp_reference-2.0.2_for_KDE_3.0/configure.orig Mon Dec 9 18:35:50 2002
|
||||
+++ c_cpp_reference-2.0.2_for_KDE_3.0/configure Mon Dec 9 18:41:16 2002
|
||||
@@ -5868,7 +5868,7 @@
|
||||
So, check this please and use another prefix!" 1>&2; exit 1; }
|
||||
fi
|
||||
|
||||
-kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde2/lib /opt/kde/lib /usr/X11R6/kde/lib"
|
||||
+kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib64 /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde2/lib /opt/kde/lib /usr/X11R6/kde/lib"
|
||||
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"
|
||||
kde_libdirs="$ac_kde_libraries $kde_libdirs"
|
||||
|
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
--- kdevelop-2.1.5_for_KDE_3.1/configure.doc 2003-10-21 15:08:22.000000000 +0200
|
||||
+++ kdevelop-2.1.5_for_KDE_3.1/configure 2003-10-21 15:14:18.000000000 +0200
|
||||
@@ -23794,14 +23794,14 @@
|
||||
|
||||
kdelibs_docdirs="/usr/doc/kdelibs-doc/html"
|
||||
if test "$ac_kde_htmldir" != ""; then
|
||||
- kdelibs_docdirs="$kdelibs_docdirs $ac_kde_htmldir/default/kdelibs $ac_kde_htmldir/en/kdelibs"
|
||||
+ kdelibs_docdirs="$kdelibs_docdirs $ac_kde_htmldir/default/kdelibs $ac_kde_htmldir/en/kdelibs $ac_kde_htmldir/en/kdelibs-apidocs"
|
||||
fi
|
||||
kdelibs_docdirs="$ac_kdelibs_docdirs $kdelibs_docdirs"
|
||||
|
||||
kdelibs_docdir=NO
|
||||
for i in $kdelibs_docdirs;
|
||||
do
|
||||
- for j in kdecore/index.html;
|
||||
+ for j in index.html;
|
||||
do
|
||||
echo "configure: 23806: $i/$j" >&5
|
||||
if test -r "$i/$j"; then
|
@ -0,0 +1,144 @@
|
||||
diff -ur kdevelop-3.5.2/languages/cpp/app_templates/kde4app/kde4app.kdevelop kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/kde4app.kdevelop
|
||||
--- kdevelop-3.5.2/languages/cpp/app_templates/kde4app/kde4app.kdevelop 2007-09-26 11:42:09.000000000 +0200
|
||||
+++ kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/kde4app.kdevelop 2008-06-07 01:10:11.000000000 +0200
|
||||
@@ -113,18 +113,11 @@
|
||||
</cppsupportpart>
|
||||
<kdevcustomproject>
|
||||
<run>
|
||||
- <mainprogram>%{dest}/build/%{APPNAMELC}</mainprogram>
|
||||
+ <mainprogram>%{dest}/%{APPNAMELC}</mainprogram>
|
||||
<programargs/>
|
||||
<terminal>false</terminal>
|
||||
- <autocompile>false</autocompile>
|
||||
- <envvars>
|
||||
- <envvar value="" name="KDEDIRS" />
|
||||
- <envvar value="" name="KDEHOME" />
|
||||
- <envvar value="" name="LD_LIBRARY_PATH" />
|
||||
- <envvar value="" name="PATH" />
|
||||
- <envvar value="" name="PKG_CONFIG_PATH" />
|
||||
- <envvar value="" name="QT_PLUGIN_PATH" />
|
||||
- </envvars>
|
||||
+ <autocompile>true</autocompile>
|
||||
+ <envvars/>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<globaldebugarguments/>
|
||||
@@ -134,7 +127,7 @@
|
||||
</run>
|
||||
<build>
|
||||
<buildtool>make</buildtool>
|
||||
- <builddir>%{dest}/build</builddir>
|
||||
+ <builddir>%{dest}</builddir>
|
||||
</build>
|
||||
<make>
|
||||
<abortonerror>false</abortonerror>
|
||||
@@ -146,14 +139,7 @@
|
||||
<makeoptions/>
|
||||
<selectedenvironment>default</selectedenvironment>
|
||||
<environments>
|
||||
- <default>
|
||||
- <envvar value="" name="KDEDIRS" />
|
||||
- <envvar value="" name="KDEHOME" />
|
||||
- <envvar value="" name="LD_LIBRARY_PATH" />
|
||||
- <envvar value="" name="PATH" />
|
||||
- <envvar value="" name="PKG_CONFIG_PATH" />
|
||||
- <envvar value="" name="QT_PLUGIN_PATH" />
|
||||
- </default>
|
||||
+ <default/>
|
||||
</environments>
|
||||
</make>
|
||||
<filetypes>
|
||||
@@ -179,7 +165,10 @@
|
||||
</environments>
|
||||
</other>
|
||||
<blacklist>
|
||||
- <path>build</path>
|
||||
+ <path>CMakeFiles</path>
|
||||
+ <path>CMakeTmp</path>
|
||||
+ <path>cmake_install.cmake</path>
|
||||
+ <path>cmake_uninstall.cmake</path>
|
||||
</blacklist>
|
||||
</kdevcustomproject>
|
||||
<kdevcppsupport>
|
||||
@@ -189,7 +178,6 @@
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<designer>/usr/bin/designer-qt4</designer>
|
||||
- <root>/usr/lib/qt4</root>
|
||||
</qt>
|
||||
</kdevcppsupport>
|
||||
<kdevclassview>
|
||||
diff -ur kdevelop-3.5.2/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate
|
||||
--- kdevelop-3.5.2/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate 2008-02-11 12:22:37.000000000 +0100
|
||||
+++ kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate 2008-06-07 01:08:10.000000000 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
Comment[sv]=Skapar ett enkelt KDE 4-program med ett toppnivåfönster, menyer och verktygsrader.
|
||||
Comment[zh_TW]=產生一個簡單的 KDE4 應用程式,內含頂層視窗、選單與工具列。
|
||||
FileTemplates=h,CStyle,cpp,CStyle
|
||||
-ShowFilesAfterGeneration=%{dest}/README
|
||||
+ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.cpp
|
||||
Archive=kde4app.tar.gz
|
||||
|
||||
[FILE1]
|
||||
@@ -112,24 +112,22 @@
|
||||
Source=%{src}/settings.kcfgc
|
||||
Dest=%{dest}/settings.kcfgc
|
||||
|
||||
-[FILE13]
|
||||
-Type=install
|
||||
-Source=%{src}/README
|
||||
-Dest=%{dest}/README
|
||||
|
||||
-[FILE14]
|
||||
+[FILE13]
|
||||
Type=install
|
||||
Source=%{src}/kde4app.kdevelop
|
||||
Dest=%{dest}/%{APPNAMELC}.kdevelop
|
||||
|
||||
-[FILE15]
|
||||
+[FILE14]
|
||||
Type=install
|
||||
Source=%{src}/kde4app.kdevelop.filelist
|
||||
Dest=%{dest}/%{APPNAMELC}.kdevelop.filelist
|
||||
|
||||
-[MKDIR1]
|
||||
-Type=mkdir
|
||||
-Dir=%{dest}/build
|
||||
+[CMAKE]
|
||||
+Type=finishcmd
|
||||
+Command=cmake ./ -GKDevelop3
|
||||
+Directory=%{dest}
|
||||
+
|
||||
|
||||
[MSG]
|
||||
Type=message
|
||||
diff -ur kdevelop-3.5.2/languages/cpp/app_templates/kde4app/Makefile.am kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/Makefile.am
|
||||
--- kdevelop-3.5.2/languages/cpp/app_templates/kde4app/Makefile.am 2007-09-26 11:42:09.000000000 +0200
|
||||
+++ kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/Makefile.am 2008-06-07 00:37:23.000000000 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
dataFiles = kapp4.cpp kapp4.h prefs_base.ui kapp4view.cpp kapp4view.h kapp4view_base.ui \
|
||||
main.cpp kde4appui.rc CMakeLists.txt kapp4.desktop kapp4.kcfg settings.kcfgc \
|
||||
- kde4app.png README kde4app.kdevelop kde4app.kdevelop.filelist
|
||||
+ kde4app.png kde4app.kdevelop kde4app.kdevelop.filelist
|
||||
|
||||
templateName = kde4app
|
||||
|
||||
diff -ur kdevelop-3.5.2/languages/cpp/app_templates/kde4app/Makefile.in kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/Makefile.in
|
||||
--- kdevelop-3.5.2/languages/cpp/app_templates/kde4app/Makefile.in 2008-05-13 16:23:40.000000000 +0200
|
||||
+++ kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kde4app/Makefile.in 2008-06-07 00:37:30.000000000 +0200
|
||||
@@ -373,7 +373,7 @@
|
||||
xdg_menudir = @xdg_menudir@
|
||||
dataFiles = kapp4.cpp kapp4.h prefs_base.ui kapp4view.cpp kapp4view.h kapp4view_base.ui \
|
||||
main.cpp kde4appui.rc CMakeLists.txt kapp4.desktop kapp4.kcfg settings.kcfgc \
|
||||
- kde4app.png README kde4app.kdevelop kde4app.kdevelop.filelist
|
||||
+ kde4app.png kde4app.kdevelop kde4app.kdevelop.filelist
|
||||
|
||||
templateName = kde4app
|
||||
|
||||
diff -ur kdevelop-3.5.2/languages/cpp/app_templates/kdecpp.appwizard kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kdecpp.appwizard
|
||||
--- kdevelop-3.5.2/languages/cpp/app_templates/kdecpp.appwizard 2007-04-10 01:44:25.000000000 +0200
|
||||
+++ kdevelop-3.5.2-kde4template/languages/cpp/app_templates/kdecpp.appwizard 2008-06-06 23:52:16.000000000 +0200
|
||||
@@ -1,2 +1,2 @@
|
||||
[General]
|
||||
-List=kdedcop,kioslave,kxt,kdevlang,kmake,kapp,kconfig35,kdevlang,kdevpart,kateplugin,kdevpart2,kopart,noatunui,kateplugin2,kfileplugin,konqnavpanel,noatunvisual,dcopservice,khello,kpartapp,khello2,kpartplugin,kcmodule,kicker,kscreensaver,kscons_kxt,kscons_kmdi
|
||||
+List=kde4app,kdedcop,kioslave,kxt,kdevlang,kmake,kapp,kconfig35,kdevlang,kdevpart,kateplugin,kdevpart2,kopart,noatunui,kateplugin2,kfileplugin,konqnavpanel,noatunvisual,dcopservice,khello,kpartapp,khello2,kpartplugin,kcmodule,kicker,kscreensaver,kscons_kxt,kscons_kmdi
|
@ -0,0 +1,237 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 1
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
%define _default_patch_fuzz 2
|
||||
%define qt_version 3.3.8b
|
||||
%define qt_ver %{qt_version}
|
||||
|
||||
Name: trinity-kdevelop
|
||||
Summary: Integrated Development Environment for C++/C
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
|
||||
License: GPLv2
|
||||
Group: Development/Tools
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Prefix: %{_prefix}
|
||||
|
||||
Source: kdevelop-%{version}.tar.gz
|
||||
Source1: ftp://129.187.206.68/pub/unix/ide/KDevelop/c_cpp_reference-2.0.2_for_KDE_3.0.tar.bz2
|
||||
|
||||
# RedHat Legacy patches
|
||||
Patch1: c_cpp_reference-2.0.2-config.patch
|
||||
#Patch2: kdevelop-2.1.5_for_KDE_3.1-doc.patch
|
||||
# improved integration for the KDE 4 template - no special KDE 4 build environment needed in Fedora
|
||||
Patch4: kdevelop-3.5.2-kde4template.patch
|
||||
|
||||
#upstream patches
|
||||
|
||||
Provides: kdevelop3 = %{version}-%{release}
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
|
||||
Requires: trinity-kdelibs-devel
|
||||
Requires: make
|
||||
Requires: perl
|
||||
Requires: flex >= 2.5.4
|
||||
Requires: qt3-designer
|
||||
Requires: gettext
|
||||
Requires: ctags
|
||||
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
BuildRequires: trinity-kdelibs-apidocs
|
||||
BuildRequires: qt3-devel-docs
|
||||
BuildRequires: db4-devel
|
||||
BuildRequires: flex
|
||||
# FIXME: No CVS support in KDevelop? This is going to suck...
|
||||
# Requires kdesdk3.
|
||||
BuildRequires: trinity-kdesdk-devel
|
||||
BuildRequires: subversion-devel neon-devel
|
||||
# looks like this is dragged in by apr-devel (dep of subversion-devel), but not
|
||||
# a dependency
|
||||
BuildRequires: openldap-devel
|
||||
|
||||
%description
|
||||
The KDevelop Integrated Development Environment provides many features
|
||||
that developers need as well as providing a unified interface to programs
|
||||
like gdb, the C/C++ compiler, and make. KDevelop manages or provides:
|
||||
|
||||
All development tools needed for C++ programming like Compiler,
|
||||
Linker, automake and autoconf; KAppWizard, which generates complete,
|
||||
ready-to-go sample applications; Classgenerator, for creating new
|
||||
classes and integrating them into the current project; File management
|
||||
for sources, headers, documentation etc. to be included in the
|
||||
project; The creation of User-Handbooks written with SGML and the
|
||||
automatic generation of HTML-output with the KDE look and feel;
|
||||
Automatic HTML-based API-documentation for your project's classes with
|
||||
cross-references to the used libraries; Internationalization support
|
||||
for your application, allowing translators to easily add their target
|
||||
language to a project;
|
||||
|
||||
KDevelop also includes WYSIWYG (What you see is what you get)-creation
|
||||
of user interfaces with a built-in dialog editor; Debugging your
|
||||
application by integrating KDbg; Editing of project-specific pixmaps
|
||||
with KIconEdit; The inclusion of any other program you need for
|
||||
development by adding it to the "Tools"-menu according to your
|
||||
individual needs.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Provides: kdevelop3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs
|
||||
# helps multilib upgrades
|
||||
Obsoletes: %{name} < %{version}-%{release}
|
||||
# include to be paranoid, installing libs-only is still mostly untested -- Rex
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdevelop -a1
|
||||
%patch1 -p0 -b .config
|
||||
#patch2 -p1 -b .doc
|
||||
#patch4 -p1 -b .kde4template
|
||||
|
||||
%__rm -rf c_cpp_reference-2.0.2_for_KDE_3.0/admin
|
||||
%__cp -a admin c_cpp_reference-2.0.2_for_KDE_3.0/
|
||||
%__make -C c_cpp_reference-2.0.2_for_KDE_3.0 -f admin/Makefile.common cvs
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
QTDIR="" && source /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
# Fix KDE detection fail in "./configure" because tqt.h cannot be found
|
||||
export CXXFLAGS="${CXXFLAGS} -I%{_includedir}/tqt"
|
||||
|
||||
# c references
|
||||
pushd c_cpp_reference-2.0.2_for_KDE_3.0
|
||||
%configure \
|
||||
--with-qt-libraries=$QTDIR/lib \
|
||||
--with-qt-includes=$QTDIR/include \
|
||||
--with-extra-libs=%{_libdir} \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
popd
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--enable-final \
|
||||
--with-qtdoc-dir=%{_docdir}/qt-devel-%{qt_ver}/html/ \
|
||||
--with-kdelibsdoc-dir=%{tde_docdir}/HTML/en/kdelibs-apidocs/ \
|
||||
--with-extra-libs=%{_libdir} \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
|
||||
# parallel make disabled because otherwise main.cpp can get built before
|
||||
# profileeditorbase.h is fully generated
|
||||
%__make
|
||||
%__make %{?_smp_mflags} -C c_cpp_reference-2.0.2_for_KDE_3.0
|
||||
|
||||
|
||||
%install
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
%make_install
|
||||
%make_install -C c_cpp_reference-2.0.2_for_KDE_3.0
|
||||
|
||||
# remove useless files
|
||||
%__rm -rf %{buildroot}%{_prefix}/kdevbdb
|
||||
|
||||
|
||||
%post
|
||||
for f in hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
for f in hicolor locolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{tde_docdir}/HTML/en/*
|
||||
%{_bindir}/*
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/kconf_update_bin/*
|
||||
%{_datadir}/applications/kde/*
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/config/*
|
||||
%{_datadir}/desktop-directories/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/icons/locolor/*/*/*
|
||||
%{_datadir}/mimelnk/application/*
|
||||
%{_datadir}/mimelnk/text/*
|
||||
%{_datadir}/services/*
|
||||
%{_datadir}/servicetypes/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so
|
||||
%{_includedir}/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial build for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdeedu-3.5.3-1"
|
||||
- Import to GIT
|
Loading…
Reference in New Issue