File openhab4-addons.spec of Package openhab4-addons
#
# spec file for package openhab4-addons
#
# 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 openhab_home %{_datadir}/openhab4
%define openhab_conf %{_sysconfdir}/openhab4
%define openhab_userdata %{_localstatedir}/lib/openhab4
%define openhab_logdir %{_localstatedir}/log/openhab4
Name: openhab4-addons
Version: 4.3.5
Release: 0
Summary: Addon openhab4 addons
License: EPL-1.0
Group: Productivity/Networking/Other
URL: https://www.openhab.org/
#Source0: https://bintray.com/openhab/mvn/download_file?file_path=org/openhab/distro/openhab-addons/%%{version}/openhab-addons-%%{version}.kar
#Source0: https://openhab.jfrog.io/artifactory/libs-release-local/org/openhab/distro/openhab-addons/%%{version}/openhab-addons-%%{version}.kar
Source0: https://github.com/openhab/openhab-distro/releases/download/%{version}/openhab-addons-%{version}.kar
Source99: %{name}-rpmlintrc
BuildRequires: openhab4 = %{version}
Requires: openhab4 = %{version}
BuildArch: noarch
%description
This package includes all openHAB add-ons for optional offline installation.
%prep
#%%setup -q
%build
# no need for build
%install
install -D -m 0664 %{SOURCE0} %{buildroot}%{openhab_home}/addons/openhab-addons-%{version}.kar
%files
%doc
%defattr(-,openhab,openhab,0775)
%{openhab_home}/addons
%changelog