Mercurial > hg > pub > prymula > scripts
diff bing4desktop/RPM/bing4desktop.spec @ 10:ed9556d0c5d7
bing4desktop-0.240205-4
author | prymula <prymula76@outlook.com> |
---|---|
date | Tue, 06 Feb 2024 00:30:36 +0100 |
parents | |
children | c01d7edb9cb9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bing4desktop/RPM/bing4desktop.spec Tue Feb 06 00:30:36 2024 +0100 @@ -0,0 +1,68 @@ +# +# spec file for package bing4desktop +# +# Copyright (c) 2020 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 unmangled_version 0.240205-4 +Name: bing4desktop +Version: 0.240205 +Release: 4 +Summary: Beautify your desktop with photos from Bing search engine +License: Public Domain +URL: https://prymula.ct8.pl +Source0: %{name}-%{unmangled_version}.tar.gz +%if 0%{?suse_version}>=150000 +BuildRequires: python3, python-Pillow, python3-requests +Requires: python3, python-Pillow, python3-requests +%endif +%if 0%{?fedora}>=36 +BuildRequires: python3, python3-pillow-tk, python3-requests +Requires: python3, python3-pillow-tk, python3-requests +%endif +BuildArch: noarch + +%description + +%prep +%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} + +%build + +%install + +mkdir -p %{buildroot}/usr +mkdir -p %{buildroot}/usr/bin +mkdir -p %{buildroot}/usr/share +mkdir -p %{buildroot}/usr/share/bing4desktop +mkdir -p %{buildroot}/etc +mkdir -p %{buildroot}/etc/xdg +mkdir -p %{buildroot}/etc/xdg/autostart + + +install -m 0755 bing4desktop.py %{buildroot}/usr/bin +install -m 0644 bing.ico %{buildroot}/usr/share/bing4desktop +install -m 0644 bing4desktop.desktop %{buildroot}/etc/xdg/autostart + + +%files +%defattr(0755,root,root) +/usr/bin/bing4desktop.py +/usr/share/bing4desktop/ +%defattr(0644,root,root) +/usr/share/bing4desktop/bing.ico +/etc/xdg/autostart/bing4desktop.desktop + +%changelog +