3 %bcond_with avahi # build with Avahi (Built-in Serverlist)
4 %bcond_without glyr # build with libglyr (Now Playing Browser)
5 %bcond_with libnotify # build with libnotify (For notifcations)
8 # - fails to understand libnotify is there
9 # -- checking for modules 'OPTIONAL;libnotify'
10 # -- package 'OPTIONAL' not found
11 # Disabling libnotify support, since deps were not found.
12 # - does not support out of tree build:
13 # freya-1.0.2/src/Init/cmdoptions.cc:10:26: fatal error: ../../config.h: No such file or directory
14 # - avahi build fails:
15 # freya-1.0.2/src/Browser/Avahi/ServerList.hh:88:5: error: 'Avahi' does not name a type
16 # freya-1.0.2/src/Browser/Avahi/ServerList.cc: In constructor 'Browser::ServerList::ServerList(Glib::RefPtr<Gtk::Builder>&, GManager::BrowserList&)':
17 # freya-1.0.2/src/Browser/Avahi/ServerList.cc:51:5: error: 'avahi_handle' was not declared in this scope
18 # - mpdclinet link fails:
19 # freya-1.0.2/src/MPD/Client.cc: In member function 'virtual void MPD::Client::fill_playlists(MPD::AbstractItemlist&)':
20 # freya-1.0.2/src/MPD/Client.cc:278:40: error: 'mpd_send_list_playlists' was not declared in this scope
21 Summary: A simple and slim mpd client
26 Group: Applications/Multimedia
27 URL: https://github.com/studentkittens/Freya
28 # VCS: git:https://github.com/studentkittens/Freya.git
29 Source0: https://github.com/studentkittens/Freya/tarball/master/%{name}.tgz
30 # Source0-md5: 6e6686e2ef4845c17e32183d33405cc4
31 %{?with_avahi:BuildRequires: avahi-devel}
32 %{?with_avahi:BuildRequires: avahi-glib-devel}
34 BuildRequires: glibmm-devel
35 %{?with_glyr:BuildRequires: glyr-devel}
36 BuildRequires: gtkmm3-devel
37 BuildRequires: libmpdclient-devel
38 %{?with_libnotify:BuildRequires: libnotify-devel}
39 BuildRequires: libxml2-devel
40 BuildRequires: pkgconfig
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 A fun and slim Client for the MPD Server.
52 -DUSE_GLYR=%{!?with_glyr:NO}%{?with_glyr:YES} \
53 -DUSE_LIBNOTIFY=%{!?with_libnotify:NO}%{?with_libnotify:YES} \
54 -DUSE_AVAHI=%{!?with_avahi:NO}%{?with_avahi:YES} \
59 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
68 %files -f %{name}.lang
69 %defattr(644,root,root,755)