RPM Packaging: update R14 packages

pull/3/head
François Andriot 10 years ago
parent 566a43b9c0
commit eed96d448d

@ -21,20 +21,27 @@ LOGFILE=/tmp/log.${COMP##*/}
TEMPDIR="$(mktemp -d)" TEMPDIR="$(mktemp -d)"
cp -f ${SPECFILE} ${SOURCES} ${TARBALL} "${TEMPDIR}" cp -f ${SPECFILE} ${SOURCES} ${TARBALL} "${TEMPDIR}"
# Check if there are patches # Check if there are local patches
PATCHDIR="${SPECFILE%/*}/patches/${TDE_VERSION}" PATCHDIR="${SPECFILE%/*}/patches/${TDE_VERSION}"
PATCHLIST="${PATCHDIR}/patches" PATCHLIST="${PATCHDIR}/patches"
if [ -r "${PATCHLIST}" ]; then if [ -r "${PATCHLIST}" ]; then
while read l; do while read l; do
APPLY=""
case "${l}" in case "${l}" in
""|"#"*);; ""|"#"*);;
*) "*opensuse*") [ -r /etc/SuSE-release ] && APPLY=1;;
*) APPLY=1;;
esac
if [ "${APPLY}" ]; then
if [ -r "${PATCHDIR}/${l}" ]; then if [ -r "${PATCHDIR}/${l}" ]; then
echo "Applying patch '${l}'..." echo "Applying patch '${l}'..."
cat "${PATCHDIR}/${l}" >>"${TEMPDIR}/one.patch" cat "${PATCHDIR}/${l}" >>"${TEMPDIR}/one.patch"
else
echo "ERROR: invalid patch '${l}' !!"
exit 3
fi
fi fi
;;
esac
done < "${PATCHLIST}" done < "${PATCHLIST}"
fi fi
@ -62,9 +69,12 @@ rpmbuild -ba \
--define "tde_version ${TDE_VERSION}" \ --define "tde_version ${TDE_VERSION}" \
--define "tde_prefix /opt/trinity" \ --define "tde_prefix /opt/trinity" \
--define "preversion ${PREVERSION:-}" \ --define "preversion ${PREVERSION:-}" \
--define "with_akode 1" \
--define "with_jack 1" \ --define "with_jack 1" \
--define "with_lame 1" \
--define "with_mad 1" \
--define "with_mpeg 1" \
--define "with_xscreensaver 1" \ --define "with_xscreensaver 1" \
${ARGS} \
"${TEMPDIR}/${SPECFILE##*/}" "${TEMPDIR}/${SPECFILE##*/}"
RET=$? RET=$?

@ -113,7 +113,7 @@ Provides: tdebase = %{version}-%{release}
PreReq: permissions PreReq: permissions
%endif %endif
%if 0%{?opensuse_bs} %if 0%{?opensuse_bs} && %{?suse_version}
# for xdg-menu script # for xdg-menu script
BuildRequires: brp-check-trinity BuildRequires: brp-check-trinity
%endif %endif
@ -1336,7 +1336,7 @@ TDE applications, particularly those in the TDE base module.
%endif %endif
# SUSE's runupdater utility # SUSE's runupdater utility
%if 0%{?suse_version} && 0%{?opensuse_bs} == 0 %if 0%{?opensuse_bs} == 0
%{tde_bindir}/runupdater %{tde_bindir}/runupdater
%{tde_libdir}/libtdeinit_runupdater.la %{tde_libdir}/libtdeinit_runupdater.la
%{tde_libdir}/libtdeinit_runupdater.so %{tde_libdir}/libtdeinit_runupdater.so

@ -95,7 +95,7 @@ BuildRequires: fdupes
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
%endif %endif
%if 0%{?opensuse_bs} %if 0%{?opensuse_bs} && %{?suse_version}
# for xdg-menu script # for xdg-menu script
BuildRequires: brp-check-trinity BuildRequires: brp-check-trinity
%endif %endif

@ -84,7 +84,7 @@ BuildRequires: fdupes
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
%endif %endif
%if 0%{?opensuse_bs} %if 0%{?opensuse_bs} && %{?suse_version}
# for xdg-menu script # for xdg-menu script
BuildRequires: brp-check-trinity BuildRequires: brp-check-trinity
%endif %endif

@ -432,11 +432,11 @@ This package is part of TDE, as a component of the TDE web development module.
%{tde_tdedocdir}/HTML/en/xsldbg/ %{tde_tdedocdir}/HTML/en/xsldbg/
%{tde_datadir}/icons/hicolor/*/actions/1downarrow.png %{tde_datadir}/icons/hicolor/*/actions/1downarrow.png
%{tde_datadir}/icons/hicolor/*/actions/configure.png %{tde_datadir}/icons/hicolor/*/actions/configure.png
#%{tde_datadir}/icons/hicolor/*/actions/system-log-out.png %{tde_datadir}/icons/hicolor/*/actions/system/log-out.png
%{tde_datadir}/icons/hicolor/*/actions/system/run.png
%{tde_datadir}/icons/hicolor/*/actions/hash.png %{tde_datadir}/icons/hicolor/*/actions/hash.png
%{tde_datadir}/icons/hicolor/*/actions/mark.png %{tde_datadir}/icons/hicolor/*/actions/mark.png
%{tde_datadir}/icons/hicolor/*/actions/next.png %{tde_datadir}/icons/hicolor/*/actions/next.png
#%{tde_datadir}/icons/hicolor/*/actions/system-run.png
%{tde_datadir}/icons/hicolor/*/actions/step.png %{tde_datadir}/icons/hicolor/*/actions/step.png
%{tde_datadir}/icons/hicolor/*/actions/xsldbg_*.png %{tde_datadir}/icons/hicolor/*/actions/xsldbg_*.png
%{tde_datadir}/icons/hicolor/*/apps/kxsldbg.png %{tde_datadir}/icons/hicolor/*/apps/kxsldbg.png

Loading…
Cancel
Save