musikcube/musikcube.spec

39 lines
1.3 KiB
RPMSpec
Raw Normal View History

2017-12-11 06:49:40 +00:00
%define name musikcube
%define build_timestamp %{lua: print(os.date("%Y%m%d"))}
%define version 0.40.0-1
Name: %{name}
Version: %{version}
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++
2017-12-11 19:25:20 +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>
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 libev-devel make
Requires: boost libogg libvorbis flac ncurses zlib alsa-lib pulseaudio-libs libcurl libmicrohttpd lame libev
2017-12-11 15:22:53 +00:00
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
2018-01-13 20:09:01 +00:00
cmake -D CMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_BUILD_TYPE=Release .
2017-12-11 06:49:40 +00:00
make -j2
%install
make install DESTDIR=%{buildroot}
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/
%{_prefix}/include/musikcube/
2017-12-11 06:49:40 +00:00
%doc