Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zzndb001
anki-sync-server-rs
anki-sync-server-rs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File anki-sync-server-rs.spec of Package anki-sync-server-rs
# # spec file for package anki-sync-server-rs # # 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 anki_rslib_ver ccd9ca1 %define p_name ankisyncd Name: anki-sync-server-rs Version: 1.1.5 Release: 0 Summary: A personal Anki(flash-card app) sync server License: AGPL-3.0-or-later URL: https://github.com/ankicommunity/anki-sync-server-rs Source: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: anki-rslib-%{anki_rslib_ver}.tar.xz Patch1: ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9_anki_rslib.patch BuildRequires: cargo BuildRequires: rust BuildRequires: ccache BuildRequires: protobuf-devel Conflicts: anki-sync-server %description A cross-platform Anki sync server. This is a rust (still sqlite c library backed) take on anki sync server, which keep track of the official sync server. %prep %setup -q -a 1 -a 2 mv anki-rslib-%{anki_rslib_ver} anki pushd anki %patch1 -p1 popd mkdir cargo-home cat >cargo-home/config <<EOF [source.crates-io] replace-with = "vendored-sources" [source."git+https://github.com/ankitects/rust-url.git?rev=bb930b8d089f4d30d7d19c12e54e66191de47b88"] git = "https://github.com/ankitects/rust-url.git" rev = "bb930b8d089f4d30d7d19c12e54e66191de47b88" replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF %build export CARGO_HOME=$PWD/cargo-home cargo build --release --features tls %{?_smp_mflags} %install install -Dm 0755 target/release/%{p_name} %{buildroot}%{_bindir}/%{p_name} install -Dm 0644 ankisyncd.toml %{buildroot}%{_sysconfdir}/%{p_name}/%{p_name}.toml %post %postun %files %license LICENSE %doc README.md README_CN.md CONTRIBUTING.md %{_bindir}/%{p_name} %config %{_sysconfdir}/%{p_name}/%{p_name}.toml %dir %{_sysconfdir}/%{p_name} %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