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

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:32:14 +0200
parents
children 82b75cc1e524
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/verysimpleslideshow/RPM/verysimpleslideshow.spec	Thu Sep 21 22:32:14 2023 +0200
@@ -0,0 +1,72 @@
+#
+# spec file for package vsss
+#
+# 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.230910-1
+Name:       verysimpleslideshow
+Version:	0.230910
+Release:    1
+Summary:	CLI script for creating slideshows 
+License:	Public Domain
+URL:		https://prymula.ct8.pl
+Source0:	%{name}-%{unmangled_version}.tar.gz
+%if 0%{?suse_version}>=150000
+BuildRequires:	python3
+Requires:       python3, ffmpeg
+%endif
+%if 0%{?fedora}>=36
+BuildRequires:	python3
+Requires:		python3, ffmpeg
+%endif
+BuildArch:	noarch
+
+%description
+
+
+%prep
+%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
+rm -f %{_bindir}/vsss
+
+%post
+%{__ln_s} -f %{_bindir}/verysimpleslideshow.py %{_bindir}/vsss
+
+%postun
+rm -f %{_bindir}/vsss
+
+%build
+
+%install
+
+mkdir -p %{buildroot}/usr
+mkdir -p %{buildroot}/usr/bin
+mkdir -p %{buildroot}/usr/share
+mkdir -p %{buildroot}/usr/share/verysimpleslideshow
+
+
+install -m 0755 verysimpleslideshow.py %{buildroot}/usr/bin
+install -m 0644 CzytajTo %{buildroot}/usr/share/verysimpleslideshow
+
+
+
+%files
+%defattr(0755,root,root)
+/usr/bin/verysimpleslideshow.py
+/usr/share/verysimpleslideshow/
+%defattr(0644,root,root)
+/usr/share/verysimpleslideshow/CzytajTo
+
+%changelog
+