]>
Commit | Line | Data |
---|---|---|
a2a579d3 | 1 | Summary: MATE Desktop calculator |
6c7d9dee | 2 | Summary(pl.UTF-8): Kalkulator dla środowiska MATE Desktop |
a2a579d3 | 3 | Name: mate-calc |
56e40a86 | 4 | Version: 1.26.0 |
fb422baa | 5 | Release: 1 |
a2a579d3 ER |
6 | License: GPL v2+ |
7 | Group: X11/Applications | |
56e40a86 JP |
8 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 2d9239cbfd1819300f4b595155ffe912 | |
6d62329f | 10 | URL: https://wiki.mate-desktop.org/mate-desktop/applications/mate-calc/ |
bc11581b JB |
11 | BuildRequires: autoconf >= 2.62 |
12 | BuildRequires: automake >= 1:1.9 | |
a2a579d3 ER |
13 | BuildRequires: bison |
14 | BuildRequires: desktop-file-utils | |
15 | BuildRequires: flex | |
e43812e1 | 16 | BuildRequires: gettext-tools >= 0.19.8 |
b57ff0d0 JP |
17 | BuildRequires: glib2-devel >= 1:2.50.0 |
18 | BuildRequires: gtk+3-devel >= 3.22 | |
56e40a86 | 19 | BuildRequires: libmpc-devel |
6c7d9dee JB |
20 | BuildRequires: libtool >= 1:1.4.3 |
21 | BuildRequires: libxml2-devel >= 2.0 | |
a2a579d3 | 22 | BuildRequires: mate-common |
56e40a86 | 23 | BuildRequires: mpfr-devel >= 4.0.2 |
6c7d9dee | 24 | BuildRequires: pkgconfig |
6d62329f | 25 | BuildRequires: rpmbuild(macros) >= 1.592 |
02d1d639 JP |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
bc11581b | 28 | BuildRequires: yelp-tools |
b57ff0d0 JP |
29 | Requires: glib2 >= 1:2.50.0 |
30 | Requires: gtk+3 >= 3.22 | |
56e40a86 | 31 | Requires: mpfr >= 4.0.2 |
a2a579d3 ER |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | mate-calc is a powerful graphical calculator with financial, logical | |
36 | and scientific modes. It uses a multiple precision package to do its | |
6c7d9dee JB |
37 | arithmetic to give a high degree of accuracy. mate-calc is a fork of |
38 | gnome-calc. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | mate-calc to graficzny kalkulator o bogatych możliwościach, z trybami | |
42 | finansowym, logicznym i naukowym. Wykorzystuje pakiet wielokrotnej | |
43 | precyzji w celu zapewnienia arytmentyki o dużym stopniu dokładności. | |
44 | mate-calc jest odgałęzieniem programu gnome-calc. | |
a2a579d3 ER |
45 | |
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
6c7d9dee JB |
50 | %{__libtoolize} |
51 | %{__aclocal} | |
52 | %{__autoconf} | |
53 | %{__autoheader} | |
54 | %{__automake} | |
a2a579d3 | 55 | %configure \ |
6c7d9dee | 56 | --disable-schemas-compile \ |
fb422baa | 57 | --disable-silent-rules |
3b05b568 | 58 | %{__make} |
a2a579d3 ER |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | desktop-file-install \ | |
66 | --remove-category="MATE" \ | |
67 | --add-category="X-Mate" \ | |
68 | --delete-original \ | |
69 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
6c7d9dee | 70 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop |
a2a579d3 | 71 | |
9a99088a JP |
72 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,ku_IQ,pms} |
73 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{frp,ie,ku_IQ,pms} | |
b57ff0d0 | 74 | |
bc11581b | 75 | %find_lang %{name} --with-mate |
a2a579d3 ER |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post | |
81 | %glib_compile_schemas | |
82 | ||
83 | %postun | |
84 | %glib_compile_schemas | |
85 | ||
86 | %files -f %{name}.lang | |
87 | %defattr(644,root,root,755) | |
56e40a86 | 88 | %doc AUTHORS ChangeLog NEWS README.md |
a2a579d3 ER |
89 | %attr(755,root,root) %{_bindir}/mate-calc |
90 | %attr(755,root,root) %{_bindir}/mate-calc-cmd | |
91 | %attr(755,root,root) %{_bindir}/mate-calculator | |
a2a579d3 | 92 | %{_mandir}/man1/mate-calc.1* |
6c7d9dee | 93 | %{_mandir}/man1/mate-calc-cmd.1* |
bb80f74b | 94 | %{_datadir}/metainfo/mate-calc.appdata.xml |
a2a579d3 | 95 | %{_datadir}/glib-2.0/schemas/org.mate.calc.gschema.xml |
6c7d9dee | 96 | %{_desktopdir}/mate-calc.desktop |