From 4b0c10fc81ac2ffe54276d2d7a1d48ecc3463b7d Mon Sep 17 00:00:00 2001 From: buildmaster Date: Thu, 20 Sep 2018 09:24:45 +0200 Subject: [PATCH] Adapt makefile and .gitignore --- .gitignore | 1 + Makefile | 3 +-- oss-pkg-Audacity.spec | 58 ------------------------------------------- 3 files changed, 2 insertions(+), 60 deletions(-) create mode 100644 .gitignore delete mode 100644 oss-pkg-Audacity.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81ef786 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +oss-pkg-Audacity.spec diff --git a/Makefile b/Makefile index 68bafd5..fc166cc 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,7 @@ YEAR = $(shell date +%Y ) package: - if [ ! -e oss-pkg-$(PACKAGE).spec ]; then cp ../template/package.spec oss-pkg-$(PACKAGE).spec; fi - sed -i s/VERSION/$(VERSION)/g oss-pkg-$(PACKAGE).spec + 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 diff --git a/oss-pkg-Audacity.spec b/oss-pkg-Audacity.spec deleted file mode 100644 index 306fdc9..0000000 --- a/oss-pkg-Audacity.spec +++ /dev/null @@ -1,58 +0,0 @@ -# -# Spec file for Audacity -# Copyright (c) 2018 Helmuth Varkoly and Peter Varkoly Nuremberg, Germany. All rights reserved. -# - -Name: oss-pkg-Audacity -Summary: Package to install Audacity on OSS-Clients -Version: 2.2.22.2.2 -Release: 2 -License: GPL-2.0 -Vendor: Peter Varkoly and Helmuth Varkoly -Packager: peter@varkoly.de -Group: Productivity/ -Source: %{name}.tar.bz2 -BuildArch: noarch -BuildRequires:unzip -#Requires: -Requires: filesystem -PreReq: salt-master -PreReq: %fillup_prereq -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%description -Package to install Audacity on OSS-Clients - -Authors: --------- - helmuth@varkoly.de - peter@varkoly.de - - -%prep -%setup -n %{name} - -%build - -%install - -mkdir -p %{buildroot}/srv/salt/win/repo-ng/Audacity -mkdir -p %{buildroot}/srv/salt/packages/ -cp Audacity.sls %{buildroot}/srv/salt/packages/ -cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/Audacity - -%clean -rm -rf %{buildroot} - -%pre - -%post - -/usr/sbin/oss_api.sh POST 'softwares/add' '{"name":"Audacity","manually":false,"description":"Audacity","softwareVersions":[{"version":"2.2.22.2.2"}]}' - -%files -%defattr(644,root,root) -/srv/salt/win/repo-ng/Audacity -/srv/salt/packages/Audacity.sls - - -- 2.43.0