2017-12-11 06:49:40 +00:00
|
|
|
%define name musikcube
|
|
|
|
%define build_timestamp %{lua: print(os.date("%Y%m%d"))}
|
2017-12-11 19:25:20 +00:00
|
|
|
%define version 0.31.0
|
2017-12-11 06:49:40 +00:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
2017-12-13 06:08:12 +00:00
|
|
|
Release: %{build_timestamp}%{dist}
|
2017-12-11 06:49:40 +00:00
|
|
|
Summary: A cross-platform, terminal-based audio engine, library, player and server written in C++
|
2017-12-11 19:25:20 +00:00
|
|
|
Source0: https://github.com/clangen/musikcube/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-12-11 06:49:40 +00:00
|
|
|
License: GPLv3
|
|
|
|
Packager: David Muckle <dvdmuckle@dvdmuckle.xyz>
|
2017-12-13 07:03:28 +00:00
|
|
|
BuildRequires: gcc-c++ cmake boost-devel libogg-devel libvorbis-devel flac-devel faad2-devel ncurses-devel zlib-devel alsa-lib-devel pulseaudio-libs-devel libcurl-devel libmicrohttpd-devel lame-devel make
|
2017-12-11 15:22:53 +00:00
|
|
|
Requires: boost libogg libvorbis flac ncurses zlib alsa-lib pulseaudio-libs libcurl libmicrohttpd lame
|
|
|
|
Recommends: faad2
|
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
|
2017-12-11 19:25:20 +00:00
|
|
|
#cmake -DCMAKE_INSTALL_PREFIX:PATH=%{buildroot}%{_prefix} .
|
2017-12-11 06:49:40 +00:00
|
|
|
cmake .
|
|
|
|
make -j2
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir %{buildroot}%{_prefix} -p
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_prefix}/local/bin/musikcube
|
|
|
|
%{_prefix}/local/share/musikcube/
|
|
|
|
%{_prefix}/local/include/musikcube/
|
|
|
|
%doc
|