File fb-tools.spec of Package fb-tools

#
# spec file for package fb-tools
#
# Copyright (c) 2024 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/
#


Name:           fb-tools
Version:        0.40
Release:        0
Summary:        Fritz!Box Script für die Konsole
License:        GPL-3.0-or-later
URL:            https://www.mengelke.de/Projekte/FritzBox-Tools
Source0:        https://www.mengelke.de/Projekte/FritzBox;fb_tools.txz?17141394431f51040793b459c4ed4c8387620b315b#/%{name}-%{version}.tar.xz
Requires:       php8
Requires:       php8-cli
Requires:       php8-openssl
Requires:       php8-zlib
# recheck this one
Recommends:     openssl
Recommends:     php8-bz2
Recommends:     php8-mysql
Recommends:     php8-sqlite
BuildArch:      noarch

%description
Fritz!Box PHP-Script für die Konsole Konfig auslesen, manipulieren und
entschlüsseln, SmartHome Aktoren steuern und auslesen, Diverse Informationen
aus der Fritz!Box auslesen

%prep
%autosetup -p1 -c

%build
# nothing to do here

%install
install -dm0755 %{buildroot}%{_datadir}/fb_tools/plugins %{buildroot}%{_bindir}
install -m0755 fb_tools.php %{buildroot}%{_datadir}/fb_tools
install -m0644 fb_config.php %{buildroot}%{_datadir}/fb_tools
install -m0644 plugins/* %{buildroot}%{_datadir}/fb_tools/plugins
pushd %{buildroot}%{_bindir}
ln -s %{_datadir}/fb_tools/fb_tools.php fb_tools
popd

%check
# nothing to do here

%files
%doc history.txt
%{_bindir}/fb_tools
%{_datadir}/fb_tools

%changelog
openSUSE Build Service is sponsored by