]> git.pld-linux.org Git - packages/gnome-shell-extension-system-monitor.git/blame - gnome-shell-extension-system-monitor.spec
spelling
[packages/gnome-shell-extension-system-monitor.git] / gnome-shell-extension-system-monitor.spec
CommitLineData
8f53b69d
ER
1# TODO
2# - do something not to pull NM-devel to get *.gir?
8198be7f
JR
3%define extname system-monitor
4Summary: Display system informations in gnome shell status bar
5Name: gnome-shell-extension-%{extname}
6Version: 20121027
dde58d92 7Release: 2
20a96414 8License: GPL v3
8198be7f 9Group: X11/Applications
8198be7f
JR
10# $ git clone git://github.com/paradoxxxzero/gnome-shell-system-monitor-applet.git
11# $ cd gnome-shell-system-monitor-applet/system-monitor@paradoxxx.zero.gmail.com/
12# $ git archive --format=tar --prefix=%{extname}-%{version}/ master | xz > ../../%{extname}-%{version}.tar.xz
13Source0: %{extname}-%{version}.tar.xz
14# Source0-md5: 246e68ef905a9bfa4fd924040f6e271d
15URL: https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/
20a96414
ER
16BuildRequires: tar >= 1:1.22
17BuildRequires: xz
8198be7f 18Requires: gnome-shell >= 3.6.0
1a7c66ba 19# This is no mistake, this extension requires *.gir files from those packages
8198be7f
JR
20Requires: NetworkManager-devel
21Requires: libgtop-devel
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
20a96414
ER
26Display system informations in gnome shell status bar, such as memory
27usage, cpu usage, network rates.
8198be7f
JR
28
29%prep
30%setup -q -n %{extname}-%{version}
31
8198be7f
JR
32%install
33rm -rf $RPM_BUILD_ROOT
34install -d $RPM_BUILD_ROOT%{_datadir}/{glib-2.0/schemas,locale} \
35 $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com
36
20a96414
ER
37cp -p schemas/org.gnome.shell.extensions.system-monitor.gschema.xml $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas
38cp -p *.js* $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com
39cp -p *.css $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com
8198be7f 40
20a96414
ER
41cp -a locale/* $RPM_BUILD_ROOT%{_localedir}
42%{__mv} $RPM_BUILD_ROOT%{_localedir}/es{_ES,}
8198be7f
JR
43
44%find_lang %{extname}
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%post
50%glib_compile_schemas
51
52%postun
53%glib_compile_schemas
54
55%files -f %{extname}.lang
56%defattr(644,root,root,755)
57%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.system-monitor.gschema.xml
58%{_datadir}/gnome-shell/extensions/system-monitor*
This page took 0.116905 seconds and 4 git commands to generate.