2015-12-14 09:57:20 +01:00
|
|
|
#
|
2015-12-14 10:47:13 +01:00
|
|
|
# spec file for package buzztrax
|
2015-12-14 09:57:20 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define gir gobject-introspection-1.0
|
2015-12-14 10:47:13 +01:00
|
|
|
%define gstreamer_pluginsdir %(pkg-config --variable=pluginsdir gstreamer-1.0)
|
2015-12-14 13:43:52 +01:00
|
|
|
%define girdir %{_datadir}/gir
|
2015-12-14 09:57:20 +01:00
|
|
|
%define typelibdir %(pkg-config --variable=typelibdir %{gir})
|
2015-12-14 13:43:52 +01:00
|
|
|
%define core_soname 1
|
|
|
|
%define ic_soname 1
|
|
|
|
%define girsoname 1.1
|
|
|
|
%define gst_soname 1
|
|
|
|
%define bml_soname 1
|
2015-12-14 09:57:20 +01:00
|
|
|
|
|
|
|
Name: buzztrax
|
|
|
|
Version: 0.9.0
|
|
|
|
Release: 0
|
|
|
|
Summary: A music studio inspired by Buzz
|
|
|
|
License: LGPL-2.0
|
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2015-12-14 10:47:13 +01:00
|
|
|
Url: http:http://sourceforge.net/projects/buzztrax/
|
2015-12-14 09:57:20 +01:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: scrollkeeper
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
BuildRequires: pkgconfig(%{gir})
|
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0) >= 2.2.0
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gdk-x11-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.10.0
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.10.0
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0) >= 2.10.0
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.10.0
|
2015-12-14 10:47:13 +01:00
|
|
|
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(gstreamer-audio-1.0) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(gstreamer-base-1.0) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(gstreamer-controller-1.0) >= 1.1.0
|
|
|
|
#BuildRequires: pkgconfig(gstreamer-interfaces-1.0)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
|
2015-12-14 09:57:20 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-x11-2.0)
|
2015-12-14 10:47:13 +01:00
|
|
|
BuildRequires: pkgconfig(clutter-gtk-1.0)
|
2015-12-14 09:57:20 +01:00
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
|
|
|
BuildRequires: pkgconfig(libgnomecanvas-2.0)
|
|
|
|
BuildRequires: pkgconfig(libgsf-1)
|
|
|
|
BuildRequires: pkgconfig(libgstbuzztard) >= 0.6.0
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.0
|
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
%if %{with bml}
|
|
|
|
BuildRequires: pkgconfig(libbml) >= 0.6.0
|
|
|
|
%endif
|
|
|
|
%gconf_schemas_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
buzztrax aims to be a music studio that allows one to compose
|
|
|
|
songs using only a computer with a soundcard. If you've used
|
|
|
|
tracker programs like FastTracker, Impulse Tracker, or the
|
|
|
|
original AMIGA SoundTracker, that will give you an idea
|
2015-12-14 13:43:52 +01:00
|
|
|
of how one can sequence music in Buzztrax. The Buzztrax
|
2015-12-14 09:57:20 +01:00
|
|
|
editor uses a similar concept, where a song consists
|
|
|
|
of a sequence with tracks and in each track one uses patterns
|
|
|
|
with events (musical notes and control changes). In contrast
|
|
|
|
to other Tracker programs, tracks are not simply sample players:
|
|
|
|
a user can make a song using an arrangment of virtual audio
|
|
|
|
plugins that are linked together to create different effects.
|
|
|
|
Each of these machines can be controlled realtime or via
|
|
|
|
patterns in the sequencer.
|
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%package -n gstreamer-1_0-plugins
|
|
|
|
Summary: Buzztrax GStreamer plugin
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%description -n gstreamer-1_0-plugins
|
|
|
|
Plugin to play Buzztrax songs from any GStreamer compatible app.
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%package -n libbuzztrax-ic%{ic_soname}
|
|
|
|
Summary: Interaction controller support classes for buzztrax based applications
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: System/Libraries
|
2015-12-14 10:47:13 +01:00
|
|
|
Recommends: gstreamer-1_0-plugins-buzztrax
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%description -n libbuzztrax-ic%{ic_soname}
|
|
|
|
This package provides interaction controller support classes for buzztrax based applications.
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%package -n libbuzztrax-core%{core_soname}
|
|
|
|
Summary: Core support classes for buzztrax based applications
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%description -n libbuzztrax-core%{core_soname}
|
|
|
|
This package provides core support classes for buzztrax based applications.
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%package -n libbuzztrax-gst%{gst_soname}
|
|
|
|
Summary: Core support classes for buzztrax based applications
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libbuzztrax-gst%{gst_soname}
|
|
|
|
This package provides gst support classes for buzztrax based applications.
|
|
|
|
|
|
|
|
%package -n libbuzztrax-gst-devel
|
|
|
|
Summary: Development files for libbuzztrax-gst
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libbuzztrax-gst%{gst_soname} = %{version}
|
|
|
|
|
|
|
|
%description -n libbuzztrax-gst-devel
|
|
|
|
This package provides the development files for libbuzztrax-gst.
|
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%package -n libbuzztrax-ic-devel
|
|
|
|
Summary: Development files for libbuzztrax-ic
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-14 10:47:13 +01:00
|
|
|
Requires: libbuzztrax-ic%{ic_soname} = %{version}
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%description -n libbuzztrax-ic-devel
|
|
|
|
This package provides the development files for libbuzztrax-ic.
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%package -n libbuzztrax-core-devel
|
|
|
|
Summary: Development files for libbuzztrax-core
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-14 10:47:13 +01:00
|
|
|
Requires: libbuzztrax-core%{core_soname} = %{version}
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%description -n libbuzztrax-core-devel
|
|
|
|
This package provides the development files for libbuzztrax-core.
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%package -n typelib-1_0-BuzztraxIc-1_1
|
|
|
|
Summary: BuzztraxIc introspection bindings
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%description -n typelib-1_0-BuzztraxIc-1_1
|
|
|
|
This package provides the GObject Introspection bindings for BuzztraxIc.
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%package -n typelib-1_0-BuzztraxCore-1_1
|
|
|
|
Summary: BuzztraxCore Introspection bindings
|
2015-12-14 09:57:20 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%description -n typelib-1_0-BuzztraxCore-1_1
|
|
|
|
This package provides the GObject Introspection bindings for BuzztraxCore.
|
|
|
|
|
|
|
|
%package -n libbml%{bml_soname}
|
|
|
|
Summary: Core support classes for buzztrax based applications
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libbml%{bml_soname}
|
|
|
|
This package provides bml support classes for buzztrax based applications.
|
|
|
|
|
|
|
|
%package -n libbml-devel
|
|
|
|
Summary: Development files for libbml
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n libbml-devel
|
|
|
|
This package provides the development files for libbml.
|
|
|
|
|
|
|
|
%package plugins
|
|
|
|
Summary: Buzztrax GStreamer plugin
|
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
|
|
|
|
%description plugins
|
|
|
|
This package contains buzztrax plugins
|
2015-12-14 09:57:20 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%%patch0
|
|
|
|
#%%patch1
|
|
|
|
#%%patch2
|
|
|
|
#%%patch3
|
|
|
|
#%%patch4
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static --disable-schemas-install --disable-silent-rules
|
|
|
|
make %{?_smp_flags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2015-12-14 13:43:52 +01:00
|
|
|
# NOTE: There's libraries installed in unversioned libdir must investigate
|
|
|
|
find %{buildroot}%{_libdir} %{buildroot}%{_libexecdir} -name '*.la' -delete
|
|
|
|
echo %{buildroot}
|
|
|
|
%find_lang %{name}-%{version}
|
|
|
|
#%%find_gconf_schemas
|
2015-12-14 09:57:20 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2015-12-14 10:47:13 +01:00
|
|
|
printf 'libbuzztrax-ic%{ic_soname}\n
|
|
|
|
libbuzztrax-core%{core_soname}\n
|
2015-12-14 13:43:52 +01:00
|
|
|
typelib-1_0-BuzztraxIc-1_1\n
|
|
|
|
\t+^%{typelibdir}/BuzztraxIc-%{girsoname}.typelib$\n
|
|
|
|
typelib-1_0-BuzztraxCore-1_1\n
|
|
|
|
\t+^%{typelibdir}/BuzztraxCore-%{girsoname}.typelib$\n' > %{_sourcedir}/baselibs.conf
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
# Anything that doesn't work goes here
|
|
|
|
%if 1 == 0
|
2015-12-14 09:57:20 +01:00
|
|
|
%pre -f %{name}.schemas_pre
|
2015-12-14 13:43:52 +01:00
|
|
|
-f %{name}.schemas_list
|
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
|
|
|
|
%endif
|
2015-12-14 09:57:20 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%icon_theme_cache_post gnome
|
|
|
|
%mime_database_post
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%mime_database_postun
|
|
|
|
%icon_theme_cache_postun gnome
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%post -n libbuzztrax-ic%{ic_soname} -p /sbin/ldconfig
|
|
|
|
%post -n libbuzztrax-core%{core_soname} -p /sbin/ldconfig
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%postun -n libbuzztrax-ic%{ic_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libbuzztrax-core%{core_soname} -p /sbin/ldconfig
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%files -f buzztrax-%{version}.lang
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 13:43:52 +01:00
|
|
|
%doc AUTHORS COPYING COPYING-DOCS NEWS README.md TODO
|
2015-12-14 09:57:20 +01:00
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_datadir}/buzztrax/
|
|
|
|
%{_datadir}/applications/buzztrax-edit.desktop
|
2015-12-14 09:57:20 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_datadir}/icons/gnome
|
2015-12-14 10:47:13 +01:00
|
|
|
%doc %{_datadir}/omf/buzztrax-edit/
|
2015-12-14 09:57:20 +01:00
|
|
|
%dir %{_datadir}/gnome/
|
|
|
|
%doc %{_datadir}/gnome/help/
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_datadir}/gtk-doc/html/buzztrax-cmd/
|
|
|
|
%{_datadir}/gtk-doc/html/buzztrax-edit/
|
|
|
|
%{_datadir}/mime/packages/buzztrax.xml
|
2015-12-14 09:57:20 +01:00
|
|
|
%attr(0644,root,root) %ghost %{_datadir}/mime/audio/x-bzt.xml
|
|
|
|
%attr(0644,root,root) %ghost %{_datadir}/mime/audio/x-bzt-xml.xml
|
2015-12-14 13:43:52 +01:00
|
|
|
# NOTE: These files need a proper home and correct handling.
|
|
|
|
%{_libexecdir}/buzztrax-songio/libbtbsl.so
|
|
|
|
%{_datadir}/GConf/gsettings/buzztrax.convert
|
|
|
|
%{_datadir}/appdata/buzztrax.appdata.xml
|
|
|
|
%{_datadir}/applications/buzztrax-songio-buzz.desktop
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.buzztrax.gschema.xml
|
|
|
|
%{_datadir}/mime/packages/buzztrax-songio-buzz.xml
|
|
|
|
|
|
|
|
%files -n gstreamer-1_0-plugins
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 13:43:52 +01:00
|
|
|
%{gstreamer_pluginsdir}/lib*.so
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%files -n libbuzztrax-ic%{ic_soname}
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_libdir}/libbuzztrax-ic.so.%{ic_soname}*
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%files -n libbuzztrax-core%{ic_soname}
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_libdir}/libbuzztrax-core.so.%{core_soname}*
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%files -n libbuzztrax-ic-devel
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_includedir}/libbuzztrax-ic/
|
|
|
|
%{_libdir}/libbuzztrax-ic.so
|
|
|
|
%{_libdir}/pkgconfig/libbuzztrax-ic.pc
|
2015-12-14 13:43:52 +01:00
|
|
|
%{girdir}/BuzztraxIc-%{girsoname}.gir
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_datadir}/gtk-doc/html/buzztrax-ic/
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 10:47:13 +01:00
|
|
|
%files -n libbuzztrax-core-devel
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_includedir}/libbuzztrax-core/
|
|
|
|
%{_libdir}/libbuzztrax-core.so
|
|
|
|
%{_libdir}/pkgconfig/libbuzztrax-core.pc
|
2015-12-14 13:43:52 +01:00
|
|
|
%{girdir}/BuzztraxCore-%{girsoname}.gir
|
2015-12-14 10:47:13 +01:00
|
|
|
%{_datadir}/gtk-doc/html/buzztrax-core/
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%files -n typelib-1_0-BuzztraxIc-1_1
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{typelibdir}/BuzztraxIc-%{girsoname}.typelib
|
|
|
|
|
|
|
|
%files -n typelib-1_0-BuzztraxCore-1_1
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 13:43:52 +01:00
|
|
|
%{typelibdir}/BuzztraxCore-%{girsoname}.typelib
|
2015-12-14 09:57:20 +01:00
|
|
|
|
2015-12-14 13:43:52 +01:00
|
|
|
%files -n libbuzztrax-gst%{gst_soname}
|
2015-12-14 09:57:20 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2015-12-14 13:43:52 +01:00
|
|
|
%{_libdir}/libbuzztrax-gst.so.%{gst_soname}*
|
|
|
|
|
|
|
|
%files -n libbuzztrax-gst-devel
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/libbuzztrax-gst.so
|
|
|
|
%{_includedir}/libbuzztrax-gst/*
|
|
|
|
%{_datadir}/gtk-doc/html/buzztrax-gst/
|
|
|
|
%{_libdir}/pkgconfig/libbuzztrax-gst.pc
|
|
|
|
|
|
|
|
%files -n libbml%{bml_soname}
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/libbml.so.%{bml_soname}*
|
|
|
|
|
|
|
|
%files -n libbml-devel
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/libbml.so
|
|
|
|
%{_includedir}/libbml/*
|
|
|
|
%{_libdir}/pkgconfig/libbml.pc
|
|
|
|
|
|
|
|
%files plugins
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/%{name}/
|
|
|
|
|
2015-12-14 09:57:20 +01:00
|
|
|
|
|
|
|
%changelog
|