annotate bing4desktop/RPM/bing4desktop.spec @ 15:18816a0c1fc2

bing4desktop-0.240206-4
author prymula <prymula76@outlook.com>
date Tue, 06 Feb 2024 19:40:55 +0100
parents 4770f6dca839
children 3b8fd6a7f2d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
1 #
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
2 # spec file for package bing4desktop
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
3 #
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
4 # Copyright (c) 2020 SUSE LLC
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
5 #
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
6 # All modifications and additions to the file contributed by third parties
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
7 # remain the property of their copyright owners, unless otherwise agreed
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
8 # upon. The license for this file, and modifications and additions to the
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
9 # file, is the same license as for the pristine package itself (unless the
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
10 # license for the pristine package is not an Open Source License, in which
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
11 # case the license is the MIT License). An "Open Source License" is a
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
12 # license that conforms to the Open Source Definition (Version 1.9)
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
13 # published by the Open Source Initiative.
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
14
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
15 # Please submit bugfixes or comments via https://bugs.opensuse.org/
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
16 #
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
17
15
18816a0c1fc2 bing4desktop-0.240206-4
prymula <prymula76@outlook.com>
parents: 14
diff changeset
18 %define unmangled_version 0.240206-4
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
19 Name: bing4desktop
11
c01d7edb9cb9 bing4desktop-0.240206-0
prymula <prymula76@outlook.com>
parents: 10
diff changeset
20 Version: 0.240206
15
18816a0c1fc2 bing4desktop-0.240206-4
prymula <prymula76@outlook.com>
parents: 14
diff changeset
21 Release: 4
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
22 Summary: Beautify your desktop with photos from Bing search engine
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
23 License: Public Domain
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
24 URL: https://prymula.ct8.pl
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
25 Source0: %{name}-%{unmangled_version}.tar.gz
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
26 %if 0%{?suse_version}>=150000
15
18816a0c1fc2 bing4desktop-0.240206-4
prymula <prymula76@outlook.com>
parents: 14
diff changeset
27 BuildRequires: python3, python-Pillow, python3-requests, python3-tk
18816a0c1fc2 bing4desktop-0.240206-4
prymula <prymula76@outlook.com>
parents: 14
diff changeset
28 Requires: python3, python-Pillow, python3-requests, python3-tk
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
29 %endif
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
30 %if 0%{?fedora}>=36
15
18816a0c1fc2 bing4desktop-0.240206-4
prymula <prymula76@outlook.com>
parents: 14
diff changeset
31 BuildRequires: python3, python3-pillow-tk, python3-requests, python3-tkinter, python3-pystray
18816a0c1fc2 bing4desktop-0.240206-4
prymula <prymula76@outlook.com>
parents: 14
diff changeset
32 Requires: python3, python3-pillow-tk, python3-requests, python3-tkinter, python3-pystray
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
33 %endif
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
34 BuildArch: noarch
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
35
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
36 %description
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
37
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
38 %prep
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
40
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
41 %build
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
42
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
43 %install
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
44
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
45 mkdir -p %{buildroot}/usr
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
46 mkdir -p %{buildroot}/usr/bin
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
47 mkdir -p %{buildroot}/usr/share
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
48 mkdir -p %{buildroot}/usr/share/bing4desktop
13
73fd89b46da4 bing4desktop-0.240206-3
prymula <prymula76@outlook.com>
parents: 11
diff changeset
49 mkdir -p %{buildroot}/usr/share/applications
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
50 mkdir -p %{buildroot}/etc
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
51 mkdir -p %{buildroot}/etc/xdg
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
52 mkdir -p %{buildroot}/etc/xdg/autostart
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
53
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
54
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
55 install -m 0755 bing4desktop.py %{buildroot}/usr/bin
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
56 install -m 0644 bing.ico %{buildroot}/usr/share/bing4desktop
13
73fd89b46da4 bing4desktop-0.240206-3
prymula <prymula76@outlook.com>
parents: 11
diff changeset
57 install -m 0644 bing.png %{buildroot}/usr/share/bing4desktop
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
58 install -m 0644 bing4desktop.desktop %{buildroot}/etc/xdg/autostart
13
73fd89b46da4 bing4desktop-0.240206-3
prymula <prymula76@outlook.com>
parents: 11
diff changeset
59 install -m 0644 bing4desktop.desktop %{buildroot}/usr/share/applications
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
60
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
61 %files
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
62 %defattr(0755,root,root)
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
63 /usr/bin/bing4desktop.py
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
64 /usr/share/bing4desktop/
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
65 %defattr(0644,root,root)
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
66 /usr/share/bing4desktop/bing.ico
13
73fd89b46da4 bing4desktop-0.240206-3
prymula <prymula76@outlook.com>
parents: 11
diff changeset
67 /usr/share/bing4desktop/bing.png
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
68 /etc/xdg/autostart/bing4desktop.desktop
13
73fd89b46da4 bing4desktop-0.240206-3
prymula <prymula76@outlook.com>
parents: 11
diff changeset
69 /usr/share/applications/bing4desktop.desktop
10
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
70
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
71 %changelog
ed9556d0c5d7 bing4desktop-0.240205-4
prymula <prymula76@outlook.com>
parents:
diff changeset
72