/
audacious.spec
126 lines (102 loc) · 2.99 KB
/
audacious.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
%define major 3
%define maj2 5
%define majqt 2
%define libcore %mklibname audcore %{maj2}
%define libqt %mklibname audqt %{majqt}
%define libtag %mklibname audtag %{major}
%define devname %mklibname %{name} -d
%define beta %{nil}
Summary: A versatile and handy media player
Name: audacious
Version: 4.1
%if "%beta" != ""
Release: 1
%else
Release: 1
%endif
License: GPLv3+
Group: Sound
Url: http://audacious-media-player.org/
Source0: http://distfiles.audacious-media-player.org/%{name}-%{version}.tar.bz2
BuildRequires: meson
BuildRequires: chrpath
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(libguess) >= 1.2
Requires: audacious-ui = %{EVRD}
Requires: audacious-plugins
Recommends: audacious-pulse
%description
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
%package -n %{libcore}
Group: System/Libraries
Summary: Library for %{name}
Obsoletes: %{_lib}audacious1 < 5:3.3.4-2
%description -n %{libcore}
This package contains the library needed by %{name}.
%package -n %{libqt}
Group: System/Libraries
Summary: Qt interface library for %{name}
Conflicts: %{_lib}audacious1 < 5:3.3.4-2
Provides: audacious-ui = %{EVRD}
%description -n %{libqt}
This package contains the library needed by
the Qt interface of %{name}.
%package -n %{libtag}
Group: System/Libraries
Summary: Library for %{name}
Conflicts: %{_lib}audacious1 < 5:3.3.4-2
%description -n %{libtag}
This package contains the library needed by %{name}.
%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libcore} = %{EVRD}
Requires: %{libqt} = %{EVRD}
Requires: %{libtag} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
%description -n %{devname}
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This package contains the files needed for developing applications
which use %{name}.
%prep
%autosetup -p1
%build
#gw: else libid3tag does not build
%define _disable_ld_no_undefined 1
%meson -Dgtk=false
%meson_build
%install
%meson_install
chrpath -d %{buildroot}%{_bindir}/*
desktop-file-install --vendor="" \
--remove-category="Application" \
--add-category="Audio" \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*
rm -rf %{buildroot}%{_datadir}/audacious/applications/
%find_lang %{name}
rm -f %{buildroot}%{_includedir}/mp4.h
%files -f %{name}.lang
%doc AUTHORS
%{_bindir}/audtool
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/*
%files -n %{libcore}
%{_libdir}/libaudcore.so.%{maj2}*
%files -n %{libqt}
%{_libdir}/libaudqt.so.%{majqt}*
%files -n %{libtag}
%{_libdir}/libaudtag.so.%{major}*
%files -n %{devname}
%{_includedir}/%{name}
%{_includedir}/libaudcore
%{_includedir}/libaudqt
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc