Summary: GNOME calculator
Summary(pl.UTF-8): Kalkulator dla GNOME
Name: gcalctool
-Version: 5.8.25
+Version: 6.0.1
Release: 1
License: GPL v2
-Group: Applications/Math
-Source0: http://ftp.gnome.org/pub/gnome/sources/gcalctool/5.8/%{name}-%{version}.tar.bz2
-# Source0-md5: 28074081a9625b8b3d1f7499bc27bbfb
-Patch0: %{name}-desktop.patch
-URL: http://www.gnome.org/
-BuildRequires: GConf2-devel >= 2.16.0
-BuildRequires: atk-devel >= 1:1.12.3
+Group: X11/Applications
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gcalctool/6.0/%{name}-%{version}.tar.bz2
+# Source0-md5: b88f518ff1a6838e831625402a901704
+URL: http://live.gnome.org/Gcalctool
BuildRequires: autoconf >= 2.53
BuildRequires: automake
BuildRequires: bison
+BuildRequires: docbook-dtd412-xml
BuildRequires: flex
BuildRequires: gettext-devel
-BuildRequires: intltool >= 0.35.0
-BuildRequires: libgnomeui-devel >= 2.16.1
+BuildRequires: glib2-devel >= 1:2.26.0
+BuildRequires: gnome-common >= 2.24.0
+BuildRequires: gnome-doc-utils >= 0.14.0
+BuildRequires: gtk+3-devel >= 3.0.0
+BuildRequires: intltool >= 0.40.0
BuildRequires: libtool
+BuildRequires: libxml2-devel
+BuildRequires: libxml2-progs
BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: rpmbuild(find_lang) >= 1.23
+BuildRequires: rpmbuild(macros) >= 1.592
BuildRequires: scrollkeeper
-Requires(post,preun): GConf2 >= 2.16.0
+Requires(post,postun): glib2 >= 1:2.26.0
Requires(post,postun): scrollkeeper
-Requires: libgnomeui >= 2.16.1
+Requires: dconf
+# sr@Latn vs. sr@latin
+Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-%patch0 -p0
%build
%{__gnome_doc_common}
+%{__glib_gettextize}
+%{__intltoolize}
+%{__libtoolize}
%{__aclocal}
%{__autoconf}
+%{__autoheader}
%{__automake}
%configure \
- --disable-schemas-install \
- --disable-scrollkeeper
+ --disable-scrollkeeper \
+ --disable-silent-rules
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%find_lang %{name} --with-gnome --all-name
+%find_lang %{name} --with-gnome --with-omf --all-name
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%gconf_schema_install gcalctool.schemas
%scrollkeeper_update_post
-
-%preun
-%gconf_schema_uninstall gcalctool.schemas
+%glib_compile_schemas
%postun
%scrollkeeper_update_postun
+%glib_compile_schemas
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO gcalctoolrc
-%attr(755,root,root) %{_bindir}/%{name}
-%{_sysconfdir}/gconf/schemas/gcalctool.schemas
-%{_desktopdir}/*.desktop
-%{_omf_dest_dir}/%{name}
-%{_mandir}/man1/*
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/gcalccmd
+%attr(755,root,root) %{_bindir}/gcalctool
+%attr(755,root,root) %{_bindir}/gnome-calculator
+%{_desktopdir}/gcalctool.desktop
+%{_datadir}/gcalctool
+%{_datadir}/glib-2.0/schemas/org.gnome.gcalctool.gschema.xml
+%{_mandir}/man1/gcalccmd.1*
+%{_mandir}/man1/gcalctool.1*