|
|
@ -67,7 +67,7 @@ BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
|
|
|
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
|
|
|
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool m4
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
@ -182,7 +182,6 @@ BuildRequires: libmad-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# LAME support
|
|
|
|
# LAME support
|
|
|
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
|
|
|
|
|
|
|
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
|
|
|
|
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
|
|
|
|
%define with_lame 1
|
|
|
|
%define with_lame 1
|
|
|
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
|
|
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
|
|
@ -199,7 +198,6 @@ BuildRequires: libmp3lame-devel
|
|
|
|
BuildRequires: lame-devel
|
|
|
|
BuildRequires: lame-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# FFMPEG support
|
|
|
|
# FFMPEG support
|
|
|
|
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
|
|
|
|
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
|
|
|
@ -405,71 +403,53 @@ and a generic audio and video file converter.
|
|
|
|
# set in k3brc too
|
|
|
|
# set in k3brc too
|
|
|
|
%patch4 -p1 -b .manualbufsize
|
|
|
|
%patch4 -p1 -b .manualbufsize
|
|
|
|
|
|
|
|
|
|
|
|
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
|
|
|
|
|
|
|
%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
|
|
|
|
|
|
|
%__make -f "admin/Makefile.common"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
|
|
|
|
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
|
|
|
|
export kde_confdir="%{tde_confdir}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# FFMPEG trick ...
|
|
|
|
# FFMPEG trick ...
|
|
|
|
if [ -d /usr/include/ffmpeg ]; then
|
|
|
|
if [ -d /usr/include/ffmpeg ]; then
|
|
|
|
export CXXFLAGS="${RPM_OPT_FLAGS} -I/usr/include/ffmpeg"
|
|
|
|
export CXXFLAGS="${RPM_OPT_FLAGS} -I/usr/include/ffmpeg"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Notice: extra-includes is required to find arts headers
|
|
|
|
if ! rpm -E %%cmake|grep -q "cd build"; then
|
|
|
|
%configure \
|
|
|
|
%__mkdir_p build
|
|
|
|
--prefix=%{tde_prefix} \
|
|
|
|
cd build
|
|
|
|
--exec-prefix=%{tde_prefix} \
|
|
|
|
fi
|
|
|
|
--bindir=%{tde_bindir} \
|
|
|
|
|
|
|
|
--datadir=%{tde_datadir} \
|
|
|
|
%cmake \
|
|
|
|
--libdir=%{tde_libdir} \
|
|
|
|
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
|
|
|
--mandir=%{tde_mandir} \
|
|
|
|
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
|
|
|
--includedir=%{tde_tdeincludedir} \
|
|
|
|
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
|
|
|
\
|
|
|
|
-DCMAKE_SKIP_RPATH=OFF \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
-DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
|
|
|
|
--disable-debug \
|
|
|
|
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
|
|
|
|
--enable-new-ldflags \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
--enable-final \
|
|
|
|
-DCMAKE_PROGRAM_PATH="%{tde_bindir}" \
|
|
|
|
--enable-closure \
|
|
|
|
-DWITH_GCC_VISIBILITY=OFF \
|
|
|
|
--enable-rpath \
|
|
|
|
|
|
|
|
--disable-gcc-hidden-visibility \
|
|
|
|
|
|
|
|
\
|
|
|
|
\
|
|
|
|
--with-extra-includes=%{tde_includedir} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
|
|
|
|
|
|
|
|
-DBIN_INSTALL_DIR=%{tde_bindir} \
|
|
|
|
|
|
|
|
-DCONFIG_INSTALL_DIR="%{tde_confdir}" \
|
|
|
|
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
|
|
|
|
|
|
|
|
-DLIB_INSTALL_DIR=%{tde_libdir} \
|
|
|
|
|
|
|
|
-DSHARE_INSTALL_PREFIX=%{tde_datadir} \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
--with-k3bsetup=no \
|
|
|
|
-DWITH_ALL_OPTIONS="ON" \
|
|
|
|
--without-cdrecord-suid-root \
|
|
|
|
-DWITH_MUSICBRAINZ="ON" \
|
|
|
|
--with-oggvorbis \
|
|
|
|
-DWITH_FFMPEG_ALL_CODECS="ON" \
|
|
|
|
--with-flac \
|
|
|
|
-DWITH_MUSEPACK="ON" \
|
|
|
|
%{?with_samplerate:--with-external-libsamplerate} \
|
|
|
|
..
|
|
|
|
%{?with_dvdread:--with-libdvdread} %{?!with_dvdread:--without-libdvdread} \
|
|
|
|
|
|
|
|
--with-musicbrainz \
|
|
|
|
|
|
|
|
%{?with_sndfile:--with-sndfile} %{?!with_sndfile:--without-sndfile} \
|
|
|
|
|
|
|
|
%{?with_ffmpeg:--with-ffmpeg} %{?!with_ffmpeg:--without-ffmpeg} \
|
|
|
|
|
|
|
|
%{?with_lame:--with-lame} %{?!with_lame:--without-lame} \
|
|
|
|
|
|
|
|
%{?with_libmad:--with-libmad} %{?!with_libmad:--without-libmad} \
|
|
|
|
|
|
|
|
--with-musepack \
|
|
|
|
|
|
|
|
--without-resmgr \
|
|
|
|
|
|
|
|
%{?with_hal:--with-hal} %{?!with_hal:--without-hal} \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Strange behaviour on RHEL4 ...
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 4
|
|
|
|
|
|
|
|
%__sed -i "libk3b/jobs/Makefile" -e "/^am_libjobs_la_final_OBJECTS/ s/ lo//g"
|
|
|
|
|
|
|
|
%__mkdir_p "libk3bdevice/.libs"
|
|
|
|
|
|
|
|
%__ln_s . "libk3bdevice/.libs/.libs"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
%__make %{?_smp_mflags} || %__make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
%__rm -rf %{buildroot}
|
|
|
|
%__rm -rf %{buildroot}
|
|
|
|
%__make install DESTDIR=%{buildroot}
|
|
|
|
%__make install DESTDIR=%{?buildroot} -C build
|
|
|
|
%__install -D -m 644 -p %{SOURCE2} %{buildroot}%{tde_confdir}/k3brc
|
|
|
|
%__install -D -m 644 -p %{SOURCE2} %{buildroot}%{tde_confdir}/k3brc
|
|
|
|
|
|
|
|
|
|
|
|
# remove the .la files
|
|
|
|
# remove the .la files
|
|
|
|