1 |
%define build_id3 1 |
2 |
%{?_with_id3: %{expand: %%global build_id3 1}} |
3 |
%{?_without_id3: %{expand: %%global build_id3 0}} |
4 |
|
5 |
Summary: A CD player and ripper/MP3-encoder front-end |
6 |
Name: grip |
7 |
Epoch: 1 |
8 |
Version: 4.1.1 |
9 |
Release: %mkrel 1 |
10 |
License: GPLv2+ |
11 |
Group: Sound/Players |
12 |
URL: https://sourceforge.net/projects/grip/ |
13 |
Source0: http://prdownloads.sourceforge.net/grip/%{name}-%{version}.tar.gz |
14 |
BuildRequires: pkgconfig(gtk+-2.0) |
15 |
BuildRequires: pkgconfig(libcurl) |
16 |
BuildRequires: imagemagick |
17 |
BuildRequires: gettext-devel |
18 |
Requires: vorbis-tools |
19 |
BuildRequires: libcdda-devel |
20 |
%if %build_id3 |
21 |
BuildRequires: libid3-devel |
22 |
%endif |
23 |
|
24 |
%description |
25 |
A GTK+-based CD player and ripper. It has the ripping |
26 |
capabilities of cdparanoia built in, but can also use external rippers |
27 |
(such as cdda2wav). It also provides an automated frontend for various |
28 |
encoders, letting you take a disc and transform it easily straight |
29 |
into Vorbis, FLAC or MP3 format (MP3 only with a separate MP3 encoder). |
30 |
The CDDB protocol is supported for retrieving track information from |
31 |
disc database servers. Grip works with DigitalDJ to provide a unified |
32 |
"computerized" version of your music collection. |
33 |
|
34 |
%prep |
35 |
%setup -q |
36 |
|
37 |
%build |
38 |
# fix build on aarch64 |
39 |
autoreconf -vfi |
40 |
|
41 |
%configure \ |
42 |
--disable-werror \ |
43 |
%if %build_id3 |
44 |
--enable-id3 \ |
45 |
%else |
46 |
--disable-id3 \ |
47 |
%endif |
48 |
%ifarch alpha ppc |
49 |
--disable-cdpar |
50 |
%endif |
51 |
|
52 |
%make_build |
53 |
|
54 |
%install |
55 |
%makeinstall |
56 |
#We don't need the file in both places |
57 |
rm -rf %{buildroot}/%{_datadir}/apps/solid/actions |
58 |
|
59 |
%find_lang %{name} |
60 |
|
61 |
%files -f %{name}.lang |
62 |
%doc ABOUT-NLS AUTHORS CREDITS README ChangeLog TODO |
63 |
%{_bindir}/* |
64 |
%{_datadir}/gnome/help/%{name}/ |
65 |
%{_datadir}/pixmaps/grip.png |
66 |
%{_datadir}/pixmaps/griptray.png |
67 |
%{_iconsdir}/hicolor/*/apps/%{name}.png |
68 |
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg |
69 |
%{_mandir}/man1/* |
70 |
%{_datadir}/applications/%{name}.desktop |
71 |
%{_datadir}/solid/actions/%{name}-audiocd.desktop |
72 |
%license COPYING* |