File opsi-webgui.spec of Package opsi-webgui
Summary: opsi webgui
Name: opsi-webgui
Version: 4.2.23
Release: 1
Group: Productivity/Networking/opsi
License: AGPL-3.0
URL: http://www.opsi.org
Vendor: uib GmbH <info@uib.de>
Packager: uib GmbH <info@uib.de>
Source: opsi-webgui_4.2.23-1.tar.gz
BuildRoot: %{_tmppath}/opsi-webgui-4.2.23-build
BuildArch: noarch
Requires: opsiconfd >= 4.2.0.253
AutoReqProv: no
%description
opsi webgui
%global debug_package %{nil}
%clean
%prep
%setup -n opsi-webgui-4.2.23
%define _build_id_links none
%build
%install
>INSTALLED_FILES
if [ %{_arch} = 'x86_64' ]; then
sys_arch="amd64"
elif [ "%{_arch}" = "i386" ]; then
sys_arch="i586"
elif [ "%{_arch}" = "i386" ]; then
sys_arch="i586"
elif [ "%{_arch}" = "aarch64" ]; then
sys_arch="arm64"
elif [ "%{_arch}" = "noarch" ]; then
sys_arch="all"
fi
for rootfs in rootfs rootfs-${sys_arch}; do
if [ -d ${rootfs} ]; then
find ${rootfs} -type d -print0 | while read -d $'\0' file; do
dst=$(echo $file | sed s"#^${rootfs}##")
[ "$dst" == "" ] && continue
mkdir -p "${RPM_BUILD_ROOT}${dst}"
[ "$dst" == "/usr/bin" -o "$dst" == "/usr/lib" ] && continue
echo "%dir \"${dst}\"" >>INSTALLED_FILES
done
find ${rootfs} -not -type d -print0 | while read -d $'\0' file; do
dst=$(echo $file | sed s"#^${rootfs}##")
cp -a "$file" "${RPM_BUILD_ROOT}${dst}"
if [[ $dst == /etc/logrotate.d/* ]]; then
echo "%config \"${dst}\"" >>INSTALLED_FILES
elif [[ $dst == /etc/* ]]; then
echo "%config(noreplace) \"${dst}\"" >>INSTALLED_FILES
else
echo "\"${dst}\"" >>INSTALLED_FILES
fi
done
fi
done
INSTALLED_FILES="$(echo $INSTALLED_FILES | tr " " "\n" | sort -u)"
cat INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)
%post
echo "OPSI webgui folder '/var/lib/opsiconfd/addons/webgui'"
exit 0
%changelog
* Wed Mar 01 2023 uib GmbH <info@uib.de> 4.2.23-1
- Bugfix: Updated user roles; Fixed issues with data fetching
* Fri Nov 18 2022 uib GmbH <info@uib.de> 4.2.22-1
- No public changes
* Wed Nov 09 2022 uib GmbH <info@uib.de> 4.2.21-1
- Bugfix: Fixed fetch issue in host attributes and parameters.
* Fri Oct 28 2022 uib GmbH <info@uib.de> 4.2.20-1
- Improvement: Added netboot product initial setup on client creation
* Fri Oct 14 2022 uib GmbH <info@uib.de> 4.2.19-1
- No public changes
* Fri Oct 14 2022 uib GmbH <info@uib.de> 4.2.18-1
- Improvement: Added client agent deployment feature to client creation
* Wed Oct 12 2022 uib GmbH <info@uib.de> 4.2.17-1
- Feature: Added OPSI client agent deployment feature.
- Feature: feature: contextmenu for tables
- Feature: Added Update Client feature.
* Fri Oct 07 2022 uib GmbH <info@uib.de> 4.2.16-1
- Feature: Added save feature for host parameters
* Thu Sep 29 2022 uib GmbH <info@uib.de> 4.2.15-1
- Improvement: backend: add client to groups
- Improvement: backend: add get host group ids
- Improvement: backend: add deploy client agent endpoint