Name:           kiran-calculator      

Version:        2.2.1
Release:        1
Summary:        Kiran Calculator

License:        GPLv3
Source0:        %{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  qt5-qtbase-devel
BuildRequires:  qt5-linguist
BuildRequires:  kiran-widgets-qt5-devel
BuildRequires:  kiran-log-qt5-devel
BuildRequires:  kiran-qt5-integration-devel
Requires:    qt5-qtbase
Requires:    kiran-widgets-qt5
Requires:    kiran-log-qt5
Requires:    gtk-update-icon-cache
Requires:	kiran-qt5-integration

%description
This is a calculator with three modes:standard,science and programmer

%prep
%autosetup -p1

%build
%{__mkdir} -p %{buildroot}
%cmake
make %{?_smp_mflags}

%post
gtk-update-icon-cache -f /usr/share/icons/hicolor/

%install
%make_install

%files
%{_datadir}/kiran-calculator/translations/*.qm
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/24x24/apps/kc-calculator.png
%{_bindir}/kiran-calculator
%clean
rm -rf ${buildroot}

%changelog
* Wed Jul 13 2022 luoqing <luoqing@kylinsec.com.cn> - 2.2.1-1
- KYOS-F: Add light theme
- KYOS-F: Fix C99 standard compilation problem and change to gnu99 standard

* Tue Mar 01 2022 longcheng <longcheng@kylinos.com.cn> - 2.2.0-5
- KYOS-B: Add Requires gtk-update-icon-cache

* Thu Feb 24 2022 chendingjian <chendingjian@kylinos.com.cn> - 2.2.0-4
- rebuild for KY3.4-MATE-modules-dev

* Wed Dec 29 2021 kpkg <kpkg@kylinos.com.cn> - 2.2.0-3.kb1
- rebuild for KY3.4-MATE-modules-dev

* Wed Dec 29 2021 caoyuanji<caoyuanji@kylinos.com.cn> - 2.2.0-3
- Upgrade version number for easy upgrade

* Mon Dec 20 2021 caoyuanji <caoyuanji@kylinos.com.cn> - 2.2.0-2.kb2
- rebuild for KY3.4-4-KiranUI-2.2

* Mon Dec 20 2021 caoyuanji <caoyuanji@kylinos.com.cn> - 2.2.0-2.kb1
- rebuild for KY3.4-4-KiranUI-2.2

* Mon Dec  06 2021 luoqing <luoqing@kylinos.com.cn> - 2.2.0-2.ky3
- KYOS-F: fix releasing memory when history is updated and programmer mode input 

* Fri Nov  12 2021 luoqing <luoqing@kylinos.com.cn> - 2.2.0-1.kb2
- KYOS-F: move button menu position

* Tue Nov  09 2021 luoqing <luoqing@kylinos.com.cn> - 2.2.0-1.kb1
- Inital build
