5f4a2b5
Name:           gnome-calculator
Richard Hughes fffd0bd
Version:        3.8.1
e043c89
Release:        1%{?dist}
5f4a2b5
Summary:        A desktop calculator
5f4a2b5
5f4a2b5
Group:          Applications/System
5f4a2b5
License:        GPLv2+
5f4a2b5
URL:            http://live.gnome.org/Gcalctool
5f4a2b5
#VCS: git:git://git.gnome.org/gcalctool
32e737e
Source0:        http://download.gnome.org/sources/%{name}/3.8/%{name}-%{version}.tar.xz
5f4a2b5
5f4a2b5
BuildRequires: glib2-devel
5f4a2b5
BuildRequires: gtk3-devel
5f4a2b5
BuildRequires: libsoup-devel
5f4a2b5
BuildRequires: desktop-file-utils
5f4a2b5
BuildRequires: gettext
5f4a2b5
BuildRequires: flex
5f4a2b5
BuildRequires: bison
5f4a2b5
BuildRequires: intltool
5f4a2b5
BuildRequires: itstool
5f4a2b5
5f4a2b5
Requires(post): glib2
5f4a2b5
Requires(postun): glib2
5f4a2b5
5c2dacb
Provides:  gcalctool = 6.6.2-3
5c2dacb
Obsoletes: gcalctool < 6.6.2-3
5f4a2b5
5f4a2b5
5f4a2b5
%description
5f4a2b5
gnome-calculator is a powerful graphical calculator with financial,
5f4a2b5
logical and scientific modes. It uses a multiple precision package
5f4a2b5
to do its arithmetic to give a high degree of accuracy.
5f4a2b5
5f4a2b5
5f4a2b5
%prep
5f4a2b5
%setup -q
5f4a2b5
5f4a2b5
5f4a2b5
%build
5f4a2b5
%configure
5f4a2b5
make %{?_smp_mflags}
5f4a2b5
5f4a2b5
5f4a2b5
%install
5f4a2b5
make install DESTDIR=$RPM_BUILD_ROOT
5f4a2b5
f5745d4
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gcalctool.desktop
5f4a2b5
5f4a2b5
%find_lang %{name} --with-gnome --all-name
5f4a2b5
5f4a2b5
5f4a2b5
%postun
5f4a2b5
if [ $1 -eq 0 ] ; then
5f4a2b5
     glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
5f4a2b5
fi
5f4a2b5
5f4a2b5
5f4a2b5
%posttrans
5f4a2b5
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
5f4a2b5
5f4a2b5
5f4a2b5
%files -f %{name}.lang
5f4a2b5
%doc COPYING NEWS
5f4a2b5
%{_bindir}/gcalccmd
5f4a2b5
%{_bindir}/gnome-calculator
f5745d4
%{_datadir}/applications/gcalctool.desktop
5f4a2b5
%{_datadir}/glib-2.0/schemas/org.gnome.calculator.gschema.xml
5f4a2b5
%{_datadir}/gnome-calculator
5f4a2b5
%doc %{_mandir}/man1/gnome-calculator.1.gz
5f4a2b5
%doc %{_mandir}/man1/gcalccmd.1.gz
5f4a2b5
5f4a2b5
5f4a2b5
%changelog
Richard Hughes fffd0bd
* Mon Apr 15 2013 Richard Hughes <rhughes@redhat.com> - 3.8.1-1
Richard Hughes fffd0bd
- Update to 3.8.1
Richard Hughes fffd0bd
32e737e
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
32e737e
- Update to 3.8.0
32e737e
f5745d4
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.92-1
f5745d4
- Update to 3.7.92
f5745d4
e043c89
* Thu Mar  7 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
e043c89
- Update to 3.7.91
e043c89
5c2dacb
* Fri Feb 22 2013 Adel Gadllah <adel.gadllah@gmail.com> - 3.7.90-2
5c2dacb
- Bump obsolete (mass rebuild bumped the gcalcool nevr)
5c2dacb
e244b7f
* Thu Feb 21 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.90-1
e244b7f
- Update to 3.7.90
e244b7f
3a3fae9
* Wed Feb 06 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-1
3a3fae9
- Update to 3.7.5
3a3fae9
5f4a2b5
* Wed Jan 16 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.4-2
5f4a2b5
- Fix keyword translations in desktop file
5f4a2b5
5f4a2b5
* Wed Jan 16 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.4-1
5f4a2b5
- Renamed package from gcalctool to gnome-calculator