Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > e5152a4be037bc6532dc8906d4107c95 > files > 3

specimen-0.5.2rc3-1mdv2009.0.src.rpm

%define pre	rc3
%define over	0.5.2

Name: 	 	specimen
Summary: 	MIDI-controlled sampler
Version: 	%{over}%{pre}
Release: 	%{mkrel 1}
# From Debian, upstream died years ago - AdamW 2008/08
Source0:	%{name}_%{version}.orig.tar.gz
# Allow external CFLAGS - AdamW 2008/08
Patch0:		specimen-0.5.1-cflags.patch
# From Debian: fix build (libjack calls) and major bug - AdamW 2008/08
Patch1:		specimen-0.5.2rc3-debian.patch
License:	GPL+
Group:		Sound
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	pkgconfig
BuildRequires:	gtk2-devel
BuildRequires:	libsamplerate-devel
BuildRequires:	libxml2-devel
BuildRequires:	libalsa-devel
BuildRequires:	jackit-devel
BuildRequires:	ladcca-devel
BuildRequires:	phat-devel >= 0.3.1
BuildRequires:  libsndfile-devel
BuildRequires:	lash-devel

%description
A software sampler with:
- ALSA sequencer interface support
- audio output via ALSA or JACK
- individual panning and volume controls for each patch
- high quality cubically interpolated pitch scaling
- sample start/stop and loop points
- three playback modes; "normal" just plays the sample, "trim" plays the
  sample and stops early if so instructed, "loop" plays the sample for the
  requested duration
- patch bank saving and loading in the "beef" file format
- a waveform display

%prep
%setup -q -n %{name}-%{over}-%{pre}
%patch0 -p1 -b .cflags
%patch1 -p1 -b .debian

%build
%configure2_5x
%make
										
%install
rm -rf %{buildroot}
%makeinstall_std

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=sound_section
Name=Specimen
Comment=MIDI software sampler
Categories=GTK;Audio;
EOF

%find_lang %{name}

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop



%changelog
* Fri Aug 29 2008 Adam Williamson <awilliamson@mandriva.com> 0.5.2rc3-1mdv2009.0
+ Revision: 277239
- buildrequires lash-devel (for session support)
- add debian.patch (from Debian, fixes build issue and bug)
- bump to 0.5.2rc3 (from Debian, upstream is way dead)
- add category to menu entry
- s,$RPM_BUILD_ROOT,%%{buildroot}
- clean and correct buildrequires
- new license policy
- add cflags.patch (allow external CFLAGS)
- drop unnecessary defines

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - auto convert menu to XDG
    - kill re-definition of %%buildroot on Pixel's request
    - import specimen

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot


* Thu Oct 20 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.5.1-2mdk
- Fix BuildRequires
- %%mkrel

* Sun Jul 24 2005 Austin Acton <austin@mandriva.org> 0.5.1-1mdk
- 0.5.1
- source URL

* Sat Aug 7 2004 Austin Acton <austin@mandrake.org> 0.4.3-1mdk
- 0.4.3

* Sun Jul 25 2004 Austin Acton <austin@mandrake.org> 0.4.2-1mdk
- 0.4.2

* Thu Jul 1 2004 Austin Acton <austin@mandrake.org> 0.4.0-1mdk
- 0.4.0

* Sat Jun 12 2004 Austin Acton <austin@mandrake.org> 0.3.0-1mdk
- 0.3.0

* Wed Jun 2 2004 Austin Acton <austin@mandrake.org> 0.2.9-1mdk
- 0.2.9

* Thu Apr 1 2004 Austin Acton <austin@mandrake.org> 0.2.4-1mdk
- 0.2.4

* Sun Feb 22 2004 Austin Acton <austin@mandrake.org> 0.2.1-1mdk
- 0.2.1

* Tue Feb 17 2004 Austin Acton <austin@mandrake.org> 0.2.0-1mdk
- 0.2.0

* Tue Feb 17 2004 Austin Acton <austin@mandrake.org> 0.1.3-1mdk
- initial package