]> git.pld-linux.org Git - packages/mate-system-monitor.git/blob - mate-system-monitor.spec
up to 1.12.1
[packages/mate-system-monitor.git] / mate-system-monitor.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk3            # use GTK+ 3.x instead of 2.x
4
5 Summary:        Process and resource monitor for MATE desktop
6 Summary(pl.UTF-8):      Monitor procesów w zasobów dla środowiska MATE
7 Name:           mate-system-monitor
8 Version:        1.12.1
9 Release:        1
10 License:        GPL v2+
11 Group:          X11/Applications
12 Source0:        http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
13 # Source0-md5:  c6ba46db6bc16a1d087b19d238b6d642
14 URL:            http://mate-desktop.org/
15 BuildRequires:  autoconf >= 2.63
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  dbus-glib-devel >= 0.70
18 BuildRequires:  desktop-file-utils
19 BuildRequires:  docbook-dtd412-xml
20 BuildRequires:  gettext-tools >= 0.10.40
21 BuildRequires:  glib2-devel >= 1:2.36.0
22 BuildRequires:  glibmm-devel >= 2.26.0
23 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.20.0}
24 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
25 %{!?with_gtk3:BuildRequires:    gtkmm-devel >= 2.22}
26 %{?with_gtk3:BuildRequires:     gtkmm3-devel >= 3.0.0}
27 BuildRequires:  intltool >= 0.50.1
28 BuildRequires:  libgtop-devel >= 1:2.23.1
29 BuildRequires:  librsvg-devel >= 2.35
30 BuildRequires:  libstdc++-devel >= 6:4.7
31 BuildRequires:  libtool >= 2:2.2
32 %{?with_gtk3:BuildRequires:     libwnck-devel >= 3.0.0}
33 %{!?with_gtk3:BuildRequires:    libwnck2-devel >= 2.5.0}
34 BuildRequires:  libxml2-devel >= 2.0
35 BuildRequires:  mate-common
36 BuildRequires:  pkgconfig >= 1:0.19
37 BuildRequires:  rpmbuild(find_lang) >= 1.36
38 BuildRequires:  rpmbuild(macros) >= 1.311
39 BuildRequires:  startup-notification-devel
40 BuildRequires:  systemd-devel >= 44
41 BuildRequires:  tar >= 1:1.22
42 BuildRequires:  xz
43 BuildRequires:  yelp-tools
44 Requires:       glib2 >= 1:2.36.0
45 Requires:       glibmm >= 2.26.0
46 %{!?with_gtk3:Requires: gtk+2 >= 2:2.20.0}
47 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
48 %{!?with_gtk3:Requires: gtkmm >= 2.22}
49 %{?with_gtk3:Requires:  gtkmm3 >= 3.0.0}
50 Requires:       libgtop >= 1:2.23.1
51 Requires:       librsvg >= 2.35
52 %{?with_gtk3:Requires:  libwnck >= 3.0.0}
53 %{!?with_gtk3:Requires: libwnck2 >= 2.5.0}
54 Requires:       mate-desktop
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 mate-system-monitor allows to graphically view and manipulate the
59 running processes on your system. It also provides an overview of
60 available resources such as CPU and memory.
61
62 %description -l pl.UTF-8
63 mate-system-monitor pozwala na graficzny podgląd i operowanie na
64 procesach działających w systemie. Zapewnia także widok dostępnych
65 zasobów, takich jak procesor i pamięć.
66
67 %prep
68 %setup -q
69
70 %build
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         --disable-silent-rules \
78         --disable-static \
79         --enable-compile-warnings=minimum \
80         %{?with_gtk3:--with-gtk=3.0}
81
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
90 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/%{name}.convert
91
92 # not supported by glibc (as of 2.19-3)
93 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nah
94
95 desktop-file-install \
96         --delete-original \
97         --remove-category=MATE \
98         --add-category=X-Mate \
99         --dir $RPM_BUILD_ROOT%{_desktopdir} \
100         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
101
102 %find_lang %{name} --with-mate
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 %glib_compile_schemas
109
110 %postun
111 %glib_compile_schemas
112
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog NEWS README TODO
116 %attr(755,root,root) %{_bindir}/%{name}
117 %{_mandir}/man1/mate-system-monitor.1*
118 %{_desktopdir}/%{name}.desktop
119 %{_pixmapsdir}/%{name}
120 %{_datadir}/appdata/mate-system-monitor.appdata.xml
121 %{_datadir}/glib-2.0/schemas/org.mate.system-monitor.*.xml
This page took 0.106224 seconds and 3 git commands to generate.