mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
Fix anki-bin
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "anki-bin.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
Name: anki-bin
|
||||
Version: 2.1.56
|
||||
Release: %autorelease
|
||||
Release: 2%{?dist}
|
||||
Summary: Flashcard program for using space repetition learning (Installed with wheel)
|
||||
License: AGPLv3+ and GPLv3+ and LGPLv3 and MIT and BSD and ASL 2.0 and CC-BY-SA and CC-BY
|
||||
URL: https://apps.ankiweb.net/
|
||||
BuildRequires: python3-installer
|
||||
BuildRequires: python3-installer python3.11
|
||||
Requires: hicolor-icon-theme python3-sqlalchemy python3-simplejson python3-matplotlib python3-decorator python3-markdown python3-send2trash
|
||||
Requires: python3-requests python3-pygame python3-beautifulsoup4 python3-httplib2 python3-pyaudio python3-jsonschema sox libxcrypt-compat
|
||||
BuildArch: noarch
|
||||
@@ -14,6 +14,8 @@ Source1: https://files.pythonhosted.org/packages/py3/a/aqt/aqt-%{version}-py3-n
|
||||
Source2: https://raw.githubusercontent.com/ankitects/anki/%{version}/qt/runanki.py
|
||||
Source3: https://raw.githubusercontent.com/ankitects/anki/%{version}/qt/bundle/lin/anki.desktop
|
||||
Source4: https://raw.githubusercontent.com/ankitects/anki/%{version}/qt/bundle/lin/anki.png
|
||||
Source5: https://raw.githubusercontent.com/ankitects/anki/%{version}/LICENSE
|
||||
Source6: https://raw.githubusercontent.com/ankitects/anki/%{version}/README.md
|
||||
|
||||
%description
|
||||
Anki is a program designed to help you remember facts (such as words
|
||||
@@ -21,24 +23,30 @@ and phrases in a foreign language) as easily, quickly and efficiently
|
||||
as possible. Anki is based on a theory called spaced repetition.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
python -m installer --destdir="%{buildroot}" %{SOURCE0}
|
||||
python -m installer --destdir="%{buildroot}" %{SOURCE1}
|
||||
python3.11 -m installer --destdir="%{buildroot}" %{SOURCE0}
|
||||
python3.11 -m installer --destdir="%{buildroot}" %{SOURCE1}
|
||||
install -Dm755 %{SOURCE2} "%{buildroot}/usr/bin/anki"
|
||||
install -Dm644 %{SOURCE3} "%{buildroot}/usr/share/applications/anki.desktop"
|
||||
install -Dm644 %{SOURCE4} "%{buildroot}/usr/share/pixmaps/anki.png"
|
||||
install -Dm644 %{SOURCE5} "%{buildroot}/%{_datadir}/licenses/%{name}/LICENSE"
|
||||
install -Dm644 %{SOURCE6} "%{buildroot}/%{_datadir}/doc/%{name}/README.md"
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE*
|
||||
%doc README*
|
||||
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
/usr/bin/anki
|
||||
/usr/lib64/python*/site-packages/_aqt/
|
||||
/usr/lib64/python*/site-packages/anki-%{version}.dist-info/
|
||||
/usr/lib64/python*/site-packages/anki/
|
||||
/usr/lib64/python*/site-packages/aqt-%{version}.dist-info/
|
||||
/usr/lib64/python*/site-packages/aqt/
|
||||
/usr/share/applications/anki.desktop
|
||||
/usr/share/pixmaps/anki.png
|
||||
|
||||
%changelog
|
||||
* Wed Jan 11 2023 windowsboy111 <windowsboy111@fyralabs.com>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("ankitects/anki"));
|
||||
Reference in New Issue
Block a user