SHA256
1
0
forked from pool/csound

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:
Dave Plater 2019-06-06 09:19:41 +00:00 committed by Git OBS Bridge
parent 268fb545b1
commit 785341d888
5 changed files with 37 additions and 11 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b8ec07b486decbd3edcc442554b73befe7972c81e1723047f5c02a2ff9215d30
size 20890172

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39f4872b896eb1cbbf596fcacc0f2122fd3e5ebbb5cec14a81b4207d6b8630ff
size 26297850

View File

@ -1,10 +1,10 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 5 13:57:01 UTC 2019 - Dave Plater <davejplater@gmail.com> Wed Jun 5 13:57:01 UTC 2019 - Dave Plater <davejplater@gmail.com>
- Remove undistributable scansyn files from source. - Added pre_checkin.sh to remove undistributable scansyn files from
- Relicenced to GPL-2.0-or-later AND BSD-2-Clause, there is one 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 GPL-2.0 or later source file which relicenses the LGPL sources
and one BSD 2 clause file.
- Added COPYING_gpl2+.txt to licenses. - Added COPYING_gpl2+.txt to licenses.
------------------------------------------------------------------- -------------------------------------------------------------------

View File

@ -33,12 +33,16 @@ Name: csound
Version: 6.12.2 Version: 6.12.2
Release: 0 Release: 0
Summary: Computer Sound Synthesis and Composition Program 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 Group: Productivity/Multimedia/Sound/Utilities
Url: http://www.csounds.com 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 Source1: README.SUSE
Source2: COPYING_gpl2+.txt 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 # Default to using pulseaudio instead of portaudio
Patch2: csound-6.08-default-pulse.patch Patch2: csound-6.08-default-pulse.patch
# Use xdg-open to open a browser to view the manual # Use xdg-open to open a browser to view the manual
@ -80,7 +84,6 @@ Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/') %global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/')
%description %description
Csound is a software synthesis program. It is fully modular and Csound is a software synthesis program. It is fully modular and
supports an unlimited amount of oscillators and filters. 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 # copy readme
cp %{SOURCE1} %{SOURCE2} . cp %{SOURCE1} %{SOURCE2} .
#These source files are undistributable #These source files are undistributable
rm -f Opcodes/scansyn* #rm -f Opcodes/scansyn*
head -n 28 util/SDIF/sdif.c > COPYING.PostgreSQL
%build %build
# Needed to link libbuchla.so # Needed to link libbuchla.so
@ -182,7 +186,7 @@ rm -rf %{buildroot}root
%files %files
%doc AUTHORS README.md README.SUSE Release_Notes %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}/* %{_bindir}/*
%files -n libcsnd6-%{maj}_%{min} %files -n libcsnd6-%{maj}_%{min}

22
pre_checkin.sh Normal file
View 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