]> git.pld-linux.org Git - packages/uzbl.git/blob - uzbl.spec
- split example config and scripts into subpackage
[packages/uzbl.git] / uzbl.spec
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
5
6 %define         gitdate 20090526
7
8 Summary:        A keyboard controlled (modal vim-like bindings, or with modifier keys) browser based on Webkit
9 Name:           uzbl
10 Version:        0
11 Release:        0.%{gitdate}.2
12 License:        GPL v3
13 Group:          X11/Applications/Networking
14 Source0:        %{name}-%{gitdate}.tar.xz
15 # Source0-md5:  58a2ccd187b6de901f64b2968c36802d
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
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
42 %prep
43 %setup -q -n %{name}-%{gitdate}
44
45 find examples -type f | xargs sed -i 's,/examples/,/,g'
46
47 %build
48 %{__make}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 mv $RPM_BUILD_ROOT%{_datadir}/uzbl/examples/* $RPM_BUILD_ROOT%{_datadir}/uzbl
57 rm -r $RPM_BUILD_ROOT%{_datadir}/uzbl/{docs,examples}
58
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
67
68 %files examples
69 %dir %{_datadir}/uzbl
70 %dir %{_datadir}/uzbl/scripts
71 %attr(755,root,root) %{_datadir}/uzbl/scripts/*
72 %{_datadir}/uzbl/data
73 %{_datadir}/uzbl/configs
This page took 0.082854 seconds and 4 git commands to generate.