#2 I need it in F32
Opened 4 years ago by davidva. Modified 4 years ago
https://github.com/UnitedRPMs/ladish master  into  rawhide

Initial build
davidva • 4 years ago  
.gitignore
file added
+8
@@ -0,0 +1,8 @@

+ BUILD/*

+ BUILDROOT/*

+ RPMS/*

+ SPECS/*

+ SRPMS/*

+ *.tar.gz

+ .directory

+ *.rpm

.travis.yml
file added
+16
@@ -0,0 +1,16 @@

+ united-build: 

+ language: generic

+ sudo: required

+ services:

+ - docker

+ script:

+ # ENABLE tne next line and delete add a "#" the next lines; if you want build with mock

+ #- travis_wait 40 docker run --cap-add=SYS_ADMIN davidva/unibuild-26 /bin/sh /urpms -g UnitedRPMs/spotify -s spotify.spec -t fedora-26-x86_64

+ - docker run -v $(pwd):/root/enjoy --cap-add=SYS_ADMIN davidva/unibuild-32 /bin/sh -c "rm -f urpms && wget -c https://raw.githubusercontent.com/kuboosoft/united-build/master/urpms && chmod a+x urpms && /urpms -g UnitedRPMs/ladish -s ladish.spec -r true -d 'dist .fc32' -u true"

+ notifications:

+   webhooks:

+     urls:

+       - https://webhooks.gitter.im/e/8bbc656ea277114ba4fd

+     on_success: always  # options: [always|never|change] default: always

+     on_failure: always  # options: [always|never|change] default: always

+     on_start: never     # options: [always|never|change] default: always

57e8a93ae048dc460b6a4d0e8237768b5ef1d45e.patch
file added
+22
@@ -0,0 +1,22 @@

+ From 57e8a93ae048dc460b6a4d0e8237768b5ef1d45e Mon Sep 17 00:00:00 2001

+ From: David Friberg <dfriberg23@gmail.com>

+ Date: Thu, 14 Mar 2019 10:21:46 -0500

+ Subject: [PATCH] Use -Wno-implicit-fallthrough

+ 

+ ---

+  wscript | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/wscript b/wscript

+ index f95fdb4a..11472038 100644

+ --- a/wscript

+ +++ b/wscript

+ @@ -220,7 +220,7 @@ def configure(conf):

+  

+      conf.env['BUILD_WERROR'] = not RELEASE

+      add_cflag(conf, '-Wall')

+ -    add_cflag(conf, '-Wimplicit-fallthrough=0')

+ +    add_cflag(conf, '-Wno-implicit-fallthrough')

+      add_cflag(conf, '--warn-no-restrict')

+      # lash_wrap code is generated by swig and causes warnings

+      if not conf.env['BUILD_PYLASH']:

README.md
file modified
+5 -1
@@ -1,1 +1,5 @@

- # ladish 

\ No newline at end of file

+ # ladish

+ 

+ [![Build Status](https://travis-ci.org/UnitedRPMs/ladish.svg?branch=master)](https://travis-ci.org/UnitedRPMs/ladish)

+ 

+ LADI Audio session handler

adab42244350e2d57784743ea1ac286ce76ed3cd.patch
file added
+22
@@ -0,0 +1,22 @@

+ From adab42244350e2d57784743ea1ac286ce76ed3cd Mon Sep 17 00:00:00 2001

+ From: David Friberg <dfriberg23@gmail.com>

+ Date: Wed, 13 Mar 2019 18:47:20 -0500

+ Subject: [PATCH] Fix build for gcc 8.2.1

+ 

+ ---

+  wscript | 2 ++

+  1 file changed, 2 insertions(+)

+ 

+ diff --git a/wscript b/wscript

+ index a7594716..f95fdb4a 100644

+ --- a/wscript

+ +++ b/wscript

+ @@ -220,6 +220,8 @@ def configure(conf):

+  

+      conf.env['BUILD_WERROR'] = not RELEASE

+      add_cflag(conf, '-Wall')

+ +    add_cflag(conf, '-Wimplicit-fallthrough=0')

+ +    add_cflag(conf, '--warn-no-restrict')

+      # lash_wrap code is generated by swig and causes warnings

+      if not conf.env['BUILD_PYLASH']:

+         add_cflag(conf, '-Wextra')

handle-aarch64.patch
file added
+13
@@ -0,0 +1,13 @@

+ Index: ladish-2/daemon/siginfo.c

+ ===================================================================

+ --- ladish-2.orig/daemon/siginfo.c

+ +++ ladish-2/daemon/siginfo.c

+ @@ -58,7 +58,7 @@

+  

+  #define SIGINFO_MAX_BT_FRAMES 20

+  

+ -#if defined(SA_SIGINFO) && !defined(__arm__) && !defined(__ia64__) && !defined(__alpha__) && !defined (__FreeBSD_kernel__) && !defined (__sh__) && !defined(__APPLE__)

+ +#if defined(SA_SIGINFO) && !defined(__arm__) && !defined(__ia64__) && !defined(__alpha__) && !defined (__FreeBSD_kernel__) && !defined (__sh__) && !defined(__APPLE__) && !defined(__aarch64__)

+  # define USE_UCONTEXT

+  # include <ucontext.h>

+  #endif

ladish-1-desktop.patch
file added
+20
@@ -0,0 +1,20 @@

+ diff -Nurp ladish-1.orig/gui/gladish.desktop ladish-1/gui/gladish.desktop

+ --- ladish-1.orig/gui/gladish.desktop	2011-10-02 01:17:45.000000000 +0200

+ +++ ladish-1/gui/gladish.desktop	2012-03-07 14:23:10.758786147 +0100

+ @@ -1,10 +1,5 @@

+  [Desktop Entry]

+  Name=gladish

+ -Comment=LADI Session Handler

+ -Comment[fr]=Gestionnaire de session LADI

+ -Comment[pt]=Gerenciador de Sessões LADI

+ -Comment[pt_BR]=Gerenciador de Sessões LADI

+ -Comment[ru]=Управление сеансами LADI

+  GenericName=LADI Session Handler

+  GenericName[fr]=Gestionnaire de session LADI

+  GenericName[pt]=Gerenciador de Sessões LADI

+ @@ -14,4 +9,4 @@ Type=Application

+  Terminal=false

+  Exec=gladish

+  Icon=gladish

+ -Categories=AudioVideo;Audio;GNOME;

+ +Categories=AudioVideo;Audio;GNOME;GTK;X-Jack;

ladish.spec
file added
+202
@@ -0,0 +1,202 @@

+ %filter_from_requires /.*libalsapid.so*/d

+ %filter_setup

+ 

+ %global commit0 5fe205f2dc5931854a1126ca50bf682eca959430

+ %global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

+ %global gver .git%{shortcommit0}

+ 

+ Name:          ladish

+ Summary:       LADI Audio session handler

+ Version:       2

+ Release:       21%{?gver}%{dist}

+ License:       GPLv2+

+ Group:         Applications/Multimedia

+ URL:           http://ladish.org/

+ 

+ Source0:       https://github.com/LADI/ladish/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz

+ 

+ # clean up desktop files

+ Patch0:        ladish-1-desktop.patch

+ # NOTE - this will be need to reviewed each version release due to 

+ # non numeric version number in wscript

+ Patch1:        handle-aarch64.patch

+ 

+ Patch2:        adab42244350e2d57784743ea1ac286ce76ed3cd.patch

+ Patch3:        57e8a93ae048dc460b6a4d0e8237768b5ef1d45e.patch

+ 

+ Requires:      laditools

+ Requires:      pygtk2

+ Requires:      dbus

+ BuildRequires: pkgconfig(python3)

+ BuildRequires: desktop-file-utils

+ BuildRequires: jack-audio-connection-kit-devel

+ BuildRequires: alsa-lib-devel

+ BuildRequires: libuuid-devel

+ BuildRequires: dbus-devel

+ BuildRequires: expat-devel

+ BuildRequires: gtk2-devel

+ BuildRequires: dbus-glib-devel

+ BuildRequires: boost-devel

+ BuildRequires: flowcanvas-devel

+ BuildRequires: pygtk2-devel

+ BuildRequires: python3-pyyaml

+ BuildRequires: gcc-c++

+ 

+ %description

+ Session management system for JACK applications on GNU/Linux. Its aim

+ is to have many different audio programs running at once, to save their

+ setup, close them down and then easily reload the setup at some other

+ time. ladish doesn't deal with any kind of audio or MIDI data itself;

+ it just runs programs, deals with saving/loading (arbitrary) data and

+ connects JACK ports together.

+ Ladish has a GUI frontend called gladish, based on lpatchage (LADI Patchage)

+ and the ladish_control command line app for headless operation.

+ 

+ %package -n gladish

+ Summary:    GTK ladish front end

+ Requires:   %{name}%{_isa} = %{version}-%{release}

+ 

+ %description -n gladish

+ A suite of tools to configure and control the Jack Audio Connection Kit.

+ Laditools contains laditray, a tray icon control tool for Jack D-Bus.

+ This package is mandatory for installing the LADI Audio Session Handler.

+ 

+ %prep

+ %autosetup -n %{name}-%{commit0} -p1

+ 

+ # remove bundled libs

+ sed -i -e "s|'-fvisibility=hidden')|\['-fvisibility=hidden'\]+'%{optflags} -fno-tree-pta'.split(' '))|"\

+        -e "s|\['PREFIX'\]), 'lib')|\['PREFIX'\]), '%{_libdir}')|" wscript

+ # gcc7 throws warnings on glibmm-2.4 headers. The -Werror turns these into errors.

+ # This can be removed if/when there is an update on the glibmm-2.4 package:

+ sed -i "/add_cflag(conf, '-Werror')/d" wscript

+ # move preloaded lib out of LD path

+ sed -i -e "s|libalsapid.so|%{_libdir}\/ladish\/libalsapid.so|" daemon/loader.c

+ 

+ # Python2 fixes (nop, python3 isn't ready)

+ sed -i 's|/usr/bin/env python|/usr/bin/python2|g' $PWD/waf

+ sed -i 's|/usr/bin/env python|/usr/bin/python2|g' $PWD/ladish_control

+ sed -i 's|/usr/bin/env python|/usr/bin/python2|g' $PWD/wscript

+ 

+ %build

+ 

+ # Python2 fixes (nop, python3 isn't ready)

+ find -depth -type f -writable -name "*.py" -exec sed -iE '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} +

+ 

+ /usr/bin/python2 ./waf configure --prefix=%{_prefix} -v

+ LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -fno-tree-pta" ./waf -v

+ 

+ %install

+ /usr/bin/python2 ./waf install --destdir=%{buildroot}

+ # move lib out of LDPATH

+ mkdir  %{buildroot}/%{_libdir}/%{name}

+ mv %{buildroot}%{_libdir}/libalsapid.so   %{buildroot}/%{_libdir}/%{name}/

+ 

+ sed -i 's|/usr/bin/env python|/usr/bin/python2|g' %{buildroot}/%{_bindir}/ladish_control

+ 

+ %find_lang %{name}

+ 

+ %check

+ desktop-file-validate %{buildroot}%{_datadir}/applications/gladish.desktop || :

+ 

+ %files -f %{name}.lang

+ %doc README AUTHORS COPYING NEWS

+ %{_bindir}/ladishd

+ %{_bindir}/jmcore

+ %{_bindir}/ladiconfd

+ %{_bindir}/ladish_control

+ %{_libdir}/%{name}

+ %{_datadir}/%{name}

+ %{_datadir}/dbus-1/services/org.%{name}.service

+ %{_datadir}/dbus-1/services/org.%{name}.conf.service

+ %{_datadir}/dbus-1/services/org.%{name}.jmcore.service

+ 

+ %files -n gladish

+ %{_datadir}/applications/gladish.desktop

+ %{_bindir}/gladish

+ %{_datadir}/icons/hicolor/*/apps/gladish.png

+ 

+ %changelog

+ 

+ * Tue Dec 10 2019 David Va <davidva AT tuta DOT io> - 2-21.git5fe205f

+ - Not a movie, contrary to popular opinion. The magic is here!

+ 

+ * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2-20.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2-19.3.gitfcb16ae

+ - Remove obsolete scriptlets

+ 

+ * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-18.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

+ 

+ * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-17.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 2-16.3.gitfcb16ae

+ - Rebuild due to bug in RPM (RHBZ #1468476)

+ 

+ * Wed Feb 15 2017 Orcan Ogetbil <oget [dot] fedora [at] gmail [dot] com> - 2-15.3.gitfcb16ae

+ - Removed -Werror from the build flags (due to stringent gcc7 warnings)

+ 

+ * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-14.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2-13.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Thu Jan 21 2016 Jonathan Wakely <jwakely@redhat.com> - 2-12.3.gitfcb16ae

+ - Rebuilt for Boost 1.60

+ 

+ * Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 2-11.3.gitfcb16ae

+ - Rebuilt for Boost 1.59

+ 

+ * Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-10.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159

+ 

+ * Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 2-9.3.gitfcb16ae

+ - rebuild for Boost 1.58

+ 

+ * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-8.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

+ 

+ * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2-7.3.gitfcb16ae

+ - Rebuilt for GCC 5 C++11 ABI change

+ 

+ * Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 2-6.3.gitfcb16ae

+ - Rebuild for boost 1.57.0

+ 

+ * Tue Sep 09 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2-5.3.gitfcb16ae

+ - handle AArch64 in same way as lot of other architectures

+ 

+ * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-4.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

+ 

+ * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2-3.3.gitfcb16ae

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

+ 

+ * Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 2-2.3.gitfcb16ae

+ - Rebuild for boost 1.55.0

+ 

+ * Thu Oct 10 2013 Brendan Jones <brendan.jones.it@gmail.com> 2-1.3.gitfcb16ae

+ - Filter libalsapid.so from requires

+ 

+ * Tue Oct 08 2013 Brendan Jones <brendan.jones.it@gmail.com> 2-1.2.gitfcb16ae

+ - Hardcode libalsapid.so location 

+ - add BR dbus

+ - validate desktop file

+ 

+ * Fri Jun 28 2013 Brendan Jones <brendan.jones.it@gmail.com> 2-1.1.gitfcb16ae

+ - Update to latest git

+ 

+ * Sun Oct 28 2012 Brendan Jones <brendan.jones.it@gmail.com> 2-0.3.git2c3c3f0

+ - Move private library out of LDPATH

+ 

+ * Fri Oct 12 2012 Brendan Jones <brendan.jones.it@gmail.com> 2-0.2.git2c3c3f0

+ - Update git revision

+ 

+ * Sun Jun 03 2012 Brendan Jones <brendan.jones.it@gmail.com> 2-0.1.git49eca11

+ - Update to latest git snapshot

+ 

+ * Tue Mar 06 2012 Brendan Jones <brendan.jones.it@gmail.com> 1-1

+ - initial build