mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-04 10:52:18 +00:00
9bbe91be03
* fix(lint): prismlauncher* fluent-icon-theme * fix(lint): fix lints for 6 packages (#578) * fix(lint): fix rpmlint lints for youki package * fix(lint): fix rpmlint lints for xdg-desktop-portal-pantheon * fix(lint): fix rpmlint lints for wingpanel package * fix(lint): fix rpmlint lints for wingpanel-indicator-sound package * fix(lint): fix rpmlint lints for wingpanel-indicator-session package * fix(lint): fix rpmlint lints for wingpanel-indicator-power package * fix(lint): * * fix random typos * feat: revert anda/desktops * fix: armcord-bin authy blahaj * fix: ... anki authy discord~ aya~sound groovy kotlin libappimage qt5-pim * fix: ... qdjango moby-buildx nim-nightly nim system76-scheduler unity-scope-home kondo pop-launcher fuc graalvm vala-lint-nightly * fix: armcord-bin authy blahaj groovy * fix: ... libappimage moby0buildx nim-nightly nim system76-scheduler subatomic * fix blahaj * fix: kondo * fix: libappimage moby-buildx system76-scheduler nim-nightly * fix: subatomic * fix: subatomic * fix: nim * Update anki.spec Signed-off-by: madomado <wboy111@outlook.com> * fix: libappimage nim-nightly * fix: moby-buildx subatomic * fix: moby-buildx subatomic --------- Signed-off-by: madomado <wboy111@outlook.com> Co-authored-by: HTGAzureX1212 <39023054+HTG-YT@users.noreply.github.com>
71 lines
2.7 KiB
RPMSpec
71 lines
2.7 KiB
RPMSpec
Name: anki
|
|
Version: 2.1.65
|
|
Release: 1%{?dist}
|
|
Summary: Flashcard program for using space repetition learning
|
|
License: AGPL-3.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND BSD-3-Clause AND CC-BY-SA-3.0 AND CC-BY-3.0 AND Apache-2.0 AND CC-BY-2.5
|
|
URL: https://apps.ankiweb.net/
|
|
BuildRequires: python3-devel python3-setuptools python3-waitress python3-protobuf python3-pysocks rpm_macro(fdupes)
|
|
BuildRequires: python3-distro python3-flask-cors python3-jsonschema python3-send2trash python3-certifi python3-simplejson
|
|
BuildRequires: python3-installer make mold cargo git rsync ninja-build libxcrypt-compat nodejs python3.9 python-unversioned-command gcc python3-pyqt6-devel python3-pyqt6
|
|
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 python3-qt5-webengine python3-pyqt6
|
|
Recommends: mpv
|
|
Obsoletes: anki <= 2.1.15
|
|
Conflicts: anki-qt5
|
|
Patch0: 0001-No-update.patch
|
|
|
|
%description
|
|
Anki is a program designed to help you remember facts (such as words and
|
|
phrases in a foreign language) as easily, quickly and efficiently as possible.
|
|
Anki is based on a theory called spaced repetition.
|
|
|
|
%prep
|
|
git clone https://github.com/ankitects/anki .
|
|
git checkout %{version}
|
|
%patch 0 -p1
|
|
|
|
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=anki
|
|
|
|
%build
|
|
export RELEASE=1
|
|
export PYTHONPATH=%_libdir/python3/dist-packages
|
|
mold -run ./tools/build
|
|
|
|
|
|
%install
|
|
for file in out/wheels/*.whl; do
|
|
python -m installer --destdir="%{buildroot}" $file
|
|
done
|
|
|
|
install -Dm644 qt/bundle/lin/anki.desktop %{buildroot}/%{_datadir}/applications/anki.desktop
|
|
install -Dm644 qt/bundle/lin/anki.png %{buildroot}/%{_datadir}/pixmaps/anki.png
|
|
|
|
sed "s*^#!/usr/bin/python\$*#!/usr/bin/python3*" %{buildroot}/%{_bindir}/anki > %{buildroot}/%{_bindir}/anki1
|
|
rm %{buildroot}/%{_bindir}/anki
|
|
mv %{buildroot}/%{_bindir}/anki1 %{buildroot}/%{_bindir}/anki
|
|
|
|
find %{buildroot} -iname __pycache__ | xargs -r rm -rf
|
|
find %{buildroot} -iname direct_url.json | xargs -r rm -rf
|
|
|
|
chmod 755 %{buildroot}%{_bindir}/anki
|
|
|
|
%fdupes %_libdir/python*/site-packages/_aqt/data/
|
|
|
|
|
|
%files
|
|
%license LICENSE*
|
|
%doc README*
|
|
%{_bindir}/anki
|
|
%{_datadir}/applications/anki.desktop
|
|
%{_datadir}/pixmaps/anki.png
|
|
%_libdir/python*/site-packages/aqt/
|
|
%_libdir/python*/site-packages/aqt-%{version}.dist-info/
|
|
%_libdir/python*/site-packages/_aqt/
|
|
%_libdir/python*/site-packages/anki/
|
|
%_libdir/python*/site-packages/anki-%{version}.dist-info/
|
|
|
|
|
|
%changelog
|
|
* Tue Jan 3 2023 windowsboy111 <windowsboy111@fyralabs.com> - 2.1.60
|
|
- Initial package
|