]> repo.cephalix.eu Git - GeoGebra.git/commitdiff
fullnames
authorbuildmaster <buildmaster@git.cephalix.eu>
Mon, 5 Nov 2018 16:04:13 +0000 (17:04 +0100)
committerbuildmaster <buildmaster@git.cephalix.eu>
Mon, 5 Nov 2018 16:04:13 +0000 (17:04 +0100)
FULLNAMES [new file with mode: 0644]
Makefile
oss-pkg-GeoGebra.spec.in

diff --git a/FULLNAMES b/FULLNAMES
new file mode 100644 (file)
index 0000000..e47bdbb
--- /dev/null
+++ b/FULLNAMES
@@ -0,0 +1 @@
+GeoGebra 5
index fc166cc7d169157b4da4f61f01246510f6906b99..8ae6875c83ad5215bf971ef6ff5c45c9b040620c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,20 +6,20 @@ RELEASE         = $(shell cat RELEASE )
 NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
 YEAR           = $(shell date +%Y )
 
-
 package:
        sed    s/VERSION/$(VERSION)/g  oss-pkg-$(PACKAGE).spec.in > oss-pkg-$(PACKAGE).spec
        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
        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
+       for i in $(REPO)/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-*.rpm; do test -e $$i && rm $$i; done 
        mv /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch
        echo $(NRELEASE) > RELEASE
        git commit -a -m "New release"
index 079b12d8ea16b4a57df1da3b1ad4fcf2999e9070..cd3e3f74e3b4a84dffd7a18de967e6f8c9d93930 100644 (file)
@@ -48,7 +48,7 @@ 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_post_file.sh 'softwares/add' /srv/salt/win/repo-ng/PACKAGE/HASH.json
 
 %files
 %defattr(644,root,root)