[packages/osmc-installer] new

glen glen at pld-linux.org
Sun Feb 8 16:54:49 CET 2015


commit 72e582761dff029198aa159ccd5a4b3378e4b915
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Feb 8 17:54:03 2015 +0200

    new
    
    based on upstream src rpm package
    http://download.opensuse.org/pub/opensuse/repositories/home:/osmc/openSUSE_Factory/src/osmc-installer-1-42.1.src.rpm

 desktop.patch       | 11 ++++++++++
 osmc-installer.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)
---
diff --git a/osmc-installer.spec b/osmc-installer.spec
new file mode 100644
index 0000000..37c3f36
--- /dev/null
+++ b/osmc-installer.spec
@@ -0,0 +1,60 @@
+%define osmc_name qt_host_installer
+Summary:	OSMC Installer for Linux
+Name:		osmc-installer
+Version:	1
+Release:	42.1
+License:	GPL v2
+Group:		Applications/Multimedia
+Source0:	src.tar.gz
+# Source0-md5:	b475aa2540255265f682a14cf16dbc72
+Patch0:		desktop.patch
+URL:		https://github.com/samnazarko/osmc
+BuildRequires:	QtCore-devel
+BuildRequires:	desktop-file-utils
+BuildRequires:	libstdc++-devel
+BuildRequires:	qt4-build
+BuildRequires:	qt4-qmake
+Requires:	desktop-file-utils
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OSMC Installer allows you to install OSMC on a variety of devices.
+
+%prep
+%setup -qc
+%patch0 -p1
+
+%build
+cd src
+qmake-qt4
+%{__make} \
+	CXX="%{__cxx}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
+
+install -p src/qt_host_installer $RPM_BUILD_ROOT%{_bindir}/qt_host_installer
+install -p src/osmcinstaller $RPM_BUILD_ROOT%{_bindir}/osmcinstaller
+
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} src/osmcinstaller.desktop
+desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/osmcinstaller.desktop
+
+# icon image
+cp -p src/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/osmcinstaller.png
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_desktop_database
+
+%postun
+%update_desktop_database
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/osmcinstaller
+%attr(755,root,root) %{_bindir}/qt_host_installer
+%{_desktopdir}/osmcinstaller.desktop
+%{_pixmapsdir}/osmcinstaller.png
diff --git a/desktop.patch b/desktop.patch
new file mode 100644
index 0000000..805f906
--- /dev/null
+++ b/desktop.patch
@@ -0,0 +1,11 @@
+--- osmc-installer-1/src/osmcinstaller.desktop~	2014-11-18 07:32:05.000000000 +0200
++++ osmc-installer-1/src/osmcinstaller.desktop	2015-02-08 17:47:46.239852612 +0200
+@@ -1,6 +1,6 @@
+ [Desktop Entry]
+ Name=OSMC Installer
+-Exec=/usr/share/osmc/osmcinstaller
+-Icon=/usr/share/osmc/icon.png
++Exec=osmcinstaller
++Icon=osmcinstaller
+ Type=Application
+ Categories=AudioVideo;Video;Player;TV;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/osmc-installer.git/commitdiff/72e582761dff029198aa159ccd5a4b3378e4b915



More information about the pld-cvs-commit mailing list