LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File alsamodular.spec of Package alsamodular (Project home:edogawa)

#
# spec file for package alsamodular
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

BuildRequires:	gcc-c++
%if %{defined fedora}
BuildRequires:	alsa-lib-devel
BuildRequires:  jack-audio-connection-kit-devel
BuildRequires:	qt4-devel
BuildRequires:	freetype-devel
BuildRequires:	lcms-devel
BuildRequires:  desktop-file-utils
%else
BuildRequires:	alsa-devel
BuildRequires:	libjack-devel
BuildRequires:	libqt4-devel
BuildRequires:	freetype2-devel
BuildRequires:	liblcms-devel
BuildRequires:  update-desktop-files
%endif
BuildRequires:	ladspa-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libmng-devel
BuildRequires:	libpng-devel
BuildRequires:	libzita-alsa-pcmi0-devel
BuildRequires:	fftw3-devel
BuildRequires:	fontconfig-devel
BuildRequires:	freeglut-devel
BuildRequires:	zlib-devel

Name:         alsamodular
Summary:      Realtime modular synthesizer and effect processor
License:      GPL-2.0
Group:        Productivity/Multimedia/Sound/Midi
Requires:     ladspa
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Autoreqprov:  on
Version:      2.1.2
Release:      0
Source:       ams-%{version}.tar.bz2
Source1:      %{name}.desktop
Source2:      %{name}.png

%description
AlsaModularSynth is a modular synthesizer and effect processor for ALSA
and JACK. It features
- MIDI controlled modular software synthesis
- Realtime effect processing with capture from e.g. "Line In" or "Mic In".
- Full control of all synthesis and effect parameters via MIDI.
 - Integrated LADSPA Browser with search capability
- JACK Support

Authors:
--------
    Matthias Nagorni <mana@suse.de>

%prep
%setup -n ams-%{version}
# cd ams-*
pwd

%build
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
# -DALSA_OLD_SW_PARAMS_API -DALSA_PCM_OLD_HW_PARAMS_API
# cd ams-*
# LADSPA_PATH="/usr/%{_lib}/ladspa:/usr/local/%{_lib}/ladspa" \
./configure --prefix=%{_prefix} 
#     QT_LIB_DIR=\$\(QT_BASE_DIR\)/%{_lib} \
#     X11_LIB_DIR=/usr/X11R6/%{_lib}
make
cd ..

%install
rm -rf $RPM_BUILD_ROOT
# cd ams-*
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png

%if %{defined fedora}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

%post 
update-desktop-database -q
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :

%postun
update-desktop-database -q
if [ $1 -eq 0 ]; then
  touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
  gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
fi
%endif

%if 0%{?suse_version}
%suse_update_desktop_file -i %name AudioVideo Music
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*
%doc README NEWS THANKS COPYING AUTHORS
%dir %{_datadir}/ams
%{_datadir}/ams/*
%{_mandir}/man1/ams.1.gz
%{_datadir}/applications/*
%{_datadir}/pixmaps/*

%changelog