From c099f442a267ba1b17a477c35140277cdd40de45 Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Thu, 26 Dec 2019 10:30:45 +0100 Subject: [PATCH] spec modifications as per Fedora reviewer comment in rhbz #1768408 remove RPATH from openmpt123 --- .gitignore | 1 + libopenmpt.spec | 112 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 114 insertions(+) create mode 100644 .gitignore create mode 100644 libopenmpt.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..764fbea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libopenmpt-0.4.10+release.autotools.tar.gz diff --git a/libopenmpt.spec b/libopenmpt.spec new file mode 100644 index 0000000..3e1bf66 --- /dev/null +++ b/libopenmpt.spec @@ -0,0 +1,112 @@ +Name: libopenmpt +Version: 0.4.10 +Release: 2%{?dist} + +%global tar_root %{name}-%{version}+release.autotools + +License: BSD +Summary: C/C++ library to decode tracker music module (MOD) files + +URL: https://lib.openmpt.org/libopenmpt/ + +Source0: https://lib.openmpt.org/files/libopenmpt/src/%{tar_root}.tar.gz + +BuildRequires: gcc-c++ +BuildRequires: chrpath +BuildRequires: pkgconfig(libmpg123) +BuildRequires: pkgconfig(ogg) +BuildRequires: pkgconfig(vorbis) +BuildRequires: pkgconfig(sndfile) +BuildRequires: pkgconfig(flac) +BuildRequires: pkgconfig(zlib) + +# for command-line player audio output +BuildRequires: pulseaudio-libs-devel +# don't build with niche options +#BuildRequires: portaudio-devel +#BuildRequires: SDL-devel +#BuildRequires: SDL2-devel + +%description +libopenmpt is a cross-platform C++ and C library to decode tracked music +files (modules) into a raw PCM audio stream. + +libopenmpt is based on the player code of the OpenMPT project (Open +ModPlug Tracker). In order to avoid code base fragmentation, libopenmpt is +developed in the same source code repository as OpenMPT. + + +%package -n openmpt123 +Summary: Command-line tracker music player based on libopenmpt +Group: Applications/Multimedia +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description -n openmpt123 +Openmpt123 is a cross-platform command-line or terminal based player +for tracker music (MOD) module files. + + +%package devel +Summary: Development files for the libopenmpt library +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Files needed when building software which uses libopenmpt. + + +%prep +%autosetup -p1 -n %{tar_root} +sed -i 's/\r$//' LICENSE + + +%build +%configure \ + --disable-static \ + --without-sdl --without-sdl2 \ + --without-portaudio --without-portaudiocpp +make %{?_smp_mflags} + + +%install +%make_install +find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' +chrpath --delete ${RPM_BUILD_ROOT}%{_bindir}/openmpt123 + + +%files -n openmpt123 +%{_bindir}/openmpt123 +%{_mandir}/man1/* + +%files +%license LICENSE +%{_libdir}/*.so.0* +%{_docdir}/%{name}/ +%exclude %{_docdir}/%{name}/examples + +%files devel +%{_includedir}/%{name}/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_docdir}/%{name}/examples/ + + +%changelog +* Fri Dec 20 2019 Michael Schwendt - 0.4.10-2 +- spec modifications as per Fedora reviewer comment in rhbz #1768408 +- remove RPATH from openmpt123 + +* Mon Nov 4 2019 Michael Schwendt - 0.4.10-1 +- update to 0.4.10 + +* Sat Jun 01 2019 Michael Schwendt - 0.4.5-1 +- update to 0.4.5 + +* Sun Apr 21 2019 Michael Schwendt - 0.4.4-1 +- update to 0.4.4 + +* Sat Feb 23 2019 Michael Schwendt - 0.4.3-1 +- security update 0.4.3 + +* Sun Dec 30 2018 Michael Schwendt - 0.4.0-1 +- initial package for libopenmpt 0.4.0 diff --git a/sources b/sources new file mode 100644 index 0000000..0fb05ee --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libopenmpt-0.4.10+release.autotools.tar.gz) = d7c46016eea59c21e3f948d8538a747d5fa6b29f160841b688878d8ce48859d014c3a036738074b3d260af6e662c36b03391aef511c1817a5ace81f60bf27dfc