]> git.pld-linux.org Git - packages/uzbl.git/blob - uzbl.spec
- scripts 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 # - ... rewrite example config and scripts from scratch.
6
7 %define         gitdate 20090703
8
9 Summary:        A keyboard controlled (modal vim-like bindings, or with modifier keys) browser based on Webkit
10 Summary(hu.UTF-8):      Egy billentyűzettel irányítható (vim-szerű vagy módosító kódok) böngésző Webkit alapokon
11 Name:           uzbl
12 Version:        0
13 Release:        0.%{gitdate}.1
14 License:        GPL v3
15 Group:          X11/Applications/Networking
16 Source0:        %{name}-%{gitdate}.tar.xz
17 # Source0-md5:  e90ffe6b73747731a1d9d7c456e3e411
18 Patch0:         uzbl-config.patch
19 URL:            http://www.uzbl.org/
20 BuildRequires:  curl-devel
21 BuildRequires:  gtk+2-devel
22 BuildRequires:  gtk-webkit-devel
23 BuildRequires:  libsoup-devel
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 The uzbl browser is a keyboard controlled (modal vim-like bindings, or
28 with modifier keys) browser based on Webkit.
29
30 %description -l hu.UTF-8
31 Egy billentyűzettel irányítható (vim-szerű vagy módosító kódok)
32 böngésző Webkit alapokon.
33
34 %package tabbed
35 Summary:        Tabs for uzbl
36 Group:          X11/Applications/Networking
37 Requires:       %{name} = %{epoch}:%{version}-%{release}
38
39 %description tabbed
40 Wrapper for uzbl that provides firefox-style tabs.
41
42 %package scripts
43 Summary:        Scripts for uzbl
44 Group:          X11/Applications/Networking
45 Requires:       %{name} = %{epoch}:%{version}-%{release}
46
47 %description scripts
48 Scripts for uzbl that handles cookies, downloads, history, etc.
49
50 %package examples
51 Summary:        Example configs
52 Summary(hu.UTF-8):      Példa konfigurációs fájlok és szkriptek uzbl-hez
53 Summary(pl.UTF8):       Przykładowa konfiguracja dla uzbl
54 Group:          Documentation
55 Requires:       %{name} = %{epoch}:%{version}-%{release}
56 Requires:       bash
57 Requires:       dmenu
58 Requires:       zenity
59
60 %description examples
61 Example config files for uzbl. If you want just try uzbl install this package
62 and run:
63
64 uzbl -c %{_examplesdir}/%{name}-%{version}/config
65
66 %description examples -l hu.UTF-8
67 Példa konfigurációs fájlok és szkriptek uzbl-hez. Ha ki akarod
68 próbálni az uzbl-lel, akkor telepítsd ezt a csomagot és a következő
69 paranccsal indíthatod:
70
71 uzbl -c %{_examplesdir}/%{name}-%{version}/config
72
73 %prep
74 %setup -q -n %{name}-%{gitdate}
75
76 %patch0 -p0
77
78 %build
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # tabbed
88 mv $RPM_BUILD_ROOT%{_datadir}/uzbl/examples/data/uzbl/scripts/uzbl_tabbed.py $RPM_BUILD_ROOT%{_bindir}/uzbl_tabbed
89
90 # most important scripts
91 install -d $RPM_BUILD_ROOT%{_datadir}/uzbl/scripts
92 mv $RPM_BUILD_ROOT%{_datadir}/uzbl/examples/data/uzbl/scripts $RPM_BUILD_ROOT%{_datadir}/uzbl
93
94 # example config
95 install -d $RPM_BUILD_ROOT%{_examplesdir}/uzbl-%{version}
96 mv $RPM_BUILD_ROOT%{_datadir}/uzbl/examples/config/uzbl/config $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/config
97 mv $RPM_BUILD_ROOT%{_datadir}/uzbl/examples/data/uzbl/forms $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/forms
98 rm -r $RPM_BUILD_ROOT%{_datadir}/uzbl/{docs,examples}
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files
104 %defattr(644,root,root,755)
105 %doc AUTHORS README docs/*
106 %attr(755,root,root) %{_bindir}/uzbl
107 %attr(755,root,root) %{_bindir}/uzblctrl
108 %dir %{_datadir}/uzbl
109
110 %files tabbed
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/uzbl_tabbed
113
114 %files scripts
115 %dir %{_datadir}/uzbl/scripts
116 %attr(755,root,root) %{_datadir}/uzbl/scripts/*
117
118 %files examples
119 %defattr(644,root,root,755)
120 %{_examplesdir}/uzbl-%{version}
This page took 0.077294 seconds and 4 git commands to generate.