Репозиторий Sisyphus
Последнее обновление: 14 октября 2019 | Пакетов: 17518 | Посещений: 15268643
en ru br
Репозитории ALT

Группа :: Разработка/C
Пакет: librtmidi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
Group: Development/C
%add_optflags %optflags_shared
%define oldname rtmidi
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:       librtmidi
Version:    2.1.0
Release:    alt1_9
Summary:    Library for realtime MIDI input/output (ALSA support)
License:    MIT
URL:        http://www.music.mcgill.ca/~gary/rtmidi/index.html
Source0:    http://www.music.mcgill.ca/~gary/rtmidi/release/%{oldname}-%{version}.tar.gz
BuildRequires:  libalsa-devel, libjack-devel
BuildRequires:  autoconf-common, /usr/bin/dos2unix
Obsoletes:  %{oldname}-jack < 2.0.0
Source44: import.info
Provides: rtmidi = %{version}-%{release}

%description
RtMidi is a set of C++ classes (RtMidiIn and RtMidiOut) that provides a common
API (Application Programming Interface) for realtime MIDI input/output across
Linux (ALSA & Jack), Macintosh OS X, Windows (Multimedia Library), and SGI
operating systems. RtMidi significantly simplifies the process of interacting
with computer MIDI hardware and software. It was designed with the following
goals:
* object oriented C++ design
* simple, common API across all supported platforms
* only two header files and one source file for easy inclusion in programming
 projects
* MIDI device enumeration

%package devel
Group: Development/C
Summary:    Development headers and libraries for rtmidi
Requires:   %{name} = %{version}-%{release}
Provides: rtmidi-devel = %{version}-%{release}

%description devel
Development headers and libraries for rtmidi.

%prep
%setup -n %{oldname}-%{version} -q

# cp -f /usr/lib/rpm/config.{guess,sub} config/

sed -i -e 's/\/lib/\/%{_lib}/' Makefile.in librtmidi.pc.in
sed -i -e 's/RtError\.h//' Makefile.in
autoconf -f
# fix end of line
dos2unix doc/release.txt doc/doxygen/tutorial.txt
sed -i -e 's,$(LIBS) $(SOURCE),$(SOURCE) $(LIBS),' Makefile*

%build
# First pass, jack.
%configure --docdir=%{_docdir}/%{oldname}-devel --with-jack --with-alsa
make CFLAGS="$CXXFLAGS -fPIC"

%install
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_bindir} %{buildroot}%{_includedir}
sed -i -E 's/-L[^ "]+//' %{oldname}-config
make install PREFIX=%{buildroot}%{_prefix}

rm %{buildroot}%{_libdir}/pkgconfig
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp -p lib%{oldname}.pc %{buildroot}%{_libdir}/pkgconfig/
rm %{buildroot}%{_libdir}/*.a

%files
%doc readme
%{_libdir}/lib%{oldname}.so.*

%files devel
%doc doc/*
%{_bindir}/%{oldname}-config
#{_docdir}/%{oldname}-devel/
%{_includedir}/RtMidi.h
%{_libdir}/lib%{oldname}.so
%{_libdir}/pkgconfig/lib%{oldname}.pc

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin