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