%define name kanyremote
%define version 8.0

Summary: KDE frontend for anyRemote
Name: %{name}
Version: %{version}
Release: 1.suse11
License: GPLv3+
Group: System/Management
Source0: %{name}-%{version}.tar.gz
URL: http://anyremote.sourceforge.net/
Requires: python3-qt5, pybluez >= 0.22, anyremote >= 6.5 
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch

%description
kAnyRemote package is KDE GUI frontend for anyRemote 
(http://anyremote.sourceforge.net/) - remote control software for applications 
using Bluetooth or Wi-Fi.

%prep
%setup -q

%build
./configure --prefix=%{_prefix}

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}
mv $RPM_BUILD_ROOT/%{_datadir}/doc/%{name} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
 && rm -rf $RPM_BUILD_ROOT

%changelog

* Tue Apr 30 2019 Mikhail Fedotov <anyremote at mail.ru> - 8.0
- Port to python3

* Sun Jan 10 2018 Mikhail Fedotov <anyremote at mail.ru> - 7.0
- Some fixes

* Fri Jul 20 2017 Mikhail Fedotov <anyremote at mail.ru> - 6.4
- Move to QT5

* Fri Jan 16 2015 Mikhail Fedotov <anyremote at mail.ru> - 6.3.5
- Avahi support

* Sun Oct 5 2014 Mikhail Fedotov <anyremote at mail.ru> - 6.3.4
- Fix some issues with QIcon class

* Fri Jul 18 2014 Mikhail Fedotov <anyremote at mail.ru> - 6.3.3
- Large application icon and AppData support.

* Mon Dec 2 2013 Mikhail Fedotov <anyremote at mail.ru> - 6.3.2
- Fixed RedHat bugzilla bug 1034914

* Mon Sep 16 2013 Mikhail Fedotov <anyremote at mail.ru> - 6.3.1
- Greek translation was added (Thanks to Ioannis Servetas)

* Fri Aug 16 2013 Mikhail Fedotov <anyremote at mail.ru> - 6.3
- Drop PyKDE dependency, small corrections, fixed RedHat bugzilla bug 988080.

* Mon Jun 10 2013 Mikhail Fedotov <anyremote at mail.ru> - 6.2
- Multiconnection and autostart support.

* Wed Oct 10 2012 Mikhail Fedotov <anyremote at mail.ru> - 6.1
- Drop lightthpd dependency. Translation updates

* Mon Aug 13 2012 Mikhail Fedotov <anyremote at mail.ru> - 6.0.1
- Translation update 

* Fri May 25 2012 Mikhail Fedotov <anyremote at mail.ru> - 6.0
- Update to work with anyremote v6.0, drop support of anyremote2html

* Sun Dec 4 2011 Mikhail Fedotov <anyremote at mail.ru> - 5.13
- Add --tray commandline option

* Fri Mar 11 2011 Mikhail Fedotov <anyremote at mail.ru> - 5.12
- Czech translation updated. Correctly works with anyRemote v5.4

* Fri Sep 17 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.9
- Slovak translation updated 

* Wed Aug 4 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.8
- Do not use /sbin/ip if it absent

* Fri Jul 16 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.7
- Docs search path corrected.

* Tue Jul 6 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.6
- Small correction.

* Fri Jul 2 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.5
- Small correction.

* Tue Mar 9 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.4
- Some correction in translations.

* Mon Feb 15 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.3
- Some correction in translations. 128x128 java client icons handling.

* Mon Feb 01 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.2
- Fixed RedHat bugzilla bug 560302

* Wed Jan 27 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11.1
- Small updates.

* Fri Jan 22 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.11
- Command Fusion iViewer support.

* Mon Jul 6 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.10.2
- Translations were updated.

* Thu Jul 2 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.10
- Tool was rewritten on QT4. Enhanced handling of GuiAppBinary tag.
  Handle java client with 48x48 icons.

* Tue May 26 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.9
- Slovak translation was added (thanks to Michal Toth)

* Fri Apr 9 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.8.2
- Small enhancements 

* Tue Apr 7 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.8.1
- Fix small bug 

* Mon Mar 30 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.8
- Add GuiAppModes tag handling

* Wed Mar 11 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.7
- Finnish and Swedish translation were added (thanks to Matti Jokinen)

* Wed Jan 21 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.6.1-1
- Minor bugfix

* Mon Jan 19 2009 Mikhail Fedotov <anyremote at mail.ru> - 5.6-1
- Check java client version on the web site

* Sun Dec 21 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.5.1-1
- Fix upload from web feature

* Sun Dec 14 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.5-1
- Handle GuiAppVersion parameter in configuration files. Add possibility
  to download java client from Web. Small Ubuntu-specific fixes.

* Wed Dec 3 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.4.1-1
- Fix detection of activity of bluetooth service

* Fri Oct 17 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.4-1
- Enhanced edit configuration file window. Support application details 
  auto wrap. Added Bulgarian translation (thanks to Stanislav Popov)

* Wed Sep 24 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.3-1
- Add icons to menu and buttons.

* Mon Sep 8 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.2.1-1
- Small bugfixes.

* Thu Sep 4 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.2-1
- Added "Details" field to the main window.
  Added French translation (thanks to Philippe Hensel).

* Tue Aug 19 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.1-1
- Fixed crash on startup issue.
  Added Czech (thanks to Tomas Kaluza) and Dutch (thanks to Geert Vanhaute)
  translations.

* Mon Jul 21 2008 Mikhail Fedotov <anyremote at mail.ru> - 5.0-1
- Internationalization support.
  Added Polish (thanks to Marek Szuba), Austrian (thanks to Christian 
  Zehetnertran), German (thanks to Johann Bauer), Spanish (thanks to Carlos 
  Sánchez Mateo and Francisco), Brazilian Portuguese (thanks to Marcos 
  Venilton Batista),Italian (thanks to Massimo Robbiati) Hungarian (thanks to 
  Gyuris Szabolcs) and Russian translations.

* Sun May 25 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.9-1
- Bugfixes and enhancements to better support anyremote-J2ME client v4.6 and
  anyremote2html v0.5.

* Sun Apr 20 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.8-1
- Some small enhancements. Spec file correction.

* Tue Mar 11 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.7-1
- Some small enhancements. Corrected to work properly with anyRemote v4.4.

* Tue Feb 26 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.6-2
- Spec file correction

* Wed Feb 20 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.6-1
- Handle absense of .anyRemote directory

* Sun Feb 17 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.5-2
- Spec file correction

* Fri Feb 15 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.5-1
- Motorola RIZR Z3 support enhanced

%files
%defattr(-,root,root,-)
%{_bindir}/kanyremote
%{_datadir}/appdata/kanyremote.appdata.xml
%{_datadir}/applications/kanyremote.desktop
%{_datadir}/pixmaps/kanyremote_flash.png 
%{_datadir}/pixmaps/kanyremote_off.png 
%{_datadir}/pixmaps/kanyremote_light.png  
%{_datadir}/pixmaps/kanyremote_small.png  
%{_datadir}/pixmaps/kanyremote_logo.svg  
%{_datadir}/pixmaps/kanyremote.png
%{_defaultdocdir}/%{name}
%{_datadir}/locale/bg/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/cs_CZ/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/de_AT/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/de_DE/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/es_ES/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/fi_FI/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/fr_FR/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/hu_HU/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/it_IT/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/nl_NL/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/pl_PL/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/pt_BR/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/ru_RU/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/sk_SK/LC_MESSAGES/kanyremote.mo
%{_datadir}/locale/sv_SE/LC_MESSAGES/kanyremote.mo
