]> git.pld-linux.org Git - packages/sawfish.git/blob - sawfish.spec
- use macros in %{pre,post}{,un}
[packages/sawfish.git] / sawfish.spec
1 Summary:        A highly configurable and extensible X11 window manager
2 Summary(pl):    Window Manad¿er dla X11 o du¿ych mo¿liwo¶ciach konfiguracyjnych i skalowalno¶ci
3 Name:           sawfish
4 Version:        1.0
5 Release:        1
6 Epoch:          1
7 License:        GPL
8 Group:          X11/Window Managers
9 Group(de):      X11/Fenstermanager
10 Group(es):      X11/Administraadores De Ventanas
11 Group(fr):      X11/Gestionnaires De Fenêtres
12 Group(pl):      X11/Zarz±dcy Okien
13 Source0:        ftp://sawmill.sourceforge.net/pub/sawmill/%{name}-%{version}.tar.gz
14 Patch0:         %{name}-info.patch
15 Patch1:         %{name}-no_version.patch
16 Patch2:         %{name}-no_libnsl.spec
17 Patch3:         %{name}-make.patch
18 Patch4:         %{name}-po.patch
19 Patch5:         %{name}-config.h.patch
20 URL:            http://sawmill.sourceforge.net/
21 Icon:           sawfish.xpm
22 BuildRequires:  autoconf
23 BuildRequires:  esound-devel
24 BuildRequires:  control-center-devel
25 BuildRequires:  gettext-devel
26 BuildRequires:  gnome-libs-devel
27 BuildRequires:  gtk+-devel >= 1.2.0
28 BuildRequires:  imlib-devel >= 1.8.2
29 BuildRequires:  libjpeg-devel
30 BuildRequires:  libpng >= 1.0.8
31 BuildRequires:  librep-devel >= 0.13.2-2
32 BuildRequires:  libtiff-devel
33 BuildRequires:  libungif-devel
34 BuildRequires:  ncurses-devel
35 BuildRequires:  readline-devel
36 BuildRequires:  gmp-devel
37 BuildRequires:  rep-gtk >= 0.14-3
38 BuildRequires:  rep-gtk-gnome >= 0.14-3
39 BuildRequires:  rep-gtk-libglade >= 0.14-3
40 %define         repexecdir      %(rep-config --execdir)
41 Requires:       rep-gtk >= 0.14-3
42 Requires:       %{repexecdir}
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Obsoletes:      sawmill
45 Obsoletes:      sawmill-gnome
46 Obsoletes:      sawmill-themer
47
48 %define         _prefix         /usr/X11R6
49 %define         _libexecdir     %{_libdir}
50 %define         _wmpropsdir     %{_datadir}/wm-properties
51
52 %description
53 This is an extensible window manager using a LISP-based scripting
54 language--all window decorations are configurable, the basic idea is
55 to have as much user-interface policy as possible controlled through
56 the Lisp language. All configuration may be performed through a GTK
57 interface; sawmill is mostly-GNOME compliant.
58
59 %description -l pl
60 Window manad¿er o du¿ych mo¿liwo¶ciach rozszerzania, u¿ywaj±cy
61 bazowanego na LISP'ie jêzyka skryptowego, dziêki czemu wszystkie
62 dodatki do okien s± configurowalne. Ogóln± ide± jest, aby daæ jak
63 najwiêksz± kontrolê w rêce u¿ytkownika poprzez graficzny interfejs
64 dziêki w³a¶nie LISP'owi.
65 Sawmill jest najbardziej zgodny z GNOME'em.
66
67 %package gnome
68 Summary:        GNOME support for sawmill
69 Summary(pl):    Support GNOME'a dla sawmill'a
70 Group:          X11/Window Managers
71 Group(de):      X11/Fenstermanager
72 Group(es):      X11/Administraadores De Ventanas
73 Group(fr):      X11/Gestionnaires De Fenêtres
74 Group(pl):      X11/Zarz±dcy Okien
75 Requires:       %{name} = %{version}
76 Requires:       rep-gtk-gnome >= 0.14-3
77 Requires:       rep-gtk-libglade >= 0.14-3
78
79 %description gnome
80 Optional GNOME support for sawmill. Includes a wm-entries spec, and a
81 control center applet.
82
83 %description -l pl gnome
84 Opcjonalny support GNOME'a dla sawmill'a. Zawiera aplet dla control-center
85 oraz wm-entries spec.
86
87 %package themer
88 Summary:        GUI for creating sawmill themes
89 Summary(pl):    GUI do tworzenia tematów dla sawmill'a
90 Group:          X11/Window Managers
91 Group(de):      X11/Fenstermanager
92 Group(es):      X11/Administraadores De Ventanas
93 Group(fr):      X11/Gestionnaires De Fenêtres
94 Group(pl):      X11/Zarz±dcy Okien
95 Requires:       %{name} = %{version}
96
97 %description themer
98 Optional theme builder for sawmill. Allows static window themes to be
99 created/edited in a graphical environment.
100
101 %description -l pl themer
102 Opcjonalna aplikacja do tworzenia tematów dla sawfish'a. Pozwala na 
103 tworzenie/modyfikacjê statycznych tematów w ¶rodowisku graficznym.
104
105 %prep
106 %setup -q
107 %patch0 -p1
108 %patch1 -p1
109 %patch2 -p1
110 %patch3 -p1
111 %patch4 -p1 
112 %patch5 -p1
113
114 %build
115 gettextize --copy --force
116 aclocal
117 autoconf
118 %configure \
119         --disable-static \
120         --enable-capplet \
121         --enable-themer \
122         --enable-gnome-widgets \
123         --with-readline \
124         --with-esd \
125         --with-audiofile \
126         --disable-static
127 %{__make}
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT%{_wmpropsdir}
132
133 %{__make} install \
134         DESTDIR=$RPM_BUILD_ROOT \
135         G_MENU_DIR=%{_applnkdir}/Settings/GNOME
136
137 install Sawfish.desktop $RPM_BUILD_ROOT%{_wmpropsdir}
138
139 gzip -9nf README NEWS FAQ TODO
140
141 %find_lang %{name}
142
143 %clean
144 rm -rf $RPM_BUILD_ROOT
145
146 %post
147 %fix_info_dir
148
149 %postun
150 %fix_info_dir
151
152 %files -f %{name}.lang
153 %defattr(644,root,root,755)
154 %doc *.gz
155 %attr(755,root,root) %{_bindir}/sawfish
156 %attr(755,root,root) %{_bindir}/sawfish-client
157 %attr(755,root,root) %{_bindir}/sawfish-ui
158 %{_datadir}/sawfish
159
160 %{_pixmapsdir}/*
161
162 %dir %{_libexecdir}/sawfish
163 %dir %{_libexecdir}/sawfish/%{_host}
164 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/*.so
165 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/*.la
166 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/gtk-style
167 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/sawfish-menu
168 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/sawfish-about
169 %dir %{_libexecdir}/sawfish/%{_host}/sawfish
170 %dir %{_libexecdir}/sawfish/%{_host}/sawfish/wm
171 %dir %{_libexecdir}/sawfish/%{_host}/sawfish/wm/util
172 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/sawfish/wm/util/*.so
173 %attr(755,root,root) %{_libexecdir}/sawfish/%{_host}/sawfish/wm/util/*.la
174 %{_libexecdir}/sawfish/%{_host}/DOC
175
176 %dir %{repexecdir}/sawfish
177 %attr(755,root,root) %{repexecdir}/sawfish/*.so
178 %attr(755,root,root) %{repexecdir}/sawfish/*.la
179
180 %{_infodir}/sawfish*
181
182 %files gnome
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_bindir}/sawfish-capplet
185 %{_datadir}/control-center/Sawfish
186 %{_wmpropsdir}/Sawfish.desktop
187
188 %files themer
189 %defattr(644,root,root,755)
190 %attr(755,root,root) %{_bindir}/sawfish-themer
191 %{_datadir}/sawfish/themer.glade
This page took 0.074211 seconds and 4 git commands to generate.