File: sawfish.spec.in

package info (click to toggle)
sawfish 1%3A1.5.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 18,080 kB
  • sloc: lisp: 23,542; ansic: 15,820; sh: 10,268; makefile: 616; perl: 19
file content (97 lines) | stat: -rw-r--r-- 2,890 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Summary: An extensible window manager for the X Window System.
Name: sawfish
Version: @version@
Release: 1%{?dist}
Requires: librep >= @REP_MIN_VER@, rep-gtk >= @REP_GTK_MIN_VER@
License: GPL
Group: User Interface/Desktops
Source: http://download.sourceforge.net/sawmill/sawfish-%{version}.tar.bz2
URL: http://sawfish.wikia.com/
Packager: Christopher Bratusek <zanghar@freenet.de>
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gmp-devel texinfo
Provides: windowmanager
Obsoletes: sawmill sawmill-gnome sawfish-gnome sawfish-themer

%description
Sawfish is an extensible window manager which uses a Lisp-based
scripting language.  All window decorations are configurable and the
basic idea is to have as much user-interface policy as possible
controlled through the Lisp language.  Configuration can be
accomplished by writing Lisp code in a personal .sawfishrc file, or
using a GTK+ interface.  Sawfish is mostly GNOME compliant

%prep
%setup -q

%build
./autogen.sh \
	--x-libraries=%{_libdir} \
	--x-includes=/usr/include/X11 

%configure
make host_type=%{_target_platform}

%define librepdir %(\
   repl=$(rpm -ql librep.%{_arch}| grep -m 1 /rep/); \
   [ "$repl" ] || repl=$(rpm -ql librep-devel.%{_arch} | grep -m 1 /rep/); \
   echo ${repl%%/rep/*})

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
mkdir -p $RPM_BUILD_ROOT%{_bindir}

make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}

gzip -9nf $RPM_BUILD_ROOT%{_infodir}/sawfish*
rm -f $RPM_BUILD_ROOT%{_infodir}/dir

%post
/sbin/install-info %{_infodir}/sawfish.info.gz %{_infodir}/dir

%preun
if [ "$1" = 0 ]; then
    /sbin/install-info --delete %{_infodir}/sawfish.info.gz %{_infodir}/dir
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README NEWS FAQ TODO OPTIONS README.IMPORTANT KEYBINDINGS USERDOC COPYING COPYING.SOUNDS
%{_bindir}/*
%dir %{_datadir}/sawfish
%{_datadir}/sawfish/%{version}
%{_datadir}/gnome/wm-properties/sawfish-wm.desktop
%{_datadir}/applications/sawfish.desktop
%{_datadir}/apps/ksmserver/windowmanagers/sawfish.desktop
%{_datadir}/xsessions/sawfish.desktop
%{_datadir}/pixmaps/sawfish*.png
%{_libdir}/pkgconfig/sawfish.pc
%{_libexecdir}/sawfish/%{version}/%{_host}
%{librepdir}/rep/%{_host}/sawfish
%{_infodir}/sawfish*

%changelog
* Sat Sep 05 2009 Kim B. Heino <b@bbbs.net>
- add dist-tag, update files list

* Sun Jan 18 2008 Christopher Bratusek <zanghar@freenet.de>
- several fixups

* Tue Jun 12 2000 John Harper <john@dcs.warwick.ac.uk>
- merged differences from RH spec file

* Mon Apr 24 2000 John Harper <john@dcs.warwick.ac.uk>
- s/sawmill/sawfish/

* Fri Sep 17 1999 John Harper <john@dcs.warwick.ac.uk>
- don't patch the Makefile

* Tue Sep 14 1999 Aron Griffis <agriffis@bigfoot.com>
- 0.6 spec file update: added buildroot