-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqalculate-gtk.spec
96 lines (79 loc) · 2.74 KB
/
qalculate-gtk.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Summary: Modern desktop calculator
Summary(pl.UTF-8): Nowoczesny kalkulator
Name: qalculate-gtk
Version: 5.5.0
Release: 1
License: GPL
Group: Applications/Math
Source0: https://github.com/Qalculate/qalculate-gtk/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 9703c8591b5e295ecec7acb29d14d998
URL: https://qalculate.github.io/
BuildRequires: automake
BuildRequires: gdk-pixbuf2-devel
BuildRequires: glib2-devel >= 1:2.4
BuildRequires: gtk+3-devel >= 3.12
BuildRequires: intltool
BuildRequires: libqalculate-devel >= %{version}
BuildRequires: libtool
BuildRequires: libxml2-devel >= 2.3.8
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 2.000
Requires(post,postun): gtk-update-icon-cache
Requires: glib2 >= 1:2.4
Requires: gtk+3 >= 3.12
Requires: hicolor-icon-theme
Requires: libqalculate >= 5.2.0
Suggests: gnuplot
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Qalculate is a modern multi-purpose desktop calculator. It is small
and simple to use but with much power. Features include arbitrary
precision, plotting, and a graphical interface (GTK+).
%description -l pl.UTF-8
Qalculate jest nowoczesnym, wielozadaniowym kalkulatorem. Jest mały i
prosty w użyciu, lecz posiada duże możliwości. Podstawowymi cechami
programu są nieograniczona precyzja, możliwość rysowania wykresów i
graficzny interfejs (GTK+).
%package search-provider
Summary: Qalculate-gtk search provider for GNOME Shell
Summary(pl.UTF-8): Usługa wyszukiwania Qalculate-gtk dla powłoki GNOME
Group: Applications/Math
Requires: %{name} = %{version}-%{release}
Requires: gnome-shell >= 3
%description search-provider
Qalculate-gtk search provider for GNOME Shell.
%description search-provider -l pl.UTF-8
Usługa wyszukiwania Qalculate-gtk dla powłoki GNOME.
%prep
%setup -q
%build
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# packaged in doc
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/qalculate-gtk
%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_icon_cache hicolor
%postun
%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO doc/html
%attr(755,root,root) %{_bindir}/qalculate-gtk
%{_desktopdir}/qalculate-gtk.desktop
%{_mandir}/man1/qalculate-gtk.1*
%{_iconsdir}/hicolor/*x*/apps/qalculate.png
%{_iconsdir}/hicolor/scalable/apps/qalculate.svg
%{_datadir}/metainfo/qalculate-gtk.appdata.xml
%files search-provider
%defattr(644,root,root,755)
%attr(755,roor,root) %{_libexecdir}/qalculate-search-provider
%{_datadir}/dbus-1/services/io.github.Qalculate.SearchProvider.service
%{_datadir}/gnome-shell/search-providers/io.github.Qalculate.search-provider.ini