Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > c953d898b929bf66ffbf4b8a38bb78d9 > files > 3

beast-0.6.0-1mdk.src.rpm

%define version	0.6.0
%define release 1mdk

%define major	0
%define api_version 0.6
%define libname %mklibname %{name} %{api_version}

%define have_dsp %(test -e /dev/dsp && echo 1 || echo 0)
%define have_midi %(test -e /dev/midi && echo 1 || echo 0)

Name: 	 	beast
Summary: 	Music composition and audio synthesis framework and tool.
Version: 	%{version}
Release: 	%{release}
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-Makefile-fragment.tar.bz2
URL:		http://beast.gtk.org/
License:	GPL
Group:		Sound
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	guile-devel
BuildRequires:	ImageMagick
BuildRequires:	libgnomecanvas2-devel
BuildRequires:	libmad-devel
BuildRequires:	libvorbis-devel
BuildRequires:	XFree86-devel
BuildRequires:	autoconf2.5
BuildRequires:	intltool
Requires:	%{libname}_%{major} = %{version}-%{release}

%description
BEAST (the BEdevilled Audio System) is a GTK+/GNOME-based frontend to BSE (the
Bedevilled Sound Engine). BSE comes with the abilities to load/store songs and
synthesis networks (in .bse files), play them modify them, etc. BEAST provides
the necessary GUI to make actual use of BSE. Synthesis filters (BseSources)
are implemented in shared library modules, and get loaded on demand.

%package -n 	%{libname}_%{major}
Summary:        Dynamic libraries from %{name}
Group:          System/Libraries
License:	LGPL
Provides:	%{libname} = %{version}-%{release}
Obsoletes:	libbeast1
Provides:	libbeast1

%description -n %{libname}_%{major}
Dynamic libraries from %{name}.

%package -n 	%{libname}_%{major}-devel
Summary: 	Header files and static libraries from %{name}
Group: 		Development/C
License:	LGPL
Requires: 	%{libname}_%{major} = %{version}
Provides: 	%{libname}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release} 
Obsoletes: 	%{name}-devel
Obsoletes:	libbeast1-devel
Provides:	libbeast1-devel

%description -n %{libname}_%{major}-devel
Libraries and includes files for developing programs based on %{name}.

%prep
%setup -q -a 1

# (0.5.5) Using m4 macros from libtool 1.5, yet bundle ltmain.sh from 1.4.
# How can this be done?
aclocal-1.4
WANT_AUTOCONF_2_5=1 autoconf
automake-1.4

%build

# extreme measure to make sure devices are present before building package
%if !%have_dsp
%{error: Please make sure /dev/dsp is present.}
exit 1
%endif
%if !%have_midi
%{error: Please make sure /dev/midi is present.}
exit 1
%endif

%configure2_5x
%make
										
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): command="%{name}" icon="%{name}.png" needs="x11" title="Beast" longtitle="Composition and Synthesis" section="Multimedia/Sound"
EOF

#icons
mkdir -p $RPM_BUILD_ROOT%{_iconsdir} \
         $RPM_BUILD_ROOT%{_miconsdir}
install -D -m 644       data/beast.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
convert -geometry 32x32 data/beast.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
convert -geometry 16x16 data/beast.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png

# remove files not bundled
rm -f $RPM_BUILD_ROOT%{_libdir}/bse/v*/plugins/*.la

%find_lang %{name} --all-name

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
		
%postun
%clean_menus

%post -n %{libname}_%{major} -p /sbin/ldconfig
%postun -n %{libname}_%{major} -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS COPYING* NEWS TODO
%{_bindir}/*
%{_datadir}/application-registry/*.applications
%{_datadir}/applications/*.desktop
%{_datadir}/bse
%{_datadir}/%{name}
%{_datadir}/mime-info/*
%{_datadir}/pixmaps/*
%{_libdir}/bse
%{_menudir}/%{name}
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_mandir}/man1/*

%files -n %{libname}_%{major}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files -n %{libname}_%{major}-devel
%defattr(-,root,root)
%doc ChangeLog
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_libdir}/*.la
%{_mandir}/man3/*

%changelog
* Fri Feb 13 2004 Austin Acton <austin@mandrake.org> 0.6.0-1mdk
- 0.6.0

* Mon Dec 29 2003 Austin Acton <austin@linux.ca> 0.5.6-1mdk
- 0.5.6

* Fri Dec 12 2003 Abel Cheung <deaddog@deaddog.org> 0.5.5-1mdk
- 0.5.5
- Source1: Source forget to distribute some Makefile
  fragments, needed for regenerating autotools stuff
- Use ImageMagick to convert icons
- Add missing locale files
- Fix license
- Misc other touches
- dsp/midi device need to be present during build time, thus
  forcefully check for them (I feel bad)
- Redo mklibname

* Wed Jul 30 2003 Austin Acton <aacton@yorku.ca> 0.5.4-1mdk
- 0.5.4

* Tue Jul 15 2003 Austin Acton <aacton@yorku.ca> 0.5.3-2mdk
- rebuild for rpm

* Thu Jun 26 2003 Austin Acton <aacton@yorku.ca> 0.5.3-1mdk
- 0.5.3

* Mon Jun 23 2003 Austin Acton <aacton@yorku.ca> 0.5.2-1mdk
- 0.5.2
- use guile12

* Tue Apr 29 2003 Austin Acton <aacton@yorku.ca> 0.5.1-2mdk
- distlint (DIRM)

* Tue Apr 29 2003 Austin Acton <aacton@yorku.ca> 0.5.1-1mdk
- 0.5.1
- sonumber is 1

* Tue Apr 1 2003 Austin Acton <aacton@yorku.ca> 0.5.0-1mdk
- initial package