#
-# Spec file for PACKAGE
-# Copyright (c) YEAR Helmuth Varkoly and Peter Varkoly Nuremberg, Germany. All rights reserved.
+# Spec file for OCS-Inventory-Agent
+# Copyright (c) 2018 Helmuth Varkoly and Peter Varkoly Nuremberg, Germany. All rights reserved.
#
-Name: oss-pkg-PACKAGE
-Summary: Package to install PACKAGE on OSS-Clients
-Version: VERSION
-Release: RELEASE
+Name: oss-pkg-OCS-Inventory-Agent
+Summary: Package to install OCS-Inventory-Agent on OSS-Clients
+Version: 2.0.4.0
+Release: 1
License: GPL-2.0
Vendor: Peter Varkoly and Helmuth Varkoly
Packager: peter@varkoly.de
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
-Package to install PACKAGE on OSS-Clients
+Package to install OCS-Inventory-Agent on OSS-Clients
Authors:
--------
%install
-mkdir -p %{buildroot}/srv/salt/win/repo-ng/PACKAGE
+mkdir -p %{buildroot}/srv/salt/win/repo-ng/OCS-Inventory-Agent
mkdir -p %{buildroot}/srv/salt/packages/
-cp PACKAGE.sls %{buildroot}/srv/salt/packages/
-cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/PACKAGE
+cp OCS-Inventory-Agent.sls %{buildroot}/srv/salt/packages/
+cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/OCS-Inventory-Agent
%clean
rm -rf %{buildroot}
%post
-/usr/sbin/oss_api.sh POST 'softwares/add' '{"name":"PACKAGE","manually":false,"description":"PACKAGE","softwareVersions":[{"version":"VERSION"}]}'
+/usr/sbin/oss_api.sh POST 'softwares/add' '{"name":"OCS-Inventory-Agent","manually":false,"description":"OCS-Inventory-Agent","softwareVersions":[{"version":"2.0.4.0"}]}'
%files
%defattr(644,root,root)
-/srv/salt/win/repo-ng/PACKAGE
-/srv/salt/packages/PACKAGE.sls
+/srv/salt/win/repo-ng/OCS-Inventory-Agent
+/srv/salt/packages/OCS-Inventory-Agent.sls