]> git.pld-linux.org Git - packages/fvwm2.git/blob - fvwm2.spec
- misc fixes and cleanups
[packages/fvwm2.git] / fvwm2.spec
1 Summary:        An improved version of the FVWM X-based window manager.
2 Name:           fvwm2
3 Version:        2.2
4 Release:        6
5 Source0:        ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-2.2.tar.gz
6 Source1:        fvwm-2.0.46.icons.tar.gz
7 Patch0:         fvwm-2.2-redhat.patch
8 Copyright:      GPL
9 Group:          User Interface/Desktops
10 Buildroot:      /tmp/%{name}-%{version}-root
11 Requires:       fvwm2-icons
12 Url:            http://fvwm.math.uh.edu/
13 Obsoletes:      fvwm95
14
15 %define         _prefix /usr/X11R6
16 %define         _mandir /usr/X11R6/man
17
18 %description
19 FVWM2 (the F stands for whatever you want, but the VWM stands for
20 Virtual Window Manager) is an improved version of the FVWM window
21 manager for the X Window System and shares the same characteristics as
22 FVWM.  
23
24 Install the fvwm2 package if you'd like to use the FVWM2 window manager.
25 If you install fvwm2, you'll also need to install fvwm2-icons.
26
27 %package icons
28 Summary:        Graphic files used by the FVWM and FVWM2 window managers.
29 Group:          User Interface/Desktops
30 Obsoletes:      fvwm95-icons
31
32 %description icons
33 The fvwm2-icons package contains icons, bitmaps and pixmaps used by
34 the FVWM and FVWM2 X Window System window managers.  
35
36 You'll need to install fvwm2-icons if you are installing fvwm and/or
37 fvwm2.
38
39 %prep
40 %setup -n fvwm-%{version} -q
41 %patch0 -p1
42
43 %build
44 CFLAGS="$RPM_OPT_FLAGS" ./configure \
45         --prefix=%{_prefix} \
46         --enable-extras \
47         --libexecdir=\${prefix}/lib/X11/fvwm2   \
48         --sysconfdir=/etc/X11/fvwm2 \
49         --mandir=%{_mandir}
50 make 
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 mkdir -p $RPM_BUILD_ROOT/etc/X11/fvwm2
55
56 make install \
57         prefix=$RPM_BUILD_ROOT%{_prefix} \
58         sysconfdir=$RPM_BUILD_ROOT/etc/X11/fvwm2 \
59         mandir=$RPM_BUILD_ROOT%{_mandir} \
60         INSTALL_PROGRAM="/usr/bin/install -c -s"
61
62 install -m 644 sample.fvwmrc/system.fvwm2rc $RPM_BUILD_ROOT/etc/X11/fvwm2
63 rm -rf $RPM_BUILD_ROOT/usr/share/icons
64 install -d $RPM_BUILD_ROOT%{_datadir}/icons/mini
65
66 install icons/*.xpm $RPM_BUILD_ROOT%{_datadir}/icons
67 mv $RPM_BUILD_ROOT%{_datadir}/icons/mini.*.xpm $RPM_BUILD_ROOT%{_datadir}/icons/mini
68
69 strip --strip-unneeded $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/X11/fvwm2}/* || :
70
71 gzip -9nf README AUTHORS NEWS ChangeLog \
72         $RPM_BUILD_ROOT%{_mandir}/man1/*
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc {README,AUTHORS,NEWS,ChangeLog}.gz
80 %doc docs
81 %dir /etc/X11/fvwm2
82 %config /etc/X11/fvwm2/*
83 %dir %{_libdir}/X11/fvwm2
84 %attr(755,root,root) %{_libdir}/X11/fvwm2/*
85 %attr(755,root,root) %{_bindir}/*
86 %{_mandir}/man1/*
87
88 %files icons
89 %defattr(644,root,root,755)
90 %dir %{_datadir}/icons
91 %dir %{_datadir}/icons/mini
92 %{_datadir}/icons/*.xpm
93 %{_datadir}/icons/mini/*.xpm
This page took 0.050765 seconds and 4 git commands to generate.