Add strawberry.appdata.xml to spec files
This commit is contained in:
parent
2f4417d683
commit
27582b7a4e
7
dist/fedora/strawberry.spec.in
vendored
7
dist/fedora/strawberry.spec.in
vendored
@ -10,6 +10,7 @@ Source0: %{name}-@STRAWBERRY_VERSION_PACKAGE@.tar.xz
|
|||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: libappstream-glib
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: liblastfm-qt5-devel
|
BuildRequires: liblastfm-qt5-devel
|
||||||
@ -67,7 +68,7 @@ Features:
|
|||||||
* Audio analyzer
|
* Audio analyzer
|
||||||
* Equalizer
|
* Equalizer
|
||||||
* Transfer music to iPod, iPhone, MTP or mass-storage USB player
|
* Transfer music to iPod, iPhone, MTP or mass-storage USB player
|
||||||
* Integrated Tidal support
|
* Integrated Tidal and Deezer support
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@
|
%setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@
|
||||||
@ -91,10 +92,11 @@ popd
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
||||||
rm -rf %{buildroot}%{_datadir}/metainfo
|
mv %{buildroot}%{_datadir}/metainfo %{buildroot}%{_datadir}/appdata
|
||||||
|
|
||||||
%check
|
%check
|
||||||
desktop-file-validate %{buildroot}%{_datadir}/applications/strawberry.desktop
|
desktop-file-validate %{buildroot}%{_datadir}/applications/strawberry.desktop
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/strawberry.appdata.xml
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -107,6 +109,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/strawberry.desktop
|
|||||||
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
|
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
|
||||||
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
|
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
|
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
|
||||||
|
%{_datadir}/appdata/strawberry.appdata.xml
|
||||||
%{_mandir}/man1/strawberry.1.*
|
%{_mandir}/man1/strawberry.1.*
|
||||||
%{_mandir}/man1/strawberry-tagreader.1.*
|
%{_mandir}/man1/strawberry-tagreader.1.*
|
||||||
|
|
||||||
|
20
dist/opensuse/strawberry.spec.in
vendored
20
dist/opensuse/strawberry.spec.in
vendored
@ -15,6 +15,7 @@ BuildRequires: boost-devel
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: appstream-glib
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: libQt5Gui-private-headers-devel
|
BuildRequires: libQt5Gui-private-headers-devel
|
||||||
@ -76,7 +77,7 @@ Features:
|
|||||||
* Audio analyzer
|
* Audio analyzer
|
||||||
* Equalizer
|
* Equalizer
|
||||||
* Transfer music to iPod, iPhone, MTP or mass-storage USB player
|
* Transfer music to iPod, iPhone, MTP or mass-storage USB player
|
||||||
* Integrated Tidal support
|
* Integrated Tidal and Deezer support
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-@STRAWBERRY_VERSION_PACKAGE@
|
%setup -q -n %{name}-@STRAWBERRY_VERSION_PACKAGE@
|
||||||
@ -88,12 +89,22 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
cd build
|
cd build
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
rm -rf %{buildroot}%{_datadir}/metainfo
|
%if 0%{?suse_version} < 1500
|
||||||
|
mv %{buildroot}%{_datadir}/metainfo %{buildroot}%{_datadir}/appdata
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
cd build
|
cd build
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
|
%check
|
||||||
|
desktop-file-validate %{buildroot}%{_datadir}/applications/strawberry.desktop
|
||||||
|
%if 0%{?suse_version} >= 1500
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/strawberry.appdata.xml
|
||||||
|
%else
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/strawberry.appdata.xml
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.md Changelog
|
%doc README.md Changelog
|
||||||
@ -105,6 +116,11 @@ make clean
|
|||||||
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
|
%{_datadir}/icons/hicolor/64x64/apps/strawberry.png
|
||||||
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
|
%{_datadir}/icons/hicolor/128x128/apps/strawberry.png
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
|
%{_datadir}/icons/hicolor/scalable/apps/strawberry.svg
|
||||||
|
%if 0%{?suse_version} >= 1500
|
||||||
|
%{_datadir}/metainfo/strawberry.appdata.xml
|
||||||
|
%else
|
||||||
|
%{_datadir}/appdata/strawberry.appdata.xml
|
||||||
|
%endif
|
||||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||||
%{_mandir}/man1/%{name}-tagreader.1%{?ext_man}
|
%{_mandir}/man1/%{name}-tagreader.1%{?ext_man}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user