]> git.pld-linux.org Git - packages/fvwm2.git/blob - fvwm2.spec
- added using %%{__make} macro.
[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 License:        GPL
6 Group:          X11/Window Managers
7 Group(pl):      X11/Zarz±dcy Okien
8 Group(es):      X11/Administraadores De Ventanas
9 Group(fr):      X11/Gestionnaires De Fenêtres
10 Source0:        ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.gz
11 Source1:        fvwm-2.0.46.icons.tar.gz
12 Patch0:         fvwm-2.2-redhat.patch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 Requires:       fvwm2-icons
15 Url:            http://fvwm.math.uh.edu/
16 Obsoletes:      fvwm95
17
18 %define         _prefix /usr/X11R6
19 %define         _mandir /usr/X11R6/man
20
21 %description
22 FVWM2 (the F stands for whatever you want, but the VWM stands for
23 Virtual Window Manager) is an improved version of the FVWM window
24 manager for the X Window System and shares the same characteristics as
25 FVWM.
26
27 Install the fvwm2 package if you'd like to use the FVWM2 window
28 manager. If you install fvwm2, you'll also need to install
29 fvwm2-icons.
30
31 %description -l pl
32 FVWM (za F mo¿na sobie podstawic co kto woli, lecz VWM pochodzi od
33 pierwszych liter "Virtual Window Manager", czyli wirtualnego mened¿era
34 okien) to ulepszona wersja mened¿era okien dla systemu X Window FVWM i
35 posiada te same cechy.
36
37 Nale¿y zainstalowaæ pakiet fvwm2 jesli chce siê uzywaæ mened¿era okien
38 FVWM2. Instaluj±c fvwm2 nalezy równiez zainstalowaæ pakiet
39 fvwm2-icons.
40
41 %package icons
42 Summary:        Graphic files used by the FVWM and FVWM2 window managers
43 Group:          X11/Window Managers
44 Group(pl):      X11/Zarz±dcy Okien
45 Group(es):      X11/Administraadores De Ventanas
46 Group(fr):      X11/Gestionnaires De Fenêtres
47 Obsoletes:      fvwm95-icons
48
49 %description icons
50 The fvwm2-icons package contains icons, bitmaps and pixmaps used by
51 the FVWM and FVWM2 X Window System window managers.
52
53 You'll need to install fvwm2-icons if you are installing fvwm and/or
54 fvwm2.
55
56 %prep
57 %setup -n fvwm-%{version} -q
58 %patch0 -p1
59
60 %build
61 CFLAGS="$RPM_OPT_FLAGS" ./configure \
62         --prefix=%{_prefix} \
63         --enable-extras \
64         --libexecdir=\${prefix}/lib/X11/fvwm2   \
65         --sysconfdir=%{_sysconfdir}/X11/fvwm2 \
66         --mandir=%{_mandir}
67 %{__make} 
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/fvwm2
72
73 %{__make} install \
74         prefix=$RPM_BUILD_ROOT%{_prefix} \
75         sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/X11/fvwm2 \
76         mandir=$RPM_BUILD_ROOT%{_mandir} \
77         INSTALL_PROGRAM="%{_bindir}/install -c -s"
78
79 install sample.fvwmrc/system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}/X11/fvwm2
80 rm -rf $RPM_BUILD_ROOT%{_datadir}/icons
81 install -d $RPM_BUILD_ROOT%{_datadir}/icons/mini
82
83 install icons/*.xpm $RPM_BUILD_ROOT%{_datadir}/icons
84 mv $RPM_BUILD_ROOT%{_datadir}/icons/mini.*.xpm $RPM_BUILD_ROOT%{_datadir}/icons/mini
85
86 strip --strip-unneeded $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/X11/fvwm2}/* || :
87
88 gzip -9nf README AUTHORS NEWS ChangeLog \
89         $RPM_BUILD_ROOT%{_mandir}/man1/*
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc {README,AUTHORS,NEWS,ChangeLog}.gz
97 %doc docs
98 %dir /etc/X11/fvwm2
99 %config /etc/X11/fvwm2/*
100 %dir %{_libdir}/X11/fvwm2
101 %attr(755,root,root) %{_libdir}/X11/fvwm2/*
102 %attr(755,root,root) %{_bindir}/*
103 %{_mandir}/man1/*
104
105 %files icons
106 %defattr(644,root,root,755)
107 %dir %{_datadir}/icons
108 %dir %{_datadir}/icons/mini
109 %{_datadir}/icons/*.xpm
110 %{_datadir}/icons/mini/*.xpm
This page took 0.064065 seconds and 4 git commands to generate.