commit a8b7bf43d4b4f4965fcd6534f73f6143884ee0a7
Author: Peter Oliver <git(a)mavit.org.uk>
Date: Sun Jul 24 20:28:04 2016 +0100
Handle `bbc-ipd:` URLs.
- Eliminate spurious module dependencies.
get_iplayer.desktop | 10 ++++++++++
get_iplayer.spec | 14 ++++++++++++--
get_iplayer.xml | 6 ++++++
3 files changed, 28 insertions(+), 2 deletions(-)
---
diff --git a/get_iplayer.desktop b/get_iplayer.desktop
new file mode 100644
index 0000000..09f2df3
--- /dev/null
+++ b/get_iplayer.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=get_iplayer
+Comment=Download television and radio programmes from BBC iPlayer
+NoDisplay=true
+Icon=get_iplayer
+Exec=get_iplayer %u
+Terminal=true
+MimeType=x-scheme-handler/bbc-ipd;
+Categories=AudioVideo;Network;Recorder;ConsoleOnly;
diff --git a/get_iplayer.spec b/get_iplayer.spec
index 17b353e..0c6e38a 100644
--- a/get_iplayer.spec
+++ b/get_iplayer.spec
@@ -1,6 +1,6 @@
Name: get_iplayer
Version: 2.95
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Lists, Records and Streams BBC iPlayer TV and Radio programmes
Group: Applications/Internet
@@ -8,6 +8,8 @@ License: GPLv3+
URL:
http://www.infradead.org/get_iplayer/html/get_iplayer.html
Source0:
https://github.com/get-iplayer/%{name}/archive/v%{version}.tar.gz#/%{name...
Source1: options
+Source2: get_iplayer.desktop
+Source3: get_iplayer.xml
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -24,7 +26,7 @@ Requires: perl(XML::Simple) perl(XML::LibXML)
%{?filter_setup:
#
https://bugzilla.redhat.com/show_bug.cgi?id=734244
-%filter_from_requires /perl(Programme.*)/d; /perl(Streamer)/d;
+%filter_from_requires /perl(Programme.*)/d; /perl(Streamer.*)/d;
%filter_setup
}
@@ -43,6 +45,8 @@ rm -rf $RPM_BUILD_ROOT
install -p -D -m0755 get_iplayer $RPM_BUILD_ROOT%{_bindir}/get_iplayer
install -p -D -m0644 get_iplayer.1 $RPM_BUILD_ROOT%{_mandir}/man1/get_iplayer.1
install -p -D -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/get_iplayer/options
+install -p -D -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages
+install -p -D -m0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/applications
dist/%{name}.desktop
%clean
rm -rf $RPM_BUILD_ROOT
@@ -54,11 +58,17 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/get_iplayer.1.*
%dir %{_sysconfdir}/get_iplayer
%config(noreplace) %{_sysconfdir}/get_iplayer/options
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/applications/%{name}.desktop
%doc LICENSE.txt
%doc README.md
%changelog
+* Sun Jul 24 2016 Peter Oliver <rpm(a)mavit.org.uk> - 2.95-2
+- Handle `bbc-ipd:` URLs.
+- Eliminate spurious module dependencies.
+
* Sun Jul 24 2016 Peter Oliver <rpm(a)mavit.org.uk> - 2.95-1
- Update to 2.95.
- Remove deprecated options from default system options file.
diff --git a/get_iplayer.xml b/get_iplayer.xml
new file mode 100644
index 0000000..7606892
--- /dev/null
+++ b/get_iplayer.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info
xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="x-scheme-handler/bbc-ipd">
+ <comment>BBC iPlayer</comment>
+ </mime-type>
+</mime-info>