|
Dan Mashal |
4b5427c |
Name: mate-calc
|
|
|
c323ebd |
Version: 1.5.1
|
|
Dan Mashal |
423c350 |
Release: 2%{?dist}
|
|
Dan Mashal |
4b5427c |
Summary: MATE Desktop calculator
|
|
Dan Mashal |
4b5427c |
License: GPLv2+
|
|
Dan Mashal |
4b5427c |
URL: http://mate-desktop.org
|
|
Dan Mashal |
423c350 |
Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
|
|
Dan Mashal |
4b5427c |
|
|
|
c323ebd |
BuildRequires: gtk2-devel
|
|
|
c323ebd |
BuildRequires: libxml2-devel
|
|
|
c323ebd |
BuildRequires: mate-common
|
|
|
c323ebd |
BuildRequires: mate-doc-utils
|
|
|
c323ebd |
BuildRequires: bison
|
|
|
c323ebd |
BuildRequires: flex
|
|
|
c323ebd |
BuildRequires: mate-desktop-devel
|
|
|
c323ebd |
BuildRequires: desktop-file-utils
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%description
|
|
|
c323ebd |
mate-calc is a powerful graphical calculator with financial, logical and scientific modes.
|
|
|
c323ebd |
It uses a multiple precision package to do its arithmetic to give a high degree of accuracy.
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%prep
|
|
Dan Mashal |
2c16435 |
%setup -q -n %{name}-%{version}
|
|
Dan Mashal |
4b5427c |
NOCONFIGURE=1 ./autogen.sh
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%build
|
|
|
c323ebd |
%configure --disable-schemas-compile
|
|
Dan Mashal |
4b5427c |
make %{?_smp_mflags} V=1
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%install
|
|
Dan Mashal |
4b5427c |
make install DESTDIR=%{buildroot}
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
desktop-file-install \
|
|
Dan Mashal |
4b5427c |
--remove-category="MATE" \
|
|
Dan Mashal |
4b5427c |
--add-category="X-Mate" \
|
|
Dan Mashal |
4b5427c |
--delete-original \
|
|
Dan Mashal |
4b5427c |
--dir=%{buildroot}%{_datadir}/applications \
|
|
Dan Mashal |
4b5427c |
%{buildroot}%{_datadir}/applications/*.desktop
|
|
Dan Mashal |
4b5427c |
|
|
|
c323ebd |
%find_lang %{name} --all-name
|
|
|
c323ebd |
|
|
Dan Mashal |
4b5427c |
%postun
|
|
Dan Mashal |
4b5427c |
if [ $1 -eq 0 ] ; then
|
|
Dan Mashal |
4b5427c |
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
Dan Mashal |
4b5427c |
fi
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%posttrans
|
|
Dan Mashal |
4b5427c |
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%files -f %{name}.lang
|
|
Dan Mashal |
4b5427c |
%doc AUTHORS COPYING README
|
|
Dan Mashal |
4b5427c |
%{_mandir}/man1/*
|
|
Dan Mashal |
4b5427c |
%{_bindir}/mate-calc
|
|
Dan Mashal |
4b5427c |
%{_bindir}/mate-calc-cmd
|
|
Dan Mashal |
4b5427c |
%{_bindir}/mate-calculator
|
|
Dan Mashal |
4b5427c |
%{_datadir}/applications/mate-calc.desktop
|
|
|
c323ebd |
%{_datadir}/glib-2.0/schemas/org.mate.calc.gschema.xml
|
|
|
c323ebd |
%{_datadir}/mate-calc/
|
|
Dan Mashal |
4b5427c |
|
|
Dan Mashal |
4b5427c |
%changelog
|
|
Dan Mashal |
423c350 |
* Mon Nov 26 2012 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.1-2
|
|
Dan Mashal |
423c350 |
- switch to proper upstream url
|
|
Dan Mashal |
2c16435 |
- fix setup line
|
|
Dan Mashal |
423c350 |
|
|
|
c323ebd |
* Sun Nov 25 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.1-1
|
|
|
c323ebd |
- update to 1.5.1 release
|
|
|
c323ebd |
- specfile cleanup
|
|
|
c323ebd |
- add more descriptive %%description section
|
|
|
c323ebd |
- remove unused configure options
|
|
|
c323ebd |
- remove unused build requires
|
|
|
c323ebd |
|
|
Dan Mashal |
4b5427c |
* Mon Nov 12 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.5.0-1
|
|
Dan Mashal |
4b5427c |
- Initial build
|