File tse3.spec of Package tse3
#
# spec file for package tse3
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: tse3
BuildRequires: alsa-devel gcc-c++ libtool
Url: http://tse3.sourceforge.net/
License: GPL-2.0+
Group: System/Libraries
Provides: TSE3 Library
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 0.3.1
Release: 144
Summary: TSE3 MIDI Sequencer Library
Source: tse3-%{version}.tar.bz2
Patch: lp64.patch
Patch1: libtool_hack.diff
Patch2: tse3-0.3.1_gcc4.patch
Patch3: ts3.linux-awe_voice.patch
Patch4: tse3-0.3.1_gcc43_fixes.patch
%description
TSE3 is a MIDI sequencer library written in C++. Sequencer applications
or multimedia presentation packages can incorporate the TSE3 libraries
to provide a user with MIDI sequencing facilities. The library is open
source.
Authors:
--------
Pete Goodliffe <pete.goodliffe@pace.co.uk>
%package devel
License: GPL-2.0+
Group: System/Libraries
Requires: %{name} == %{version}
Requires: alsa-devel glibc-devel libstdc++-devel
Summary: Development packages for the TSE3 MIDI Sequencer Library
%description devel
TSE3 is a MIDI sequencer library written in C++. Sequencer applications
or multimedia presentation packages can incorporate the TSE3 libraries
to provide a user with MIDI sequencing facilities. The library is open
source.
This package holds the development files for TSE3.
Authors:
--------
Pete Goodliffe <pete.goodliffe@pace.co.uk>
%prep
%setup -q
%patch
%patch1
%patch2
%patch3 -p1
%patch4
%build
autoreconf --force --install
%configure --with-install-root=%{buildroot} --with-alsa
%{__make}
%install
%makeinstall docsdir=%{_docdir}/%{name}
%{__install} -m 0644 \
AUTHORS COPYING ChangeLog NEWS README THANKS TODO \
%{buildroot}%{_docdir}/%{name}/
%{__install} -d -m 0755 %{buildroot}%{_docdir}/%{name}/demos/
%{__mv} %{buildroot}%{_docdir}/%{name}/*.tse* \
%{buildroot}%{_docdir}/%{name}/demos/
%{__install} -m 0644 \
demos/*.ins demos/*.mid demos/*.tse2 \
%{buildroot}%{_docdir}/%{name}/demos/
%{__make} -C src/examples/ clean
%{__cp} -rv src/examples/ \
%{buildroot}%{_docdir}/%{name}/
%{__rm} -rf %{buildroot}%{_docdir}/%{name}/*/.deps %{buildroot}%{_docdir}/%{name}/*/*/.deps
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/libtse3.so.*
%{_mandir}/man1/*
%doc %{_docdir}/%{name}
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_mandir}/man3/*
%{_libdir}/libtse3.so
%{_libdir}/libtse3.la
%changelog