]> repo.cephalix.eu Git - BlitzrechnenV34.git/commitdiff
fullnames
authorbuildmaster <buildmaster@git.cephalix.eu>
Wed, 31 Oct 2018 18:59:08 +0000 (19:59 +0100)
committerbuildmaster <buildmaster@git.cephalix.eu>
Wed, 31 Oct 2018 18:59:08 +0000 (19:59 +0100)
.gitignore [new file with mode: 0644]
FULLNAMES [new file with mode: 0644]
Makefile
oss-pkg-BlitzrechnenV34.spec.in [moved from oss-pkg-BlitzrechnenV34.spec with 52% similarity]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..7535aa6
--- /dev/null
@@ -0,0 +1 @@
+oss-pkg-BlitzrechnenV34.spec
diff --git a/FULLNAMES b/FULLNAMES
new file mode 100644 (file)
index 0000000..3aab14e
--- /dev/null
+++ b/FULLNAMES
@@ -0,0 +1 @@
+Blitzrechnen
index 50c588a500f799e5cd29f25a870b9e8b40244dbe..a8d4315706d2077c477f3eee9c3d86daf51bca21 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ package:
        sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec
        sed -i s/PACKAGE/$(PACKAGE)/g  oss-pkg-$(PACKAGE).spec
        sed -i s/YEAR/$(YEAR)/g        oss-pkg-$(PACKAGE).spec
+       ../oss-pkg-tools/create_hash.sh $(PACKAGE)
        mkdir -p oss-pkg-$(PACKAGE)
        if [ ! -e $(PACKAGE).sls ];  then cp ../template/template.sls $(PACKAGE).sls; fi
        sed s/PACKAGE/$(PACKAGE)/g  $(PACKAGE).sls > oss-pkg-$(PACKAGE)/$(PACKAGE).sls
similarity index 52%
rename from oss-pkg-BlitzrechnenV34.spec
rename to oss-pkg-BlitzrechnenV34.spec.in
index b371870ff225a8e4de16ce3f52189a59714029be..f844098ce78493d821a22cc9b0eaab2046dd45b1 100644 (file)
@@ -1,12 +1,12 @@
 #
-# Spec file for BlitzrechnenV34
+# Spec file for PACKAGE
 # Copyright (c) 2018 Helmuth Varkoly and Peter Varkoly Nuremberg, Germany.  All rights reserved.
 #
 
-Name:         oss-pkg-BlitzrechnenV34
-Summary:      Package to install BlitzrechnenV34 on OSS-Clients
-Version:      1.21.2
-Release:      2
+Name:         oss-pkg-PACKAGE
+Summary:      Package to install PACKAGE on OSS-Clients
+Version:      VERSION
+Release:      RELEASE
 License:      GPL-2.0
 Vendor:       Peter Varkoly and Helmuth Varkoly
 Packager:     peter@varkoly.de
@@ -21,7 +21,7 @@ PreReq:       %fillup_prereq
 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 
 %description
-Package to install BlitzrechnenV34 on OSS-Clients
+Package to install PACKAGE on OSS-Clients
 
 Authors:
 --------
@@ -36,10 +36,10 @@ Authors:
 
 %install
 
-mkdir -p %{buildroot}/srv/salt/win/repo-ng/BlitzrechnenV34
+mkdir -p %{buildroot}/srv/salt/win/repo-ng/PACKAGE
 mkdir -p %{buildroot}/srv/salt/packages/
-cp BlitzrechnenV34.sls  %{buildroot}/srv/salt/packages/
-cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/BlitzrechnenV34
+cp PACKAGE.sls  %{buildroot}/srv/salt/packages/
+cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/PACKAGE
 
 %clean
 rm -rf %{buildroot}
@@ -48,11 +48,11 @@ rm -rf %{buildroot}
 
 %post
 
-/usr/sbin/oss_api.sh POST 'softwares/add' '{"name":"BlitzrechnenV34","manually":false,"description":"BlitzrechnenV34","softwareVersions":[{"version":"1.21.2"}]}'
+/usr/sbin/oss_api_post_file.sh 'softwares/add' /srv/salt/win/repo-ng/PACKAGE/HASH.json
 
 %files
 %defattr(644,root,root)
-/srv/salt/win/repo-ng/BlitzrechnenV34
-/srv/salt/packages/BlitzrechnenV34.sls
+/srv/salt/win/repo-ng/PACKAGE
+/srv/salt/packages/PACKAGE.sls