]>
Commit | Line | Data |
---|---|---|
240ac27e | 1 | # TODO: |
2 | # - Where to place example config files and scripts? | |
3 | # - unbash example scripts | |
4 | # - example scripts should use $XDG_DATA_HOME, not tmp nor /usr/share | |
cd79fd5b | 5 | |
28e3156c | 6 | %define gitdate 20090607 |
cd79fd5b | 7 | |
8 | Summary: A keyboard controlled (modal vim-like bindings, or with modifier keys) browser based on Webkit | |
9 | Name: uzbl | |
10 | Version: 0 | |
28e3156c | 11 | Release: 0.%{gitdate}.1 |
cd79fd5b | 12 | License: GPL v3 |
13 | Group: X11/Applications/Networking | |
14 | Source0: %{name}-%{gitdate}.tar.xz | |
28e3156c | 15 | # Source0-md5: 765305c15a96656b6f702673db821e8b |
cd79fd5b | 16 | URL: http://www.uzbl.org/ |
17 | BuildRequires: curl-devel | |
18 | BuildRequires: gtk+2-devel | |
19 | BuildRequires: gtk-webkit-devel | |
20 | BuildRequires: libsoup-devel | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | The uzbl browser is a keyboard controlled (modal vim-like bindings, or | |
25 | with modifier keys) browser based on Webkit. | |
26 | ||
240ac27e | 27 | %package examples |
28 | Summary: Example config and scripts for uzbl | |
29 | Summary(pl.UTF8): Przykładowa konfiguracja i skrypty dla uzbl | |
30 | Group: Documentation | |
31 | Requires: bash | |
32 | Requires: dmenu | |
33 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
34 | Requires: zenity | |
35 | ||
36 | %description examples | |
37 | Example config files and scripts for uzbl. If you want just try uzbl install | |
38 | this package and run: | |
39 | ||
40 | uzbl -c %{_datadir}/uzbl/configs/sampleconfig | |
41 | ||
cd79fd5b | 42 | %prep |
43 | %setup -q -n %{name}-%{gitdate} | |
44 | ||
6fe0ad73 | 45 | find examples -type f | xargs sed -i 's,/examples/,/,g' |
46 | ||
cd79fd5b | 47 | %build |
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
6fe0ad73 | 56 | mv $RPM_BUILD_ROOT%{_datadir}/uzbl/examples/* $RPM_BUILD_ROOT%{_datadir}/uzbl |
57 | rm -r $RPM_BUILD_ROOT%{_datadir}/uzbl/{docs,examples} | |
58 | ||
cd79fd5b | 59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc AUTHORS README docs/* | |
65 | %attr(755,root,root) %{_bindir}/uzbl | |
66 | %attr(755,root,root) %{_bindir}/uzblctrl | |
240ac27e | 67 | |
68 | %files examples | |
c5452c35 | 69 | %dir %{_datadir}/uzbl |
6fe0ad73 | 70 | %dir %{_datadir}/uzbl/scripts |
71 | %attr(755,root,root) %{_datadir}/uzbl/scripts/* | |
72 | %{_datadir}/uzbl/data | |
73 | %{_datadir}/uzbl/configs |