Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zzndb:Qv2ray
QvPlugin-SS-preview
QvPlugin-SS-preview.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File QvPlugin-SS-preview.spec of Package QvPlugin-SS-preview
# # spec file for package QvPlugin-SS-preview # # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # # disable debug packages, use explicit glibc-langpack follow openSUSE:Tools/obs-service-tar_scm %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %global debug_package %{nil} %define locale_package glibc-langpack-en %endif Name: QvPlugin-SS-preview Version: ?_? Release: 0 Summary: Full SIP003 support Shadowsocks plugin for Qv2ray # FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses License: GPL-3.0-only Url: https://github.com/Qv2ray/QvPlugin-SS Source: %{name}-%{version}.tar.gz Patch1: disable_bundle_mbedtls_-Werror.patch %if 0%{?suse_version} BuildRequires: libqt5-qtbase-common-devel BuildRequires: libQt5Core-devel BuildRequires: libQt5Gui-devel BuildRequires: libQt5Widgets-devel BuildRequires: libQt5Network-devel BuildRequires: ninja %else BuildRequires: qt5-qtbase-devel BuildRequires: %{locale_package} BuildRequires: ninja-build %endif %define interface_version %(iv=%{version} && echo ${iv%.*}) Requires: Qv2ray-Plugin-Interface = %{interface_version} ## BUILDVERSION >= 5801 Requires: (Qv2ray-preview >= 2.6.2.3~git.20200721 or Qv2ray >= 2.6.3) Conflicts: QvPlugin-SS %description A Full SIP003 support Shadowsocks plugin for Qv2ray. For supported encrypto method plz check the below page: https://github.com/Qv2ray/shadowsocks-uvw#encrypto-method This is the dev branch of QvPlugin-SS %prep %setup -q # ref: https://github.com/Mbed-TLS/mbedtls/issues/3782#issuecomment-1279828267 %patch1 -p1 %define BUILD_SOURCE %{_builddir}/%{name}-%{version} %define BUILD_DIR %{_builddir}/%{name}-%{version}/build mkdir -p %{BUILD_DIR} %build # -DUSE_SYSTEM_MBEDTLS=OFF: do not use system mbedtls because bundeld shadownsocks-uvw code can build with newer version of mbedtls %if 0%{?centos_version} cd %{BUILD_DIR} cmake .. \ %else cmake -S %{BUILD_SOURCE} -B %{BUILD_DIR} \ %endif -DUSE_SYSTEM_MBEDTLS=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=OFF \ -GNinja ninja -C %{BUILD_DIR} %install install -Dm 0644 %{BUILD_DIR}/libQvPlugin-SS.so %{buildroot}%{_datadir}/qv2ray/plugins/libQvPlugin-SS.so %post # notify restart qv2ray after first installation if [ "$1" -le 1 ]; then mkdir -p %{_localstatedir}/adm/update-messages cat > %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something << EOF INFO: You may need to restart your Qv2ray several time to load & enable this plugin. EOF fi %postun %files %{_datadir}/qv2ray/plugins/libQvPlugin-SS.so %dir %{_datadir}/qv2ray %dir %{_datadir}/qv2ray/plugins %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