diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aabaab8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/audiotube-22.02.tar.xz diff --git a/audiotube.spec b/audiotube.spec new file mode 100644 index 0000000..d666cc8 --- /dev/null +++ b/audiotube.spec @@ -0,0 +1,76 @@ +%global kf5_min_version 5.86.0 + +Name: audiotube +Version: 22.02 +Release: 1%{?dist} +License: GPLv2+ +Summary: AudioTube can search YouTube Music, list albums and artists, play automatically generated playlists, albums and allows to put your own playlist together. +Url: https://apps.kde.org/audiotube/ +Source: https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz + + +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib + +BuildRequires: gcc-c++ +BuildRequires: extra-cmake-modules >= %{kf5_min_version} +BuildRequires: kf5-rpm-macros >= %{kf5_min_version} + + +BuildRequires: pybind11-devel +BuildRequires: yt-dlp +BuildRequires: python3-ytmusicapi + +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(Qt5QuickControls2) +BuildRequires: cmake(Qt5Svg) +BuildRequires: cmake(Qt5Network) +BuildRequires: cmake(Qt5QmlModels) +BuildRequires: cmake(Qt5Quick) +BuildRequires: cmake(Qt5QuickControls2) +BuildRequires: cmake(Qt5Widgets) + +BuildRequires: cmake(KF5CoreAddons) >= %{kf5_min_version} +BuildRequires: cmake(KF5Crash) >= %{kf5_min_version} +BuildRequires: cmake(KF5I18n) >= %{kf5_min_version} +BuildRequires: cmake(KF5Kirigami2) >= %{kf5_min_version} + + +Requires: hicolor-icon-theme +Requires: yt-dlp +Requires: python3-ytmusicapi + +%description +%{summary}. + +%prep +%autosetup + +%build +%cmake_kf5 +%cmake_build + +%install +%cmake_install +%find_lang %{name} + +%check +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop +appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml + + +%files -f %{name}.lang +%license LICENSES/* +%{_kf5_bindir}/%{name} +%{_kf5_datadir}/applications/org.kde.%{name}.desktop +%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml +%{_kf5_datadir}/icons/hicolor/scalable/apps/org.kde.%{name}.svg + + +%changelog +* Thu Feb 10 2022 Onuralp SEZER - 22.02-1 +- Plasma mobile version 22.02 + +* Sun Jan 16 2022 Onuralp SEZER - 21.12-1 +- Initial version of package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..54e07a3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (audiotube-22.02.tar.xz) = 70c52a809a6db62a14f0a9371e22e90811fd6c08afc0caf0810e3fc7fc178ac168ff3ce4bb9a7883b57ce6f6c4d4408352e26ac7072f5d195894337d4b5f474d