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