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
+ sed -i s/VERSION/$(VERSION)/g oss-pkg-$(PACKAGE).spec
+ sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec
+ sed -i s/PACKAGE/$(PACKAGE)/g 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
%post
-/usr/sbin/oss_api.sh POST 'softwares/add' '{"name":"PACKAGE","manuell":false,"description":"PACKAGE","softwareVersions":[{"version":"VERSION"}]}'
+/usr/sbin/oss_api.sh POST 'softwares/add' '{"name":"PACKAGE","manually":false,"description":"PACKAGE","softwareVersions":[{"version":"VERSION"}]}'
%files
%defattr(644,root,root)