File rtmidi.spec of Package rtmidi

Name:          rtmidi
Version:       2.1.0
Release:       0
Summary:       A set of C++ classes that provide a common API for realtime MIDI input/output
Group:         System/Libraries
URL:           http://www.music.mcgill.ca/~gary/rtmidi/
Source:        http://www.music.mcgill.ca/~gary/rtmidi/release/rtmidi-%{version}.tar.gz
License:       MIT
BuildRequires: glibc-devel
BuildRequires: alsa-devel
BuildRequires: libjack-devel
BuildRequires: gcc-c++
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
RtMidi is a set of C++ classes that provide a common API for realtime MIDI input/output across Linux (ALSA & Jack), Macintosh OS X (CoreMidi) and Windows (Multimedia & Kernel Streaming).

%package -n lib%{name}2
Group:         System/Libraries
Summary:       A library that provides a common API for realtime MIDI input/output

%description -n lib%{name}2
RtMidi is a set of C++ classes that provide a common API for realtime MIDI input/output across Linux (ALSA & Jack), Macintosh OS X (CoreMidi) and Windows (Multimedia & Kernel Streaming).

%package -n lib%{name}-devel
Group:         Development/Libraries/C and C++
Summary:       Development files for %{name}
Requires:      lib%{name}2 = %{?epoch:%epoch:}%{version}-%{release}

%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.

%prep
%setup -q

%build
%configure \
   --with-jack \
   --with-alsa

make %{?_smp_mflags}

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m 0755 %{buildroot}%{_libdir}
cp -P librtmidi.so* %{buildroot}%{_libdir}/
install -D -m 0755 rtmidi-config %{buildroot}%{_bindir}/rtmidi-config
for f in RtMidi.h; do
install -D -m 0644 $f %{buildroot}%{_includedir}/$f
done
install -d -m 0755 %{buildroot}%{_libdir}/pkgconfig
install --mode=644 lib%{name}.pc %{buildroot}%{_libdir}/pkgconfig/

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post -n lib%{name}2 -p /sbin/ldconfig
%postun -n lib%{name}2 -p /sbin/ldconfig

%files -n lib%{name}2
%defattr(-,root,root)
%{_libdir}/librtmidi.so.*

%files -n lib%{name}-devel
%defattr(-,root,root)
%{_bindir}/rtmidi-config
%{_includedir}/RtMidi.h
%{_libdir}/librtmidi.so
%{_libdir}/pkgconfig/lib%{name}.pc

%changelog
* Wed May 28 2014 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic update by autodist

* Thu Aug 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- package created by silvan using the webbuild interface
openSUSE Build Service is sponsored by