Debian Codegraph @

dist/rpm/sayonara.spec.in

raw
1 Name: sayonara
2 Version: @SAYONARA_VERSION_BASE@
3 Release: @SAYONARA_VERSION_RELEASE@
4 Summary: A lightweight Qt Audio player
5
6 License: GPLv3+
7 URL: http://sayonara-player.com
8 Source0: https://gitlab.com/luciocarreras/sayonara-player/-/archive/%{version}-%{release}/sayonara-player-%{version}-%{release}.tar.bz2
9 BuildRequires: cmake
10 BuildRequires: desktop-file-utils
11 BuildRequires: libappstream-glib
12 BuildRequires: qt5-qtbase-devel
13 BuildRequires: qt5-linguist
14 BuildRequires: qt5-qtsvg-devel
15 BuildRequires: gstreamer1-plugins-base-devel
16 BuildRequires: libnotify-devel
17 BuildRequires: taglib-devel
18 Requires: qt5-qtsvg
19 Requires: hicolor-icon-theme
20 Requires: gstreamer1-plugins-bad-free
21 Requires: python-pydbus
22
23 %description
24 %{name} is a small, clear, not yet platform-independent music player. Low
25 CPU usage, low memory consumption and no long loading times are only three
26 benefits of this player. Sayonara should be easy and intuitive to use and
27 therefore it should be able to compete with the most popular music players.
28
29 %package doc
30 Summary: Documentation files for %{name}
31 BuildArch: noarch
32
33 %description doc
34 The %{name}-doc package contains html documentation
35 that use %{name}.
36
37 %prep
38 %autosetup -p1 -n %{name}-player-%{version}-%{release}
39
40 rm -rf .gitignore .gitlab-ci.yml debian
41
42 %build
43 %cmake . -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
44 -DCMAKE_INSTALL_PREFIX=%{_prefix}
45 %cmake_build
46
47 %install
48 %cmake_install
49
50 %find_lang %{name} --all-name --with-qt
51
52 %check
53 desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
54 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
55
56 %files -f %{name}.lang
57 %license LICENSE
58 %doc MANUAL README.md INSTALL.md
59 %{_bindir}/%{name}
60 %{_bindir}/%{name}-ctl
61 %{_bindir}/%{name}-query
62 %{_datadir}/applications/com.sayonara-player.Sayonara.desktop
63 %{_datadir}/icons/hicolor/*/apps/%{name}.png
64 %{_datadir}/metainfo/com.sayonara-player.Sayonara.appdata.xml
65 %dir %{_datadir}/%{name}
66 %dir %{_datadir}/%{name}/translations
67 %dir %{_datadir}/%{name}/translations/icons
68 %{_datadir}/%{name}/translations/icons/*.png
69 %{_mandir}/man1/%{name}.1.gz
70 %{_mandir}/man1/%{name}-ctl.1.gz
71 %{_mandir}/man1/%{name}-query.1.gz
72
73 %changelog
74 * @SAYONARA_DATE_TODAY@ Michael Lugmair <[email protected]> - @SAYONARA_VERSION@
75 - New Release @SAYONARA_VERSION@