diff options
Diffstat (limited to 'redhat/applications/k9copy/trinity-k9copy.spec')
-rw-r--r-- | redhat/applications/k9copy/trinity-k9copy.spec | 120 |
1 files changed, 84 insertions, 36 deletions
diff --git a/redhat/applications/k9copy/trinity-k9copy.spec b/redhat/applications/k9copy/trinity-k9copy.spec index d56c14c08..ad0f6f317 100644 --- a/redhat/applications/k9copy/trinity-k9copy.spec +++ b/redhat/applications/k9copy/trinity-k9copy.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp k9copy -%define version 1.2.3 -%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" +%if "%{?tde_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}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/trinity +# TDE 3.5.13 specific building variables +%define tde_bindir %{tde_prefix}/bin +%define tde_datadir %{tde_prefix}/share +%define tde_docdir %{tde_datadir}/doc +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} +%define tde_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: DVD backup tool for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.2.3 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,18 +35,35 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz -Patch0: k9copy-3.5.13-ftbfs.patch + +# [k9copy] Missing LDFLAGS cause FTBFS +Patch0: k9copy-3.5.13-missing_ldflags.patch +# [k9copy] Fix 'format not a string literal' error. Clean up warning. [Commit #3bfc84b0] +Patch1: k9copy-3.5.13-fix_format_not_string_literal.patch +# [k9copy] Fix FTBFS [Commit #62acebb7] +Patch2: k9copy-3.5.13-fix_ftbfs.patch +# [k9copy] Fix 'format not a string literal' error [Commit #d9ed8b32] +Patch3: k9copy-3.5.13-fix_format_not_string_literal_2.patch +# [k9copy] Fix remaining string format errors [Commit #a8e98ad9] +Patch4: k9copy-3.5.13-fix_remaining_string_format_errors.patch +# [k9copy] Fix another string format error [Commit #b3bb8a8f] +Patch5: k9copy-3.5.13-fix_another_string_format_error.patch +# [k9copy] Fix FTBFS [Commit #ca864ede] +Patch6: k9copy-3.5.13-fix_ftbfs_2.patch +# [k9copy] Fix format string error [Commit #a016df82] +Patch7: k9copy-3.5.13-fix_format_string_error.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils -BuildRequires: ffmpeg-devel +# Warning: the target distribution must have ffmpeg ! +BuildRequires: ffmpeg-devel Requires: ffmpeg %description @@ -50,13 +74,20 @@ This is the Trinity version %prep %setup -q -n applications/%{kdecomp} -%patch0 -p1 +%patch0 -p1 -b .ldflags +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 # 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" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -65,19 +96,24 @@ This is the Trinity version %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR || : ; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -88,26 +124,38 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} &> /dev/null %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} &> /dev/null %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/k9copy -%{_datadir}/applications/kde/k9copy.desktop -%{_datadir}/apps/k9copy -%{_datadir}/apps/konqueror/servicemenus/k9copy_open.desktop -%{tde_docdir}/HTML/en/k9copy -%{_datadir}/icons/hicolor/*/apps/k9copy.png +%{tde_bindir}/k9copy +%{tde_tdeappdir}/k9copy.desktop +%{tde_datadir}/apps/k9copy/ +%{tde_datadir}/apps/konqueror/servicemenus/k9copy_open.desktop +%lang(en) %{tde_tdedocdir}/HTML/en/k9copy/ +%{tde_datadir}/icons/hicolor/*/apps/k9copy.png %Changelog +* Sat Aug 04 2012 Francois Andriot <francois.andriot@free.fr> - 1.2.3-2 +- Add support for MGA2 and MDV2011 +- Fix 'format not a string literal' error. Clean up warning. [Commit #3bfc84b0] +- Fix FTBFS [Commit #62acebb7] +- Fix 'format not a string literal' error [Commit #d9ed8b32] +- Fix remaining string format errors [Commit #a8e98ad9] +- Fix another string format error [Commit #b3bb8a8f] +- Fix FTBFS [Commit #ca864ede] +- Fix format string error [Commit #a016df82] + * Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.2.3-2 - Fix HTML directory location |