view verysimpleslideshow/RPM/verysimpleslideshow.spec @ 1:82b75cc1e524

postagelabels-0.220120-0.1
author prymula <prymula76@outlook.com>
date Wed, 31 Jan 2024 16:45:19 +0100
parents dcd610585610
children 4bdac9bd90cc
line wrap: on
line source

#
# 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.230913-0
Name:       verysimpleslideshow
Version:	0.230913
Release:    0
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