-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
466 changed files
with
5,158 additions
and
1,335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Release: 1%{?dist} | |
Summary: Flashcard program for using space repetition learning (Installed with wheel) | ||
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-installer python3.11 rpm_macro(fdupes) | ||
BuildRequires: python3-pip rpm_macro(fdupes) | ||
Requires: python3-sqlalchemy python3-simplejson python3-matplotlib python3-decorator python3-markdown python3-orjson | ||
Requires: python3-requests python3-pygame python3-beautifulsoup4 python3-httplib2 python3-pyaudio python3-jsonschema | ||
Requires: python3-flask-cors python3-protobuf python3-requests python3-waitress python3-pyqt6-webengine python3-send2trash | ||
|
@@ -29,28 +29,33 @@ Anki is based on a theory called spaced repetition. | |
%build | ||
|
||
%install | ||
python3.11 -m installer --destdir="%{buildroot}" %{SOURCE0} | ||
python3.11 -m installer --destdir="%{buildroot}" %{SOURCE1} | ||
pip3 install --root=%{buildroot} %SOURCE0 %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" | ||
|
||
%fdupes %_libdir/python*/site-packages/_aqt/data/ | ||
cp -r %buildroot%_libdir/python3*/site-packages/{_aqt,anki*,aqt*} . | ||
rm -rf %buildroot{%_libdir,/usr/lib}/python3*/site-packages/* | ||
cp -r ./{_aqt,anki*,aqt*} %buildroot/usr/lib/python3*/site-packages/ | ||
|
||
rm -rf %buildroot%_bindir/{distro,flask,jsonschema,markdown_py,normalizer,send2trash,waitress-serve} | ||
|
||
%fdupes %buildroot%_libdir/python*/site-packages/_aqt/data/ | ||
|
||
|
||
%files | ||
%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 | ||
%_bindir/anki | ||
/usr/lib/python*/site-packages/_aqt/ | ||
/usr/lib/python*/site-packages/anki-%{version}.dist-info/ | ||
/usr/lib/python*/site-packages/anki/ | ||
/usr/lib/python*/site-packages/aqt-%{version}.dist-info/ | ||
/usr/lib/python*/site-packages/aqt/ | ||
%_datadir/applications/anki.desktop | ||
%_datadir/pixmaps/anki.png | ||
|
||
%changelog | ||
* Fri Nov 10 2023 hazel-bunny <[email protected]> - 23.10-2 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "rust-sccache.spec" | ||
} | ||
} |
Oops, something went wrong.