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