Summary: GNOME calculator
-Summary(pl): Kalkulator dla GNOME
+Summary(pl.UTF-8): Kalkulator dla GNOME
Name: gcalctool
-Version: 4.3.46
+Version: 6.0.1
Release: 1
-License: GPL
-Group: Applications/Math
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/4.3/%{name}-%{version}.tar.bz2
-# Source0-md5: 60b878ce4f20756eedcce544dd4968fa
-Patch0: %{name}-locale-names.patch
-URL: http://www.gnome.org/
-BuildRequires: GConf2-devel >= 2.4.0
-BuildRequires: autoconf
+License: GPL v2
+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: libgnomeui-devel >= 2.4.0
+BuildRequires: bison
+BuildRequires: docbook-dtd412-xml
+BuildRequires: flex
+BuildRequires: gettext-devel
+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(find_lang) >= 1.23
+BuildRequires: rpmbuild(macros) >= 1.592
BuildRequires: scrollkeeper
-Requires(post): /usr/bin/scrollkeeper-update
-Requires(post): GConf2
+Requires(post,postun): glib2 >= 1:2.26.0
+Requires(post,postun): scrollkeeper
+Requires: dconf
+# sr@Latn vs. sr@latin
+Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
gcalctool is a simple calculator that performs a variety of functions.
-%description -l pl
-gcalctool jest prostym kalkulatorem spe³niaj±cym wiele funkcji.
+%description -l pl.UTF-8
+gcalctool jest prostym kalkulatorem spełniającym wiele funkcji.
%prep
%setup -q
-%patch0 -p1
-
-mv po/{no,nb}.po
%build
+%{__gnome_doc_common}
+%{__glib_gettextize}
+%{__intltoolize}
+%{__libtoolize}
%{__aclocal}
%{__autoconf}
+%{__autoheader}
%{__automake}
%configure \
- --disable-schemas-install
-
+ --disable-scrollkeeper \
+ --disable-silent-rules
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+ 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
-/usr/bin/scrollkeeper-update
-%gconf_schema_install
+%scrollkeeper_update_post
+%glib_compile_schemas
-%postun -p /usr/bin/scrollkeeper-update
+%postun
+%scrollkeeper_update_postun
+%glib_compile_schemas
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS gcalctoolrc NEWS README TODO
-%attr(755,root,root) %{_bindir}/%{name}
-%{_sysconfdir}/gconf/schemas/*
-%{_desktopdir}/*
-%{_omf_dest_dir}/%{name}
-%{_pixmapsdir}/*
-%{_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*