Accepting request 708050 from home:plater
Added pre_checkin.sh to remove undistributable scansyn files from the source tarball. OBS-URL: https://build.opensuse.org/request/show/708050 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/csound?expand=0&rev=32
This commit is contained in:
parent
268fb545b1
commit
785341d888
3
csound-6.12.2-distibutable.tar.xz
Normal file
3
csound-6.12.2-distibutable.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b8ec07b486decbd3edcc442554b73befe7972c81e1723047f5c02a2ff9215d30
|
||||
size 20890172
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39f4872b896eb1cbbf596fcacc0f2122fd3e5ebbb5cec14a81b4207d6b8630ff
|
||||
size 26297850
|
@ -1,10 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 5 13:57:01 UTC 2019 - Dave Plater <davejplater@gmail.com>
|
||||
|
||||
- Remove undistributable scansyn files from source.
|
||||
- Relicenced to GPL-2.0-or-later AND BSD-2-Clause, there is one
|
||||
- Added pre_checkin.sh to remove undistributable scansyn files from
|
||||
the source tarball.
|
||||
- Relicenced to GPL-2.0-or-later AND BSD-3-Clause AND PostgreSQL
|
||||
GPL-2.0 or later source file which relicenses the LGPL sources
|
||||
and one BSD 2 clause file.
|
||||
- Added COPYING_gpl2+.txt to licenses.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
14
csound.spec
14
csound.spec
@ -33,12 +33,16 @@ Name: csound
|
||||
Version: 6.12.2
|
||||
Release: 0
|
||||
Summary: Computer Sound Synthesis and Composition Program
|
||||
License: GPL-2.0-or-later AND BSD-2-Clause
|
||||
License: GPL-2.0-or-later AND BSD-3-Clause AND PostgreSQL
|
||||
Group: Productivity/Multimedia/Sound/Utilities
|
||||
Url: http://www.csounds.com
|
||||
Source: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
#Source: https://github.com/%%{name}/%%{name}/archive/%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
|
||||
Source0: %{name}-%{version}-distibutable.tar.xz
|
||||
Source1: README.SUSE
|
||||
Source2: COPYING_gpl2+.txt
|
||||
#Update and remove undistributable files from the sources and repack with this script
|
||||
#Usage = ./pre_checkin.sh
|
||||
Source3: pre_checkin.sh
|
||||
# Default to using pulseaudio instead of portaudio
|
||||
Patch2: csound-6.08-default-pulse.patch
|
||||
# Use xdg-open to open a browser to view the manual
|
||||
@ -80,7 +84,6 @@ Recommends: %{name}-lang
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/')
|
||||
|
||||
%description
|
||||
Csound is a software synthesis program. It is fully modular and
|
||||
supports an unlimited amount of oscillators and filters.
|
||||
@ -138,7 +141,8 @@ sed -i 's:__DATE__:"":' Engine/musmon.c include/version.h Top/main.c
|
||||
# copy readme
|
||||
cp %{SOURCE1} %{SOURCE2} .
|
||||
#These source files are undistributable
|
||||
rm -f Opcodes/scansyn*
|
||||
#rm -f Opcodes/scansyn*
|
||||
head -n 28 util/SDIF/sdif.c > COPYING.PostgreSQL
|
||||
|
||||
%build
|
||||
# Needed to link libbuchla.so
|
||||
@ -182,7 +186,7 @@ rm -rf %{buildroot}root
|
||||
|
||||
%files
|
||||
%doc AUTHORS README.md README.SUSE Release_Notes
|
||||
%license COPYING OOps/LICENCE.random COPYING_gpl2+.txt
|
||||
%license COPYING OOps/LICENCE.random COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||
%{_bindir}/*
|
||||
|
||||
%files -n libcsnd6-%{maj}_%{min}
|
||||
|
22
pre_checkin.sh
Normal file
22
pre_checkin.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#! /bin/bash
|
||||
|
||||
vers=$(cat csound.spec|grep "Version: "|cut -b 17-23)
|
||||
rm -f *.tar.*
|
||||
wget https://github.com/csound/csound/archive/${vers}.tar.gz || exit 1
|
||||
echo "\n\nUnpacking tarball\n"
|
||||
tar -xf ${vers}.tar.gz
|
||||
echo "Removing undistibutable files\n"
|
||||
rm -f csound-${vers}/Opcodes/scansyn*
|
||||
echo "Creating distributable tarball\n"
|
||||
tar -acf csound-${vers}-distibutable.tar.xz csound-${vers}
|
||||
echo "Cleaning up\n"
|
||||
rm -rf csound-${vers} ${vers}.tar.gz
|
||||
if ! test -e ${vers}.tar.gz;
|
||||
then
|
||||
echo "success"
|
||||
osc ar
|
||||
exit 0
|
||||
else
|
||||
echo "error"
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue
Block a user