diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-11 13:09:19 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-11 13:10:38 +0200 |
commit | e877ec7ccea77f89ffda977cd8ed6fd01d09b12f (patch) | |
tree | 7db4c1b412d92b2eb698d8881dc8d38263a0497b | |
parent | 09bbbe9c07292b7725235212d6ea270bd661c6a1 (diff) |
gapk: fetch/extract 3gpp source in spec file
This avoids the python2 script that fetches the source, and it allows
to properly cache the source download.
Change-Id: Ia50eeee1999c6f41958f0addc31252fc911b8678
-rwxr-xr-x | rpm-local/build.sh | 2 | ||||
-rw-r--r-- | rpm-local/spec/gapk/gapk.spec | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/rpm-local/build.sh b/rpm-local/build.sh index 797dd60..884c325 100755 --- a/rpm-local/build.sh +++ b/rpm-local/build.sh @@ -219,7 +219,7 @@ build_pkg_osmo "osmo-sgsn" build_pkg_osmo "osmo-sip-connector" # Other -build_pkg_osmo "gapk" "gapk" "gapk/0606_421.zip" +build_pkg_osmo "gapk" build_pkg_osmo "osmocom-bb" # needs: libulfius # build_pkg_osmo "osmo-cbc" diff --git a/rpm-local/spec/gapk/gapk.spec b/rpm-local/spec/gapk/gapk.spec index 3f076cc..5048116 100644 --- a/rpm-local/spec/gapk/gapk.spec +++ b/rpm-local/spec/gapk/gapk.spec @@ -28,14 +28,14 @@ Group: Productivity/Multimedia/Sound/Editors and Convertors URL: http://www.osmocom.org Source: gapk-%{version}.tar.xz # License: for libgsmhr see 3gpp website -Source1: 0606_421.zip +Source1: http://www.3gpp.org/ftp/Specs/archive/06_series/06.06/0606-421.zip Patch1: gapk-disable-codec-dl-during-build.diff BuildRequires: autoconf BuildRequires: automake BuildRequires: libgsm-devel BuildRequires: libtool BuildRequires: pkgconfig -BuildRequires: python +BuildRequires: python3 BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(libosmocodec) BuildRequires: pkgconfig(libosmocore) @@ -44,6 +44,7 @@ ExclusiveArch: %{ix86} x86_64 %if 0%{with_amr} BuildRequires: libopencore-amr-devel %endif +BuildRequires: unzip %description gapk is intented to be the GSM Audio Pocket Knife. @@ -97,7 +98,13 @@ library. %setup -q %if 0%{with_gsmhr} %patch1 -p1 -cp %{SOURCE1} libgsmhr/ +cd libgsmhr/ +unzip %{SOURCE1} +unzip DISK.zip +unzip -a -L Dir_C.zip -d refsrc + +# Disable downloading source script +ln -sf /bin/true fetch_sources.py %endif %build |