Loading

gradio spec

  1. # Note:         Gradio version 8.0 was rewritten in Rust and renamed to Shortwave
  2.  
  3. %global         appname         Shortwave
  4. %global         filename        de.haeckerfelix
  5. %global         archivename     %{appname}-v%{version}
  6.  
  7. Name:           gradio
  8. Version:        7.2
  9. Release:        9%{?dist}
  10. Summary:        Find and listen to internet radio stations
  11.  
  12. License:        GPLv3+
  13. URL:            https://gitlab.gnome.org/World/Shortwave
  14. Source0:        %{url}/-/archive/v%{version}/%{archivename}.tar.bz2
  15.  
  16. # Adding multiple translations which not included by upstream:
  17. # hi, hu, ca, cmn, fi, ga, id, ja, ko, pt_PT, ru
  18. Patch0:         %{name}-translations.patch
  19.  
  20. # The Appdata files now go to /usr/share/metainfo
  21. Patch1:         %{name}-metainfo-path-change.patch
  22.  
  23. BuildRequires:  intltool
  24. BuildRequires:  meson
  25. BuildRequires:  pkgconfig(appstream-builder)
  26. BuildRequires:  pkgconfig(gee-0.8)
  27. BuildRequires:  pkgconfig(gio-2.0)
  28. BuildRequires:  pkgconfig(glib-2.0)
  29. BuildRequires:  pkgconfig(gstreamer-1.0)
  30. BuildRequires:  pkgconfig(gstreamer-pbutils-1.0)
  31. BuildRequires:  pkgconfig(gtk+-3.0) >= 3.20
  32. BuildRequires:  pkgconfig(json-glib-1.0)
  33. BuildRequires:  pkgconfig(libsoup-2.4)
  34. BuildRequires:  pkgconfig(sqlite3)
  35. BuildRequires:  /usr/bin/appstream-util
  36. BuildRequires:  /usr/bin/desktop-file-validate
  37. BuildRequires:  vala
  38.  
  39. Requires:       dconf
  40. Requires:       hicolor-icon-theme
  41.  
  42. %description
  43. A GTK3 app for finding and listening to internet radio stations.
  44.  
  45. %prep
  46. %autosetup -p1 -n %{archivename}
  47.  
  48. %build
  49. %meson
  50. %meson_build
  51.  
  52. %install
  53. %meson_install
  54. %find_lang %{name}
  55.  
  56. %check
  57. appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{filename}.%{name}.appdata.xml
  58. desktop-file-validate %{buildroot}%{_datadir}/applications/%{filename}.%{name}.desktop
  59.  
  60. %files -f %{name}.lang
  61. %doc README.md
  62. %license LICENSE.md
  63. %{_bindir}/%{name}
  64. %{_datadir}/applications/%{filename}.%{name}.desktop
  65. %{_datadir}/dbus-1/services/%{filename}.%{name}.service
  66. %{_datadir}/glib-2.0/schemas/%{filename}.%{name}.gschema.xml
  67. %{_datadir}/gnome-shell/search-providers/%{filename}.%{name}.search-provider.ini
  68. %{_datadir}/icons/hicolor/*/apps/%{filename}.%{name}-symbolic.svg
  69. %{_datadir}/icons/hicolor/*/apps/%{filename}.%{name}.png
  70. %{_datadir}/icons/hicolor/*/apps/%{filename}.%{name}.svg
  71. %{_metainfodir}/%{filename}.%{name}.appdata.xml
  72.  
  73. %changelog
  74. * Sun Feb 17 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 7.2-9
  75. - Updated spec file
  76.  
  77. * Mon Feb 04 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 7.2-4
  78. - Removed gnome-shell dependency
  79.  
  80. * Sun Feb 03 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 7.2-3
  81. - Updated spec file
  82. - Added multiple translations: ca, cmn, fi, ga, hi, hu, id, ja, ko, pt_PT
  83.  
  84. * Fri Feb 1 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 7.2-2
  85. - Spec file fixes
  86.  
  87. * Thu Jan 31 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 7.2-1
  88. - Added Russian translation