summaryrefslogtreecommitdiffstats
path: root/redhat/applications
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-01-07 21:56:03 +0100
committerFrancois Andriot <francois.andriot@free.fr>2013-01-07 21:56:03 +0100
commit32c6bd4f88baa67c89d8c55cacf79d6a4819c2da (patch)
tree54dc216f80eb47b1940818bbae4aa22c9927f3ac /redhat/applications
parent1e0aad0087c35f75e7462229e1e05a6f2dfcc66d (diff)
downloadtde-packaging-32c6bd4f88baa67c89d8c55cacf79d6a4819c2da.tar.gz
tde-packaging-32c6bd4f88baa67c89d8c55cacf79d6a4819c2da.zip
RPM packaging: adds optional plugins to K3B
Diffstat (limited to 'redhat/applications')
-rw-r--r--redhat/applications/k3b/trinity-k3b-3.5.13.1.spec108
1 files changed, 99 insertions, 9 deletions
diff --git a/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec b/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec
index 9b98631e8..3c3ed5ba9 100644
--- a/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec
+++ b/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec
@@ -23,7 +23,7 @@
Name: trinity-k3b
Summary: CD/DVD burning application
Version: 3.5.13.1
-Release: 1%{?dist}%{?_variant}
+Release: 2%{?dist}%{?_variant}
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
@@ -62,13 +62,6 @@ BuildRequires: libvorbis-devel
BuildRequires: taglib-devel
BuildRequires: zlib-devel
-%if 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: %{_lib}flac-devel
-BuildRequires: %{_lib}flac++-devel
-%else
-BuildRequires: flac-devel
-%endif
-
Requires(post): coreutils
Requires(postun): coreutils
@@ -79,6 +72,32 @@ Requires: cdrecord mkisofs
Requires: cdrdao
Requires: dvd+rw-tools
+# FLAC support
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}flac-devel
+BuildRequires: %{_lib}flac++-devel
+%else
+BuildRequires: flac-devel
+%endif
+
+# MAD support
+%if 0%{?mdkversion} || 0%{?mgaversion}
+%define with_mad 1
+BuildRequires: %{_lib}mad-devel
+%endif
+
+# LAME support
+%if 0%{?mdkversion} || 0%{?mgaversion}
+%define with_lame 1
+BuildRequires: %{_lib}lame-devel
+%endif
+
+# FFMPEG support
+%if 0%{?mdkversion} || 0%{?mgaversion}
+%define with_ffmpeg 1
+BuildRequires: %{_lib}ffmpeg-devel
+%endif
+
%description
K3b provides a comfortable user interface to perform most CD/DVD
burning tasks. While the experienced user can take influence in all
@@ -218,6 +237,70 @@ Requires: %{name}-libs = %{version}-%{release}
##########
+%if 0%{?with_mad}
+%package plugin-mad
+Summary: The MAD plugin for K3B
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description plugin-mad
+%{summary}.
+
+MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
+and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
+so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
+and Layer III a.k.a. MP3) are fully implemented.
+
+%files plugin-mad
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/libk3bmaddecoder.la
+%{tde_tdelibdir}/libk3bmaddecoder.so
+%endif
+
+##########
+
+%if 0%{?with_lame}
+%package plugin-lame
+Summary: The LAME plugin for K3B
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description plugin-lame
+%{summary}.
+
+Personal and commercial use of compiled versions of LAME (or any other mp3
+encoder) requires a patent license in some countries.
+
+This package is in tainted, as MP3 encoding is covered by software patents.
+
+%files plugin-lame
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/libk3blameencoder.la
+%{tde_tdelibdir}/libk3blameencoder.so
+%endif
+
+##########
+
+%if 0%{?with_ffmpeg}
+%package plugin-ffmpeg
+Summary: The FFMPEG plugin for K3B
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description plugin-ffmpeg
+%{summary}.
+
+ffmpeg is a hyper fast realtime audio/video encoder, a streaming server
+and a generic audio and video file converter.
+
+%files plugin-ffmpeg
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/libk3bffmpegdecoder.la
+%{tde_tdelibdir}/libk3bffmpegdecoder.so
+%endif
+
+##########
+
%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
@@ -267,7 +350,9 @@ export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
--with-libdvdread \
--with-musicbrainz \
--with-sndfile \
- --without-ffmpeg --without-lame --without-libmad \
+ %{?with_ffmpeg:--with-ffmpeg} %{?!with_ffmpeg:--without-ffmpeg} \
+ %{?with_lame:--with-lame} %{?!with_lame:--without-lame} \
+ %{?with_mad:--with-libmad} %{?!with_mad:--without-libmad} \
--with-musepack \
--with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}
@@ -293,6 +378,11 @@ export PATH="%{tde_bindir}:${PATH}"
%changelog
+* Sun Jan 06 2013 Francois Andriot <francois.andriot@free.fr> - 3.5.13.1-2
+- Enables FFMPEG support
+- Enables LAME support
+- Enables MAD support
+
* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13.1-1
- Initial build for TDE 3.5.13.1
- Remove requirement for resmgr