Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Psheng
bilibili
bilibili.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bilibili.spec of Package bilibili
# # spec file for package bilibili # # Copyright (c) 2023 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 electron_version electron21 %define version_suffix -2 %define build_dir_name %{name}-linux-%{version}%{version_suffix} Name: bilibili Version: 1.15.2 Release: 0 Summary: Based on the Linux version ported from the official client License: MIT GROUP: Productivity/Multimedia/Video/Players URL: https://github.com/msojocs/bilibili-linux Source0: %{name}.tar.gz Source1: bili_win-install.exe.gz Source2: bilibili.rpmlintrc Source10: package-lock.json Source11: node_modules.spec.inc %include %{_sourcedir}/node_modules.spec.inc BuildRequires: exiftool BuildRequires: asar BuildRequires: p7zip-full BuildRequires: update-desktop-files BuildRequires: systemd-rpm-macros BuildRequires: fdupes BuildRequires: local-npm-registry Requires: %{electron_version} BuildRoot: %{_tmppath}/%{build_dir_name}-build %description Compared with the official version, it has more roaming functions %prep %setup -q -n %{build_dir_name} mkdir cache gzip -cd %{S:1} > cache/bili_win-install.exe local-npm-registry %{_sourcedir} install --with=dev --legacy-peer-deps %build sed -i '19d' tools/setup-bilibili sed -i '22,26d' tools/update-bilibili sed -i '72clocal-npm-registry %{_sourcedir} install --with=dev --legacy-peer-deps @grpc/grpc-js' tools/fix-other.sh tools/setup-bilibili sed -i 's/$root_dir\/electron\/electron/\/usr\/bin\/%{electron_version}/g' bin/bilibili sed -i 's/$root_dir\/app\/app.asar/\/usr\/share\/bilibili\/app.asar/g' bin/bilibili sed -i 's/$root_dir\/app\/app/\/usr\/share\/bilibili\/app/g' bin/bilibili sed -i 's/export APPIMAGE=1/export APPIMAGE=0/g' bin/bilibili %install install -Dm 755 bin/%{name} %{buildroot}%{_bindir}/%{name} install -Dm 644 app/app.asar %{buildroot}%{_datadir}/%{name}/app.asar install -Dm 644 app/app-update.yml %{buildroot}%{_datadir}/%{name}/app-update.yml cp -r app/extensions %{buildroot}%{_datadir}/%{name}/extensions install -Dm 644 res/bilibili.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %suse_update_desktop_file %{name} for size in 16 24 32 48 64 96 128 256 512 1024; do install -Dm 644 res/icons/${size}x${size}.png \ %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png done %fdupes -s %{buildroot} %files %license license %doc README.MD CHANGELOG.MD %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_datadir}/icons/* %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