2017-12-11 06:49:40 +00:00
|
|
|
%define name musikcube
|
|
|
|
%define build_timestamp %{lua: print(os.date("%Y%m%d"))}
|
2022-02-17 18:17:19 +00:00
|
|
|
%define version 0.96.14
|
2018-01-29 01:54:43 +00:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
2017-12-19 04:03:07 +00:00
|
|
|
Release: %{dist}
|
2017-12-11 06:49:40 +00:00
|
|
|
Summary: A cross-platform, terminal-based audio engine, library, player and server written in C++
|
2018-02-02 06:13:49 +00:00
|
|
|
Source0: https://github.com/clangen/musikcube/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-12-14 20:52:56 +00:00
|
|
|
License: BSD-3-Clause
|
2017-12-11 06:49:40 +00:00
|
|
|
Packager: David Muckle <dvdmuckle@dvdmuckle.xyz>
|
2020-06-17 03:11:10 +00:00
|
|
|
BuildRequires: gcc-c++ cmake boost-devel libogg-devel libvorbis-devel ffmpeg-devel ncurses-devel zlib-devel alsa-lib-devel pulseaudio-libs-devel openssl-devel libcurl-devel libmicrohttpd-devel lame-devel libev-devel taglib-devel systemd-devel make libopenmpt-devel
|
|
|
|
Requires: boost libogg libvorbis ffmpeg-libs ncurses zlib alsa-lib pulseaudio-libs openssl libcurl libmicrohttpd lame libev taglib libopenmpt
|
2017-12-11 06:49:40 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
A cross-platform, terminal-based audio engine, library, player and server written in C++
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%prep
|
2017-12-11 19:25:20 +00:00
|
|
|
%autosetup -n %{name}-%{version}
|
2017-12-11 06:49:40 +00:00
|
|
|
|
|
|
|
%build
|
2021-04-14 05:11:58 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_BUILD_TYPE=Release -DENABLE_PCH=true -DENABLE_PIPEWIRE=$ENABLE_PIPEWIRE .
|
2017-12-11 06:49:40 +00:00
|
|
|
make -j2
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
2018-02-02 06:04:58 +00:00
|
|
|
find %{buildroot} -type f \( -name '*.so' -o -name '*.so.*' \) -exec chmod 755 {} +
|
2017-12-11 06:49:40 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
2017-12-17 00:05:32 +00:00
|
|
|
%{_prefix}/bin/musikcube
|
2018-02-02 03:53:33 +00:00
|
|
|
%{_prefix}/bin/musikcubed
|
2017-12-17 00:05:32 +00:00
|
|
|
%{_prefix}/share/musikcube/
|
2020-04-12 04:42:54 +00:00
|
|
|
%{_prefix}/share/applications/
|
|
|
|
%{_prefix}/share/icons/
|
2017-12-17 00:05:32 +00:00
|
|
|
%{_prefix}/include/musikcube/
|
2017-12-11 06:49:40 +00:00
|
|
|
%doc
|