]> git.pld-linux.org Git - packages/mate-calc.git/blob - mate-calc.spec
1d303d751968d642d32a9fff923d61607a9d2244
[packages/mate-calc.git] / mate-calc.spec
1 Summary:        MATE Desktop calculator
2 Name:           mate-calc
3 Version:        1.5.1
4 Release:        1
5 License:        GPL v2+
6 Group:          X11/Applications
7 Source0:        http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
8 # Source0-md5:  6a0082fcccc4fbc3e2bf8631e9131447
9 URL:            http://mate-desktop.org/
10 BuildRequires:  bison
11 BuildRequires:  desktop-file-utils
12 BuildRequires:  flex
13 BuildRequires:  gtk+2-devel
14 BuildRequires:  libxml2-devel
15 BuildRequires:  mate-common
16 BuildRequires:  mate-desktop-devel
17 BuildRequires:  mate-doc-utils
18 Requires:       glib2 >= 1:2.26.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 mate-calc is a powerful graphical calculator with financial, logical
23 and scientific modes. It uses a multiple precision package to do its
24 arithmetic to give a high degree of accuracy.
25
26 %prep
27 %setup -q
28
29 %build
30 NOCONFIGURE=1 ./autogen.sh
31 %configure \
32         --disable-schemas-compile
33 %{__make} \
34         V=1
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 %{__make} install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 desktop-file-install \
42         --remove-category="MATE" \
43         --add-category="X-Mate" \
44         --delete-original \
45         --dir=$RPM_BUILD_ROOT%{_desktopdir} \
46 $RPM_BUILD_ROOT%{_desktopdir}/*.desktop
47
48 %find_lang %{name}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 %glib_compile_schemas
55
56 %postun
57 %glib_compile_schemas
58
59 %files -f %{name}.lang
60 %defattr(644,root,root,755)
61 %doc AUTHORS COPYING README
62 %attr(755,root,root) %{_bindir}/mate-calc
63 %attr(755,root,root) %{_bindir}/mate-calc-cmd
64 %attr(755,root,root) %{_bindir}/mate-calculator
65 %{_mandir}/man1/mate-calc-cmd.1*
66 %{_mandir}/man1/mate-calc.1*
67 %{_desktopdir}/mate-calc.desktop
68 %{_datadir}/glib-2.0/schemas/org.mate.calc.gschema.xml
69 %{_datadir}/mate-calc
This page took 0.05274 seconds and 2 git commands to generate.