Группа :: Разработка/C
Пакет: librtmidi
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
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: 4.0.0
Release: alt1_1
Summary: Library for realtime MIDI input/output (ALSA support)
License: MIT
URL: https://www.music.mcgill.ca/~gary/rtmidi/index.html
Source0: https://www.music.mcgill.ca/~gary/rtmidi/release/%{oldname}-%{version}.tar.gz
BuildRequires: libalsa-devel, pkgconfig(jack)
BuildRequires: autoconf, automake, libtool, /usr/bin/dos2unix
BuildRequires: doxygen
BuildRequires: gcc-c++
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 -n librtmidi5
Summary: Shared library for the %oldname library
Group: System/Libraries
Provides: rtmidi5 = %{version}-%{release}
%description -n librtmidi5
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
This package contains the shared library.
%package -n librtmidi-devel
Group: Development/C
Summary: Development headers and libraries for rtmidi
Requires: librtmidi5 = %EVR
Requires: pkgconfig(jack)
Provides: %oldname-devel = %EVR
Provides: rtmidi-devel = %{version}-%{release}
%description -n librtmidi-devel
Development headers and libraries for rtmidi.
%prep
%setup -n %{oldname}-%{version} -q
sed -i.orig -e 's/\/lib/\/%{_lib}/' Makefile.in rtmidi.pc.in
# fix end of line
dos2unix doc/release.txt doc/doxygen/tutorial.txt
%build
find . -name Makefile.in -delete
./autogen.sh --no-configure
%configure --docdir=%{_docdir}/%{oldname}-devel --with-jack --with-alsa
%make_build AM_DEFAULT_VERBOSITY=1
# Get rid of the -L/usr/lib in the output of this convenience script
sed -i -E 's/-L[^ "]+//' %{oldname}-config
%install
make DESTDIR=%{buildroot} install
install --verbose -D -t %{buildroot}%{_bindir} %{oldname}-config
rm %{buildroot}%{_libdir}/lib%{oldname}.{a,la}
%files -n librtmidi5
%doc README.md
%_libdir/librtmidi.so.5
%_libdir/librtmidi.so.5.*
%files -n librtmidi-devel
%doc doc/html
%{_bindir}/%{oldname}-config
%{_includedir}/%{oldname}
%{_libdir}/lib%{oldname}.so
%{_libdir}/pkgconfig/%{oldname}.pc
%changelog
…
Полный changelog можно просмотреть здесь
%add_optflags %optflags_shared
%define oldname rtmidi
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: librtmidi
Version: 4.0.0
Release: alt1_1
Summary: Library for realtime MIDI input/output (ALSA support)
License: MIT
URL: https://www.music.mcgill.ca/~gary/rtmidi/index.html
Source0: https://www.music.mcgill.ca/~gary/rtmidi/release/%{oldname}-%{version}.tar.gz
BuildRequires: libalsa-devel, pkgconfig(jack)
BuildRequires: autoconf, automake, libtool, /usr/bin/dos2unix
BuildRequires: doxygen
BuildRequires: gcc-c++
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 -n librtmidi5
Summary: Shared library for the %oldname library
Group: System/Libraries
Provides: rtmidi5 = %{version}-%{release}
%description -n librtmidi5
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
This package contains the shared library.
%package -n librtmidi-devel
Group: Development/C
Summary: Development headers and libraries for rtmidi
Requires: librtmidi5 = %EVR
Requires: pkgconfig(jack)
Provides: %oldname-devel = %EVR
Provides: rtmidi-devel = %{version}-%{release}
%description -n librtmidi-devel
Development headers and libraries for rtmidi.
%prep
%setup -n %{oldname}-%{version} -q
sed -i.orig -e 's/\/lib/\/%{_lib}/' Makefile.in rtmidi.pc.in
# fix end of line
dos2unix doc/release.txt doc/doxygen/tutorial.txt
%build
find . -name Makefile.in -delete
./autogen.sh --no-configure
%configure --docdir=%{_docdir}/%{oldname}-devel --with-jack --with-alsa
%make_build AM_DEFAULT_VERBOSITY=1
# Get rid of the -L/usr/lib in the output of this convenience script
sed -i -E 's/-L[^ "]+//' %{oldname}-config
%install
make DESTDIR=%{buildroot} install
install --verbose -D -t %{buildroot}%{_bindir} %{oldname}-config
rm %{buildroot}%{_libdir}/lib%{oldname}.{a,la}
%files -n librtmidi5
%doc README.md
%_libdir/librtmidi.so.5
%_libdir/librtmidi.so.5.*
%files -n librtmidi-devel
%doc doc/html
%{_bindir}/%{oldname}-config
%{_includedir}/%{oldname}
%{_libdir}/lib%{oldname}.so
%{_libdir}/pkgconfig/%{oldname}.pc
%changelog
…
Полный changelog можно просмотреть здесь