diff --git a/0001-fedora-36-library-path.patch b/0001-fedora-36-library-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..5f852e4b8ea8ea13266637bda7a78c5c2709f054 --- /dev/null +++ b/0001-fedora-36-library-path.patch @@ -0,0 +1,24 @@ +From 21224ca19a7261c0cdff1b519f939aca2acb3459 Mon Sep 17 00:00:00 2001 +From: James Harmison +Date: Wed, 13 Jul 2022 10:58:30 -0400 +Subject: [PATCH] Patch to enable Fedora 36+ to derive the correct library + folder + +--- + dist/azote | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dist/azote b/dist/azote +index 7684782..0859cdc 100755 +--- a/dist/azote ++++ b/dist/azote +@@ -1,5 +1,5 @@ + #!/bin/sh + +-LIB=$(python3 -Ic "from sysconfig import get_path; print(get_path('purelib'))") ++LIB=$(python3 -Ic "from sysconfig import get_path; print(get_path('purelib', scheme='rpm_prefix'))") + cd $LIB/azote + exec /usr/bin/python3 main.py "$@" +-- +2.36.1 + diff --git a/azote-1.9.5.tar.gz b/azote-1.9.7.tar.gz similarity index 49% rename from azote-1.9.5.tar.gz rename to azote-1.9.7.tar.gz index fd93cce6219d2b70fa7245a4f30632ee1f3a16c7..0cb80872fea8742c181f7d1cd177d65fd84de6e6 100644 Binary files a/azote-1.9.5.tar.gz and b/azote-1.9.7.tar.gz differ diff --git a/azote.spec b/azote.spec index 49b4113ad4b30ad9e7a380cbbcffbd753851c2d6..e4ae3dbac1c6e7470ce7e3423491a55282e26527 100644 --- a/azote.spec +++ b/azote.spec @@ -1,5 +1,5 @@ Name: azote -Version: 1.9.5 +Version: 1.9.7 Release: 1 BuildArch: noarch Summary: Wallpaper and color manager for Sway, i3 and some other WMs @@ -10,6 +10,7 @@ License: GPLv3 and BSD URL: https://github.com/nwg-piotr/azote Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: 0001-fedora-36-library-path.patch BuildRequires: desktop-file-utils BuildRequires: python3 @@ -50,6 +51,11 @@ desktop-file-edit --set-icon %{_datadir}/%{name}/%{name}.svg dist/%{name}.deskto install -p -D -m 0644 -t %{buildroot}/%{_datadir}/applications dist/%{name}.desktop install -p -D -m 0644 -t %{buildroot}/%{_datadir}/%{name} dist/*.png dist/*.svg desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop +for lib in %{buildroot}%{python3_sitelib}/%{name}/*.py; do + sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && + touch -r $lib $lib.new && + mv $lib.new $lib +done %files %{python3_sitelib}/%{name}/ @@ -63,6 +69,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %license LICENSE LICENSE-COLORTHIEF %changelog +* Tue Feb 28 2023 li-long315 - 1.9.7-1 +- Upgrade to 1.9.7 + * Tue Aug 02 2022 duyiwei - 1.9.5-1 - init package