comparison verysimpleslideshow/RPM/verysimpleslideshow.spec @ 0:dcd610585610

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:32:14 +0200
parents
children 82b75cc1e524
comparison
equal deleted inserted replaced
-1:000000000000 0:dcd610585610
1 #
2 # spec file for package vsss
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
18 %define unmangled_version 0.230910-1
19 Name: verysimpleslideshow
20 Version: 0.230910
21 Release: 1
22 Summary: CLI script for creating slideshows
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
28 Requires: python3, ffmpeg
29 %endif
30 %if 0%{?fedora}>=36
31 BuildRequires: python3
32 Requires: python3, ffmpeg
33 %endif
34 BuildArch: noarch
35
36 %description
37
38
39 %prep
40 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
41 rm -f %{_bindir}/vsss
42
43 %post
44 %{__ln_s} -f %{_bindir}/verysimpleslideshow.py %{_bindir}/vsss
45
46 %postun
47 rm -f %{_bindir}/vsss
48
49 %build
50
51 %install
52
53 mkdir -p %{buildroot}/usr
54 mkdir -p %{buildroot}/usr/bin
55 mkdir -p %{buildroot}/usr/share
56 mkdir -p %{buildroot}/usr/share/verysimpleslideshow
57
58
59 install -m 0755 verysimpleslideshow.py %{buildroot}/usr/bin
60 install -m 0644 CzytajTo %{buildroot}/usr/share/verysimpleslideshow
61
62
63
64 %files
65 %defattr(0755,root,root)
66 /usr/bin/verysimpleslideshow.py
67 /usr/share/verysimpleslideshow/
68 %defattr(0644,root,root)
69 /usr/share/verysimpleslideshow/CzytajTo
70
71 %changelog
72