Name: mate-calc Version: 1.5.0 Release: 1%{?dist} Summary: MATE Desktop calculator License: GPLv2+ URL: http://mate-desktop.org Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz BuildRequires: gtk2-devel libxml2-devel mate-common mate-doc-utils bison flex mate-desktop-devel rarian-devel rarian-compat desktop-file-utils %description MATE Desktop calculator %prep %setup -q NOCONFIGURE=1 ./autogen.sh %build %configure --disable-scrollkeeper --disable-schemas-compile --with-gtk=2.0 make %{?_smp_mflags} V=1 %install make install DESTDIR=%{buildroot} find %{buildroot} -name '*.la' -exec rm -rf {} ';' find %{buildroot} -name '*.a' -exec rm -rf {} ';' %find_lang %{name} --all-name desktop-file-install \ --remove-category="MATE" \ --add-category="X-Mate" \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %postun if [ $1 -eq 0 ] ; then /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : fi %posttrans /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %files -f %{name}.lang %doc AUTHORS COPYING README %{_mandir}/man1/* %{_bindir}/mate-calc %{_bindir}/mate-calc-cmd %{_bindir}/mate-calculator %{_datadir}/applications/mate-calc.desktop %{_datadir}/glib-2.0/schemas/org.mate.mate-calc.gschema.xml %{_datadir}/mate-calc %{_datadir}/mate/help/mate-calc %changelog * Mon Nov 12 2012 Dan Mashal 1.5.0-1 - Initial build