Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:leap
stremio
stremio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stremio.spec of Package stremio
# # spec file for package stremio # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define pkgname stremio %define pkgver 4.4.168 %define pkgrel 1 %define pkgext .tar.gz %define BUILD_DIR build %define INSTALL_DIR %{_libdir}/%{name} %define ICON_BIN smartcode-stremio.svg %define NON_TRAY smartcode-stremio %define TRAY smartcode-stremio-tray %define DESKTOP smartcode-stremio.desktop %define SERVER_JS server.js %define STREMIO_ASAR stremio.asar %define STREMIO_BIN %{BUILD_DIR}/%{name} Name: stremio Version: 4.4.168 Release: 0 Summary: A modern media center that's a one-stop solution License: GPL-3.0 URL: https://www.stremio.com Source0: https://github.com/Stremio/stremio-shell/archive/refs/tags/v%{version}.tar.gz#/%{pkgname}-%{pkgver}%{pkgext} Source1: server.js Source2: stremio.asar BuildRequires: cmake BuildRequires: make BuildRequires: pkgconfig BuildRequires: libboost_headers-devel BuildRequires: qt6-base-devel BuildRequires: mpv-devel BuildRequires: libcaca-devel BuildRequires: ncurses5-devel BuildRequires: libQt5WebView5 BuildRequires: SDL2-devel BuildRequires: qconf BuildRequires: messagelib-devel BuildRequires: libqt5-qtwebengine-devel BuildRequires: libopenssl-devel BuildRequires: rpmdevtools BuildRequires: libQt5Xml-devel BuildRequires: libQt5WebChannel5-imports BuildRequires: libQt5WebView5 BuildRequires: libqt5-qtwebengine BuildRequires: libQt5QuickControls2-5 BuildRequires: libqt5-qtquickcontrols BuildRequires: libqt5-qtquickcontrols2 BuildRequires: libQt5OpenGL-devel BuildRequires: libQt5DBus-devel BuildRequires: nodejs-common BuildRequires: nodejs BuildRequires: npm-default BuildRequires: rsvg-convert BuildRequires: fdupes Requires: nodejs %description A modern media center that's a one-stop solution for your video entertainment. You discover, watch and organize video content from easy to install addons. %prep %autosetup -n %{pkgname}-%{pkgver} %check %build %cmake .. \ -G"Unix Makefiles" \ -DCMAKE_BUILD_TYPE=Release \ cd %{BUILD_DIR} && cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{buildroot} .. cd .. make -j %cmake_build %install rm -rf %{buildroot} make -C %{BUILD_DIR} install install -Dm 644 %{SOURCE1} %{buildroot}/%{INSTALL_DIR}/%{SERVER_JS} install -Dm 644 %{SOURCE2} %{buildroot}/%{INSTALL_DIR}/%{STREMIO_ASAR} mkdir -p %{buildroot}%{_datadir}/applications install -Dm 644 %{DESKTOP} %{buildroot}%{_datadir}/applications/%{name}.desktop mkdir -p icons cd icons && printf 16,22,24,32,64,128 | xargs -I^ -d, sh -c 'rsvg-convert ../images/stremio.svg -w ^ -o smartcode-stremio_^.png && rsvg-convert ../images/stremio_tray_white.svg -w ^ -o smartcode-stremio-tray_^.png' cd .. mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{128x128,64x64,32x32,16x16,22x22,24x24}/apps cp icons/%{TRAY}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png cp icons/%{NON_TRAY}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png cp icons/%{TRAY}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png cp icons/%{NON_TRAY}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png cp icons/%{TRAY}_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png cp icons/%{NON_TRAY}_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png cp icons/%{TRAY}_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png cp icons/%{NON_TRAY}_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png cp icons/%{TRAY}_22.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/%{name}.png cp icons/%{NON_TRAY}_22.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/%{name}.png cp icons/%{TRAY}_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png cp icons/%{NON_TRAY}_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png ln -s $(sh -c "which node") %{buildroot}%{INSTALL_DIR}/node mkdir -p %{buildroot}%{_bindir} mv %{buildroot}/opt/%{name}/%{name} %{buildroot}%{INSTALL_DIR} ln -s %{INSTALL_DIR}/%{name} %{buildroot}%{_bindir}/%{name} rmdir %{buildroot}/opt/%{name} %fdupes %{buildroot} %files %defattr(-,root,root) %license LICENSE.md %doc README.md %{_libdir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/128x128/apps/* %{_datadir}/icons/hicolor/64x64/apps/* %{_datadir}/icons/hicolor/32x32/apps/* %{_datadir}/icons/hicolor/16x16/apps/* %{_datadir}/icons/hicolor/22x22/apps/* %{_datadir}/icons/hicolor/24x24/apps/* %{_bindir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor