]> git.pld-linux.org Git - packages/fvwm2.git/blob - fvwm2.spec
- changed all BuildRoot definitons
[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:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 %description -l pl
28 FVWM (za F mo¿na sobie podstawic co kto woli, lecz VWM pochodzi od pierwszych
29 liter "Virtual Window Manager", czyli wirtualnego mened¿era okien) to ulepszona
30 wersja mened¿era okien dla systemu X Window FVWM i posiada te same cechy.
31
32 Nale¿y zainstalowaæ pakiet fvwm2 jesli chce siê uzywaæ mened¿era okien FVWM2.
33 Instaluj±c fvwm2 nalezy równiez zainstalowaæ pakiet fvwm2-icons.
34
35 %package icons
36 Summary:        Graphic files used by the FVWM and FVWM2 window managers.
37 Group:          User Interface/Desktops
38 Obsoletes:      fvwm95-icons
39
40 %description icons
41 The fvwm2-icons package contains icons, bitmaps and pixmaps used by
42 the FVWM and FVWM2 X Window System window managers.  
43
44 You'll need to install fvwm2-icons if you are installing fvwm and/or
45 fvwm2.
46
47 %prep
48 %setup -n fvwm-%{version} -q
49 %patch0 -p1
50
51 %build
52 CFLAGS="$RPM_OPT_FLAGS" ./configure \
53         --prefix=%{_prefix} \
54         --enable-extras \
55         --libexecdir=\${prefix}/lib/X11/fvwm2   \
56         --sysconfdir=/etc/X11/fvwm2 \
57         --mandir=%{_mandir}
58 make 
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 mkdir -p $RPM_BUILD_ROOT/etc/X11/fvwm2
63
64 make install \
65         prefix=$RPM_BUILD_ROOT%{_prefix} \
66         sysconfdir=$RPM_BUILD_ROOT/etc/X11/fvwm2 \
67         mandir=$RPM_BUILD_ROOT%{_mandir} \
68         INSTALL_PROGRAM="/usr/bin/install -c -s"
69
70 install -m 644 sample.fvwmrc/system.fvwm2rc $RPM_BUILD_ROOT/etc/X11/fvwm2
71 rm -rf $RPM_BUILD_ROOT/usr/share/icons
72 install -d $RPM_BUILD_ROOT%{_datadir}/icons/mini
73
74 install icons/*.xpm $RPM_BUILD_ROOT%{_datadir}/icons
75 mv $RPM_BUILD_ROOT%{_datadir}/icons/mini.*.xpm $RPM_BUILD_ROOT%{_datadir}/icons/mini
76
77 strip --strip-unneeded $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/X11/fvwm2}/* || :
78
79 gzip -9nf README AUTHORS NEWS ChangeLog \
80         $RPM_BUILD_ROOT%{_mandir}/man1/*
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc {README,AUTHORS,NEWS,ChangeLog}.gz
88 %doc docs
89 %dir /etc/X11/fvwm2
90 %config /etc/X11/fvwm2/*
91 %dir %{_libdir}/X11/fvwm2
92 %attr(755,root,root) %{_libdir}/X11/fvwm2/*
93 %attr(755,root,root) %{_bindir}/*
94 %{_mandir}/man1/*
95
96 %files icons
97 %defattr(644,root,root,755)
98 %dir %{_datadir}/icons
99 %dir %{_datadir}/icons/mini
100 %{_datadir}/icons/*.xpm
101 %{_datadir}/icons/mini/*.xpm
This page took 0.073115 seconds and 4 git commands to generate.