From 19af76c40543e15a557beb1a93a255d87c2dbd94 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:27:25 +0100 Subject: [PATCH] remove InitialPreference to make kaffeine no longer the default player [release 1.2.2-3mamba;Mon Jan 21 2013] --- README.md | 5 + kaffeine-1.2.2-gcc-4.7.patch | 35 ++++++ kaffeine.spec | 201 +++++++++++++++++++++++++++++++++++ 3 files changed, 241 insertions(+) create mode 100644 kaffeine-1.2.2-gcc-4.7.patch create mode 100644 kaffeine.spec diff --git a/README.md b/README.md index 3b72848..60e8fdb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # kaffeine +Kaffeine a Media Player for KDE 4. +It can load local files or URLs and supports most of the existing audio and video formats, such as AVI, MOV, WMV, DIVX, MP3, MPA, and WAV. +It also plays back CDs, DVDs, VCDs and can save screenshots in PNG, BMP, and XBM formats. +Bookmarks and playlist are available. + diff --git a/kaffeine-1.2.2-gcc-4.7.patch b/kaffeine-1.2.2-gcc-4.7.patch new file mode 100644 index 0000000..74bc75f --- /dev/null +++ b/kaffeine-1.2.2-gcc-4.7.patch @@ -0,0 +1,35 @@ +From: Christoph Pfister +Date: Wed, 04 Apr 2012 19:22:09 +0000 +Subject: fix build for gcc 4.7 +X-Git-Url: http://quickgit.kde.org/?p=kaffeine.git&a=commitdiff&h=2da9df1e67004c3cfa879578c351300a99f23da1 +--- +fix build for gcc 4.7 +--- + + +--- a/src/dvb/dvbepg.cpp ++++ b/src/dvb/dvbepg.cpp +@@ -690,15 +690,15 @@ + // 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011) + QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC); + +- for (AtscEitSectionEntry entry = eitSection.entries(); (entryCount > 0) && entry.isValid(); +- --entryCount, entry.advance()) { ++ for (AtscEitSectionEntry eitEntry = eitSection.entries(); ++ (entryCount > 0) && eitEntry.isValid(); --entryCount, eitEntry.advance()) { + DvbEpgEntry epgEntry; + epgEntry.channel = channel; +- epgEntry.begin = baseDateTime.addSecs(entry.startTime()); +- epgEntry.duration = QTime().addSecs(entry.duration()); +- epgEntry.title = entry.title(); +- +- quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(entry.eventId())); ++ epgEntry.begin = baseDateTime.addSecs(eitEntry.startTime()); ++ epgEntry.duration = QTime().addSecs(eitEntry.duration()); ++ epgEntry.title = eitEntry.title(); ++ ++ quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(eitEntry.eventId())); + DvbSharedEpgEntry entry = epgEntries.value(id); + + if (entry.isValid() && (entry->channel == epgEntry.channel) && + diff --git a/kaffeine.spec b/kaffeine.spec new file mode 100644 index 0000000..7500bb3 --- /dev/null +++ b/kaffeine.spec @@ -0,0 +1,201 @@ +%define require_libdvdcss 0 + +Name: kaffeine +Version: 1.2.2 +Release: 3mamba +Summary: A Media Player for KDE 4 +Group: Graphical Desktop/Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://kaffeine.sourceforge.net +Source: http://downloads.sourceforge.net/kaffeine/kaffeine-%{version}.tar.gz +Patch0: kaffeine-1.2.2-gcc-4.7.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: kdelibs-devel +BuildRequires: libgcc +BuildRequires: libqt4-devel +BuildRequires: libstdc++6-devel +BuildRequires: libX11-devel +BuildRequires: libxine1-devel +BuildRequires: libXScrnSaver-devel +## AUTOBUILDREQ-END +BuildRequires: libphonon-devel +%if %require_libdvdcss +BuildRequires: libdvdcss-devel +%endif +BuildRequires: pkgconfig +Provides: kaffeine4 +Obsoletes: kaffeine4 +Provides: libkaffeine +Obsoletes: libkaffeine +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Kaffeine a Media Player for KDE 4. +It can load local files or URLs and supports most of the existing audio and video formats, such as AVI, MOV, WMV, DIVX, MP3, MPA, and WAV. +It also plays back CDs, DVDs, VCDs and can save screenshots in PNG, BMP, and XBM formats. +Bookmarks and playlist are available. + +%prep +%setup -q +%patch0 -p1 + +%build +%cmake_kde4 -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall -C build +%find_lang kaffeine + +#echo "InitialPreference=10" >> %{buildroot}%{_kde4_xdgappsdir}/kaffeine.desktop + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post +touch --no-create %{_kde4_icondir}/hicolor &>/dev/null +exit 0 + +%postun +if [ $1 -eq 0 ] ; then + update-desktop-database -q &>/dev/null + touch --no-create %{_kde4_icondir}/hicolor &>/dev/null + gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null +fi + +%posttrans +update-desktop-database -q &>/dev/null +gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null + +%files -f kaffeine.lang +%defattr(-,root,root) +%{_kde4_bindir}/kaffeine +%{_kde4_bindir}/kaffeine-xbu +%dir %{_kde4_datadir}/kaffeine +%{_kde4_datadir}/kaffeine/scanfile.dvb +%{_kde4_datadir}/profiles/kaffeine.profile.xml +%{_kde4_xdgappsdir}/kaffeine.desktop +%{_kde4_datadir}/solid/actions/kaffeine_play*.desktop +%{_kde4_icondir}/hicolor/*/apps/kaffeine.png +%{_kde4_icondir}/hicolor/scalable/apps/kaffeine.svgz +%{_kde4_icondir}/oxygen/*/actions/*.png +%doc COPYING Changelog NOTES + +%changelog +* Mon Jan 21 2013 Silvan Calarco 1.2.2-3mamba +- remove InitialPreference to make kaffeine no longer the default player + +* Mon Aug 29 2011 Silvan Calarco 1.2.2-2mamba +- add InitialPreference=10 in desktop file to set as preferred video player in KDE + +* Mon Apr 18 2011 Automatic Build System 1.2.2-1mamba +- automatic update by autodist + +* Tue Apr 05 2011 Automatic Build System 1.2.1-1mamba +- automatic update by autodist + +* Thu Sep 02 2010 Automatic Build System 1.1-1mamba +- automatic update to 1.1 by autodist + +* Sun Jun 06 2010 Davide Madrisan 1.0-5mamba +- updated to 1.0 +- own %{_kde4_datadir}/kaffeine + +* Wed Feb 10 2010 Silvan Calarco 1.0-4mamba +- updated to 1.0-pre3 + +* Thu Sep 10 2009 Silvan Calarco 1.0-3mamba +- updated to -pre2 + +* Fri May 29 2009 Silvan Calarco 1.0-2mamba +- obsolete libkaffeine + +* Thu May 28 2009 Silvan Calarco 1.0-1mamba +- update to 1.0-pre1 + +* Mon May 18 2009 Automatic Build System 0.8.7-3mamba +- automatic rebuild by autodist + +* Thu Jul 24 2008 Silvan Calarco 0.8.7-2mamba +- path configure to fix localization support + +* Tue Jul 22 2008 gil 0.8.7-1mamba +- update to 0.8.7 + +* Mon Jan 21 2008 Aleph0 0.8.6-1mamba +- update to 0.8.6 + +* Mon Jul 30 2007 Aleph0 0.8.5-1mamba +- update to 0.8.5 +- add new build requirement for libxcb-devel + +* Thu Feb 08 2007 Aleph0 0.8.3-1mamba +- update to version 0.8.3 by autospec +- rebuilt with the new installation prefix /opt/kde3 + +* Mon Nov 06 2006 Davide Madrisan 0.8.2-1qilnx +- update to version 0.8.2 by autospec +- created subpackage lib%{name} + +* Thu Aug 03 2006 Davide Madrisan 0.8.1-2qilnx +- removed x-mplayer2.desktop mimelnk now provided by kdelibs + +* Mon Apr 10 2006 Davide Madrisan 0.8.1-1qilnx +- update to version 0.8.1 by autospec +- this release fixes the security issue CVE-2006-0051 +- removed libfam-devel from build requirements +- removed visibility patch + +* Thu Feb 23 2006 Silvan Calarco 0.7.1-2qilnx +- fix KDE desktop entry location + +* Mon Sep 05 2005 Davide Madrisan 0.7.1-1qilnx +- update to version 0.7.1 by autospec + +* Wed Aug 10 2005 Davide Madrisan 0.7-1qilnx +- update to version 0.7 by autospec +- added build requirements for gstreamer-plugins + +* Tue Apr 05 2005 Silvan Calarco 0.6-1qilnx +- update to version 0.6 by autospec + +* Tue Mar 01 2005 Davide Madrisan 0.5-4qilnx +- rebuilt with `--with-xorg' configure option + +* Sat Jan 01 2005 Silvan Calarco 0.5-3qilnx +- update to version 0.5 + +* Mon Nov 08 2004 Davide Madrisan 0.5-2qilnx +- update to version 0.5-rc2 + +* Fri Oct 29 2004 Davide Madrisan 0.5-1qilnx +- update to version 0.5-rc1 by autospec + +* Sun Jun 27 2004 Silvan Calarco 0.4.3b-1qilnx +- new version build + +* Mon Mar 29 2004 Davide Madrisan 0.4.2-1qilnx +- new version rebuild + +* Fri Feb 13 2004 Davide Madrisan 0.4.1-3qilnx +- rebuild using KDE 3.2.0 core libraries and headers + +* Thu Jan 29 2004 Davide Madrisan 0.4.1-2qilnx +- rebuilt + +* Mon Jan 19 2004 Davide Madrisan 0.4.1-1qilnx +- rebuilt with the latest available version + +* Mon Nov 17 2003 Davide Madrisan 0.4-1qilnx +- rebuilt with the latest stable version + +* Tue Oct 07 2003 Davide Madrisan 0.4beta1-2qilnx +- removed libdvdcss as requirement + +* Sun Oct 04 2003 Davide Madrisan 0.4beta1-1qilnx +- first build