File webapp-manager.spec of Package webapp-manager
#
# spec file for package webapp-manager
#
# 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: webapp-manager
Version: 1.3.7
Release: 0
License: GPL-3.0-or-later
Summary: Web Application Manager
URL: https://github.com/linuxmint/webapp-manager
Source: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: sed
BuildRequires: make
%if %{defined suse_version}
Requires: gettext-runtime
%endif
%if %{defined fedora}
Requires: gettext
BuildRequires: python3-devel
BuildRequires: desktop-file-utils
BuildRequires: perl-Locale-Msgfmt
%endif
Requires: dconf
Requires: python3
Requires: python3-beautifulsoup4
Requires: python3-configobj
Requires: python3-gobject
Requires: python3-setproctitle
Requires: python3-tldextract
%if %{defined suse_version}
Requires: python3-Pillow
Requires: xapp-common
%endif
%if %{defined fedora}
Requires: python3-pillow
Requires: xapps
%endif
%description
Launch websites as if they were apps.
%prep
# Extract tar archive
%setup -q
# Set version in About dialog
sed -i "s/__DEB_VERSION__/%{version}/g" \
"usr/lib/%{name}/%{name}.py"
# Fix license path
sed -i 's|common-licenses/GPL|licenses/webapp-manager/LICENSE|g' \
"usr/lib/%{name}/%{name}.py"
%build
make
%install
cp -r etc usr "%{buildroot}"
%find_lang %{name}
%check
%files -f %{name}.lang
%{_bindir}/%{name}
/usr/lib/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/kde4
%{_datadir}/applications/%{name}.desktop
%{_datadir}/desktop-directories
%{_datadir}/glib-2.0
%{_datadir}/icons/hicolor
%dir /etc/xdg/menus
%dir /etc/xdg/menus/applications-merged
%config /etc/xdg/menus/applications-merged/webapps.menu
%license LICENSE
# Localizations:
%dir %{_datadir}/locale/**
%dir %{_datadir}/locale/**/LC_MESSAGES
%changelog