]> repo.cephalix.eu Git - LibreOffice.git/commitdiff
Initial version.
authorPeter Varkoly <varkoly@suse.de>
Wed, 26 Jul 2017 13:08:56 +0000 (15:08 +0200)
committerPeter Varkoly <varkoly@suse.de>
Wed, 26 Jul 2017 13:08:56 +0000 (15:08 +0200)
LibreOffice.sls [new file with mode: 0644]
Makefile [new file with mode: 0644]
RELEASE [new file with mode: 0644]
VERSION [new file with mode: 0644]
repo-ng/LibreOffice_5.2.7_Win_x64.msi [new file with mode: 0755]
repo-ng/LibreOffice_5.2.7_Win_x86.msi [new file with mode: 0755]
repo-ng/init.sls [new file with mode: 0755]

diff --git a/LibreOffice.sls b/LibreOffice.sls
new file mode 100644 (file)
index 0000000..0367b1d
--- /dev/null
@@ -0,0 +1,14 @@
+###############################################################################
+# SLS: LibreOffice
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authos:               Helmuth Varkoly
+#
+# Description:          SLS to use with OSS's softwaremanagement              
+###############################################################################
+
+LibreOffice:
+  pkg:
+    - installed
+    
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4f7bda1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+PACKAGE         = $(shell basename `pwd` )
+DESTDIR         = /
+REPO            = /srv/www/repo/TESTING/oss-packages/
+VERSION         = $(shell cat VERSION )
+RELEASE         = $(shell cat RELEASE )
+NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
+
+
+package:
+       cp packages.spec.in oss-pkg-$(PACKAGE).spec
+       sed -i s/VERSION/$(VERSION)/  oss-pkg-$(PACKAGE).spec
+       sed -i s/RELEASE/$(NRELEASE)/ oss-pkg-$(PACKAGE).spec
+       sed -i s/PACKAGE/$(PACKAGE)/  oss-pkg-$(PACKAGE).spec
+       mkdir -p oss-pkg-$(PACKAGE)
+       ln -s ../$(PACKAGE).sls oss-pkg-$(PACKAGE)/$(PACKAGE).sls
+       if [ -d repo-ng ]; then ln -s ../repo-ng/ oss-pkg-$(PACKAGE)/repo-ng; fi
+       tar hjcvpf oss-pkg-$(PACKAGE).tar.bz2 oss-pkg-$(PACKAGE)  
+       rm -rf oss-pkg-$(PACKAGE)
+       mv  oss-pkg-$(PACKAGE).tar.bz2  /usr/src/packages/SOURCES/
+       rpmbuild -bb oss-pkg-$(PACKAGE).spec
+       #I have to learn it
+       #rpm --addsign /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm 
+       mv /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch
+       createrepo $(REPO)
+       #I have to learn it
+       #gpg -a --detach-sign $(REPO)/repodata/repomd.xml
+       echo $(NRELEASE) > RELEASE
+       git commit -a -m "New release"
+       git push
+
+
diff --git a/RELEASE b/RELEASE
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
+++ b/RELEASE
@@ -0,0 +1 @@
+1
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+1
diff --git a/repo-ng/LibreOffice_5.2.7_Win_x64.msi b/repo-ng/LibreOffice_5.2.7_Win_x64.msi
new file mode 100755 (executable)
index 0000000..d5e9755
Binary files /dev/null and b/repo-ng/LibreOffice_5.2.7_Win_x64.msi differ
diff --git a/repo-ng/LibreOffice_5.2.7_Win_x86.msi b/repo-ng/LibreOffice_5.2.7_Win_x86.msi
new file mode 100755 (executable)
index 0000000..d7ac470
Binary files /dev/null and b/repo-ng/LibreOffice_5.2.7_Win_x86.msi differ
diff --git a/repo-ng/init.sls b/repo-ng/init.sls
new file mode 100755 (executable)
index 0000000..fbf5330
--- /dev/null
@@ -0,0 +1,34 @@
+###############################################################################
+# SLS: Libre Office
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authors:              Helmuth Varkoly
+#
+# Description:          Package SLS
+###############################################################################
+
+{% if grains['cpuarch'] == 'AMD64' %}
+{% set ARCH = "x64" %}
+{% else %}
+{% set ARCH = "x86" %}
+{% endif %}
+
+{% set LOG_PATH = salt['grains.get']('SALT_TMP_LOG') %}
+
+LibreOffice:
+  '5.2.7.2':
+    {% if ARCH == 'x64' %}
+    installer: salt://win/repo-ng/LibreOffice/LibreOffice_5.2.7_Win_x64.msi
+    uninstaller: salt://win/repo-ng/LibreOffice/LibreOffice_5.2.7_Win_x64.msi
+    {% else %}
+    installer: salt://win/repo-ng/LibreOffice/LibreOffice_5.2.7_Win_x86.msi
+    uninstaller: salt://win/repo-ng/LibreOffice/LibreOffice_5.2.7_Win_x86.msi
+    {% endif %}
+    full_name: 'LibreOffice 5.2.7.2'
+    install_flags: '/quiet /log "{{ LOG_PATH }}LibreOffice_inst.log"'
+    uninstall_flags: '/quiet /log "{{ LOG_PATH }}LibreOffice_uninst.log"'
+    msiexec: True
+    locale: de_DE
+    reboot: False
+    cache_dir: False