Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > c4e497793c5e523dc1774ff7bd679a2f > files > 2

midicontroller-041011-2mdk.src.rpm

%define name	midicontroller
%define version	041011
%define release 2mdk

Name: 	 	%{name}
Summary:	Graphical sliders to send MIDI control commands	
Version: 	%{version}
Release: 	%{release}

Source:		%{name}-%{version}.tar.bz2
URL:		http://sourceforge.net/projects/midicontrol/
License:	GPL
Group:		Sound
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	pkgconfig libalsa-devel devel(libglademm-2.4)

%description
This is a small program that lets you set MIDI controller values using sliders
and buttons in a GTK+ window. The GUI is an XML-based Glade file which can be
replaced without rebuilding the program, so you can build your own controller
GUIs in Glade.

%prep
%setup -q
perl -p -i -e "s|-g -O2|$RPM_OPT_FLAGS||g" Makefile

%build
%make PREFIX=%{_prefix}
										
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX=$RPM_BUILD_ROOT/%_prefix

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): command="%{name}" icon="sound_section.png" needs="x11" title="MIDI Controller" longtitle="MIDI CC Sliders" section="Multimedia/Sound"
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
		
%postun
%clean_menus

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%name
%{_menudir}/%name
%{_datadir}/%name

%changelog
* Sat Jan 15 2005 Tibor Pittich <Tibor.Pittich@mandrake.org> 041011-2mdk
- use prefix which fix location of controller.glade file
- update buildrequires

* Sun Oct 17 2004 Austin Acton <austin@mandrake.org> 041011-1mdk
- initial package