]>
Commit | Line | Data |
---|---|---|
eeb8ce43 JR |
1 | %define extname mylauncher |
2 | Summary: Customizable menu for gnome shell/panel | |
3 | Name: gnome-shell-extension-%{extname} | |
4 | Version: 20121027 | |
5 | Release: 0.1 | |
67b23dfb | 6 | License: GPL v2 |
eeb8ce43 | 7 | Group: X11/Applications |
eeb8ce43 JR |
8 | # $ git clone git://github.com/mbokil/mylauncher-extension.git |
9 | # $ cd mylauncher-extension/ | |
10 | # $ git archive --format=tar --prefix=%{extname}-%{version}/ master | xz > ../%{extname}-%{version}.tar.xz | |
11 | Source0: %{extname}-%{version}.tar.xz | |
12 | # Source0-md5: 2b1e69daf0d39d1a4b478fd6eaa9e83b | |
13 | URL: http://markbokil.com/downloads/extensions/ | |
67b23dfb ER |
14 | BuildRequires: tar >= 1:1.22 |
15 | BuildRequires: xz | |
eeb8ce43 JR |
16 | Requires: gnome-shell >= 3.6.0 |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | MyLauncher is a customizable menu which can launch links, shell | |
22 | scripts, apps, and open folders. Right-click the menu after | |
23 | installation to edit the launcher. See help on the right-click for | |
24 | listing of all options. MyLauncher also supports alias commands such | |
25 | as [RG] for restart shell, [TD] for toggle desktop, etc. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{extname}-%{version} | |
29 | ||
eeb8ce43 JR |
30 | %install |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas \ | |
33 | $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/mylauncher@markbokil.com | |
34 | ||
67b23dfb ER |
35 | cp -p schemas/org.gnome.shell.extensions.mylauncher.gschema.xml $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas |
36 | cp -p *.js* $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/mylauncher@markbokil.com | |
37 | cp -p *.css $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/mylauncher@markbokil.com | |
38 | cp -p *.svg $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/mylauncher@markbokil.com | |
eeb8ce43 JR |
39 | |
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %post | |
44 | %glib_compile_schemas | |
45 | ||
46 | %postun | |
47 | %glib_compile_schemas | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.mylauncher.gschema.xml | |
52 | %{_datadir}/gnome-shell/extensions/mylauncher* |