Name:		radiotray-ng
Version:	0.2.9
Release:	%mkrel 1
Summary:	An Internet radio player for Linux
License:	GPLv3+
Group:		Sound/Players
URL:		https://github.com/ebruck/radiotray-ng
Source0:	https://github.com/ebruck/radiotray-ng/archive/v%{version}/%{name}-%{version}.tar.gz


BuildRequires:	git-core
BuildRequires:	cmake
BuildRequires:	curl-devel
BuildRequires:	boost-devel
BuildRequires:	wxgtk-devel
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(libxdg-basedir)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(ayatana-appindicator3-0.1)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(glibmm-2.4)
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-ugly
Requires:	gstreamer1.0-soup
Requires:	python-lxml
Provides:	radiotray

%description
Radiotray-NG runs in the system tray allowing you to select and play
configured radio stations.

%prep
%autosetup -p1 -Sgit_am

# fix distributor
sed -i -e '/DISTRIBUTOR_ID/s/fedora/%{_real_vendor}/g' package/CMakeLists.txt

%build
%cmake \
	-DCONFIGURED_ONCE:BOOL=YES
%cmake_build

%install
%cmake_install

# fix .desktop file
desktop-file-edit %{buildroot}%{_datadir}/applications/radiotray-ng.desktop \
	--set-comment="Internet Radio Player" \
	--set-icon=radiotray-ng-on

# another .desktop file with bad icon
desktop-file-edit %{buildroot}%{_datadir}/applications/rtng-bookmark-editor.desktop \
	--set-icon=radiotray-ng-on

# yet another .desktop file with bad icon
desktop-file-edit %{buildroot}%{_sysconfdir}/xdg/autostart/radiotray-ng.desktop \
        --set-icon=radiotray-ng-on

# handle docs in files section
rm -rf %{buildroot}%{_docdir}
rm -rf %{buildroot}%{_datadir}/licences

%files
%license COPYING
%doc README.md AUTHORS
%{_bindir}/radiotray-ng
%{_bindir}/rt2rtng
%{_bindir}/rtng-bookmark-editor
%{_datadir}/radiotray-ng/
%{_datadir}/applications/radiotray-ng.desktop
%{_datadir}/applications/rtng-bookmark-editor.desktop
%{_sysconfdir}/xdg/autostart/radiotray-ng.desktop
%{_iconsdir}/{hicolor,Yaru}/*/apps/radiotray-ng*.{png,svg}
%{_iconsdir}/breeze/apps/*/radiotray-ng*.{png,svg}
%{_datadir}/metainfo/radiotray-ng.appdata.xml


%changelog
* Tue Feb 04 2025 xgrind <xgrind> 0.2.9-1.mga9
- removing ubuntu-mono-light icons

* Fri Jan 31 2025 xgrind <xgrind> 0.2.9-1.mga9
- new version 0.2.9

* Fri Sep 13 2024 wally <wally> 0.2.8-18.mga10
+ Revision: 2095515
- rebuild for boost 1.86.0

* Sat Aug 10 2024 wally <wally> 0.2.8-17.mga10
+ Revision: 2084776
- add patches to fix deprecation warnings

* Wed Jun 19 2024 wally <wally> 0.2.8-16.mga10
+ Revision: 2075468
- add patch to fix missing include
- rebuild for boost 1.85.0

* Fri Jan 12 2024 wally <wally> 0.2.8-15.mga10
+ Revision: 2030591
- rebuild for boost 1.84.0

* Sun Oct 29 2023 daviddavid <daviddavid> 0.2.8-14.mga10
+ Revision: 2002569
- rebuild for new jsoncpp 1.9.5

* Wed Sep 27 2023 wally <wally> 0.2.8-13.mga10
+ Revision: 1991493
- rebuild for boost 1.83.0

* Sun Jan 01 2023 wally <wally> 0.2.8-12.mga9
+ Revision: 1928526
- fix autostart .desktop file icon

* Sat Dec 24 2022 wally <wally> 0.2.8-11.mga9
+ Revision: 1926526
- rebuild for boost 1.81.0

* Fri Jul 15 2022 wally <wally> 0.2.8-10.mga9
+ Revision: 1868998
- rebuild for wxgtk 3.2.0

* Sun Jul 03 2022 wally <wally> 0.2.8-9.mga9
+ Revision: 1867307
- rebuild for boost 1.79.0

* Sun Jun 12 2022 wally <wally> 0.2.8-8.mga9
+ Revision: 1864106
- rebuild for wxgtk 3.1.7

* Fri Apr 15 2022 wally <wally> 0.2.8-7.mga9
+ Revision: 1849991
- rebuild for wxgtk 3.1.6

* Mon Apr 04 2022 umeabot <umeabot> 0.2.8-6.mga9
+ Revision: 1842908
- Mageia 9 Mass Rebuild

* Sat Jan 15 2022 wally <wally> 0.2.8-5.mga9
+ Revision: 1768513
- rebuild for wxgtk 3.1.5 with working wxSizer::SetSizeHints()

* Sat Jan 01 2022 wally <wally> 0.2.8-4.mga9
+ Revision: 1765716
- rebuild for wxgtk 3.1.5 to resolve 'Symbol X has different size in shared object, consider re-linking' error

* Sun Dec 19 2021 wally <wally> 0.2.8-3.mga9
+ Revision: 1762690
- rebuild for boost 1.78.0

* Thu Sep 09 2021 wally <wally> 0.2.8-2.mga9
+ Revision: 1744628
- rebuild for boost 1.77.0

* Thu Aug 26 2021 wally <wally> 0.2.8-1.mga9
+ Revision: 1742642
- new version 0.2.8

* Fri May 14 2021 wally <wally> 0.2.7-13.mga9
+ Revision: 1723014
- rebuild for boost 1.76.0

* Fri Jan 01 2021 wally <wally> 0.2.7-12.mga8
+ Revision: 1667725
- rebuild for wxgtk pre 3.1.5 snapshot

* Thu Dec 31 2020 wally <wally> 0.2.7-11.mga8
+ Revision: 1666813
- rebuild for boost 1.75.0

* Sun Dec 20 2020 wally <wally> 0.2.7-10.mga8
+ Revision: 1662055
- rebuild for boost 1.74.0

* Sun Nov 29 2020 luigiwalser <luigiwalser> 0.2.7-9.mga8
+ Revision: 1650318
- rebuild for jsoncpp

* Sun Nov 29 2020 wally <wally> 0.2.7-8.mga8
+ Revision: 1650158
- fix French radio stations patch (mga#27681)

* Sun Aug 16 2020 wally <wally> 0.2.7-7.mga8
+ Revision: 1614366
- rebuild for new wxgtk 3.1.4

* Mon Aug 03 2020 wally <wally> 0.2.7-6.mga8
+ Revision: 1610836
- add patch to port to Ayatana AppIndicator

* Sun May 03 2020 wally <wally> 0.2.7-5.mga8
+ Revision: 1578108
- rebuild for boost 1.73.0

* Wed Feb 19 2020 umeabot <umeabot> 0.2.7-4.mga8
+ Revision: 1544896
- Mageia 8 Mass Rebuild

* Sun Jan 26 2020 wally <wally> 0.2.7-3.mga8
+ Revision: 1483428
- rebuild for boost 1.72.0
- build with new cmake macros

* Tue Nov 12 2019 wally <wally> 0.2.7-2.mga8
+ Revision: 1459488
- rebuild for wxgtk 3.1.3

* Sun Oct 27 2019 wally <wally> 0.2.7-1.mga8
+ Revision: 1456066
- new version 0.2.7

* Wed Jul 10 2019 wally <wally> 0.2.6-1.mga8
+ Revision: 1419909
- new version 0.2.6

* Mon Jul 08 2019 wally <wally> 0.2.5-3.mga8
+ Revision: 1419534
- rebuild for wxgtk 3.1.2 with 2.8 compatibility

* Sun Jun 30 2019 wally <wally> 0.2.5-2.mga8
+ Revision: 1416373
- rebuild with gtk3 enabled wxgtk 3.1.2

* Mon Apr 15 2019 wally <wally> 0.2.5-1.mga7
+ Revision: 1390796
- new version 0.2.5
+ alexl <alexl>
- typo

* Sat Oct 20 2018 wally <wally> 0.2.4-1.mga7
+ Revision: 1322978
- new version 0.2.4

* Tue Oct 16 2018 wally <wally> 0.2.3-3.mga7
+ Revision: 1321092
- rebuild for new boost 1.68.0

* Sun Oct 07 2018 umeabot <umeabot> 0.2.3-2.mga7
+ Revision: 1318465
- Mageia 7 Mass Rebuild

* Sun Jul 29 2018 wally <wally> 0.2.3-1.mga7
+ Revision: 1245750
- new version 0.2.3

* Sun May 06 2018 wally <wally> 0.2.2-1.mga7
+ Revision: 1226839
- new version 0.2.2

* Sat Jan 20 2018 wally <wally> 0.2.0-5.mga7
+ Revision: 1195091
- require gstreamer1.0-plugins-ugly

* Sat Jan 06 2018 wally <wally> 0.2.0-4.mga7
+ Revision: 1190974
- yet another icon fix
- use better app icons

* Sat Jan 06 2018 wally <wally> 0.2.0-2.mga7
+ Revision: 1190969
- fix bookmark editor menu icon

* Sat Jan 06 2018 wally <wally> 0.2.0-1.mga7
+ Revision: 1190958
- new version 0.2.0

* Mon Dec 25 2017 wally <wally> 0.1.8-4.mga7
+ Revision: 1184705
- rebuild for new boost

* Tue Nov 21 2017 tv <tv> 0.1.8-3.mga7
+ Revision: 1178106
- rebuild for boost 1.65

* Sat Nov 04 2017 wally <wally> 0.1.8-2.mga7
+ Revision: 1175938
- install better app menu icon

* Sat Nov 04 2017 wally <wally> 0.1.8-1.mga7
+ Revision: 1175926
- imported package radiotray-ng to replace radiotray