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
|
11
|
18 %define unmangled_version 0.240206-0
|
10
|
19 Name: bing4desktop
|
11
|
20 Version: 0.240206
|
|
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
|
|
27 BuildRequires: python3, python-Pillow, python3-requests
|
|
28 Requires: python3, python-Pillow, python3-requests
|
|
29 %endif
|
|
30 %if 0%{?fedora}>=36
|
|
31 BuildRequires: python3, python3-pillow-tk, python3-requests
|
|
32 Requires: python3, python3-pillow-tk, python3-requests
|
|
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
|
|
49 mkdir -p %{buildroot}/etc
|
|
50 mkdir -p %{buildroot}/etc/xdg
|
|
51 mkdir -p %{buildroot}/etc/xdg/autostart
|
|
52
|
|
53
|
|
54 install -m 0755 bing4desktop.py %{buildroot}/usr/bin
|
|
55 install -m 0644 bing.ico %{buildroot}/usr/share/bing4desktop
|
|
56 install -m 0644 bing4desktop.desktop %{buildroot}/etc/xdg/autostart
|
|
57
|
|
58
|
|
59 %files
|
|
60 %defattr(0755,root,root)
|
|
61 /usr/bin/bing4desktop.py
|
|
62 /usr/share/bing4desktop/
|
|
63 %defattr(0644,root,root)
|
|
64 /usr/share/bing4desktop/bing.ico
|
|
65 /etc/xdg/autostart/bing4desktop.desktop
|
|
66
|
|
67 %changelog
|
|
68
|