--- qsampler/trunk/qsampler.spec.in 2007/01/15 16:21:01 1034 +++ qsampler/trunk/qsampler.spec.in 2010/05/18 09:36:00 2093 @@ -1,50 +1,67 @@ %define name @PACKAGE_TARNAME@ %define version @PACKAGE_VERSION@ -%define release 9 -%define prefix /usr/local +%define release 13 -Summary: A LinuxSampler Qt GUI interface. +%define _prefix @ac_prefix@ + +Summary: A LinuxSampler Qt GUI interface Name: %{name} Version: %{version} Release: %{release} -Prefix: %{prefix} License: GPL -Group: Sound +Group: Productivity/Multimedia/Sound/Midi Source0: %{name}-%{version}.tar.gz URL: http://qsampler.sourceforge.net/ -BuildRoot: /var/tmp/%{name}-%{version}-buildroot -Requires: liblscp >= 0.5.3, libgig >= 3.1.0 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +BuildRequires: libqt4-devel >= 4.1 +BuildRequires: liblscp-devel >= 0.5.6 +BuildRequires: libgig-devel >= 3.3.0 %description QSampler is a LinuxSampler GUI front-end application written in C++ around -the Qt3 toolkit using Qt Designer. For the moment it just wraps the client +the Qt4 toolkit using Qt Designer. For the moment it just wraps the client interface of LinuxSampler Control Protocol (LSCP) (http://www.linuxsampler.org). %prep - %setup -[ -f Makefile.cvs ] && make -f Makefile.cvs +[ -f Makefile.svn ] && %__make -f Makefile.svn %build -export PATH=$QTDIR/bin:$PATH -./configure --prefix=%{prefix} -make +%configure +%__make %install -if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi -mkdir -p $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT%{prefix} install +%__make DESTDIR=%{buildroot} install %clean -if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi +[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog README TODO -%{prefix}/bin/qsampler -%{prefix}/share/icons/qsampler.png +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%dir %{_datadir}/icons/hicolor +%dir %{_datadir}/icons/hicolor/32x32 +%dir %{_datadir}/icons/hicolor/32x32/apps +%{_datadir}/icons/hicolor/32x32/apps/%{name}.png +%dir %{_datadir}/locale +%{_datadir}/locale/%{name}_*.qm %changelog +* Mon May 17 2010 Rui Nuno Capela +- Standard desktop icon fixing. +* Sat Aug 1 2009 Rui Nuno Capela +- New 0.2.2 release. +* Thu Dec 6 2007 Rui Nuno Capela +- Qt4 migration complete. +* Mon Jun 25 2007 Rui Nuno Capela +- Application icon is now installed to (prefix)/share/pixmaps. +- Declared fundamental build and run-time requirements. +- Destination install directory prefix is now in spec. +- Spec is now a bit more openSUSE compliant. * Mon Jan 15 2007 Rui Nuno Capela - Added sampler channel FX send support at session save code-level. - Global sampler volume slider/spinbox combo is now featured.