]> git.pld-linux.org Git - packages/fvwm2.git/blob - fvwm2.spec
21541090eaf90e9a62f7fdfc0656bcd6f19ed396
[packages/fvwm2.git] / fvwm2.spec
1 Summary:        An improved version of the FVWM X-based window manager.
2 Name:           fvwm2
3 Version:        2.4.3
4 Release:        2
5 License:        GPL
6 Group:          X11/Window Managers
7 Group(de):      X11/Fenstermanager
8 Group(es):      X11/Administraadores De Ventanas
9 Group(fr):      X11/Gestionnaires De Fenêtres
10 Group(pl):      X11/Zarz±dcy Okien
11 URL:            http://www.fvwm.org/
12 Source0:        ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.gz
13 Source1:        fvwm-2.0.46.icons.tar.gz
14 Source2:        %{name}.desktop
15 Source3:        %{name}-system.fvwm2rc.tar.gz
16 Source4:        %{name}.RunWM
17 Source5:        %{name}.wm_style
18 Patch0:         %{name}-paths.patch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Requires:       fvwm2-icons
21 Requires:       wmconfig >= 0.9.10-6
22 Requires:       m4
23 Requires:       xinitrc >= 3.0
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  readline-devel >= 4.2
27 Obsoletes:      fvwm95
28
29 %define         _prefix         /usr/X11R6
30 %define         _mandir         %{_prefix}/man
31 %define         _sysconfdir     /etc/X11/fvwm2
32 %define         _wmpropsdir     %{_datadir}/wm-properties
33
34 %description
35 FVWM2 (the F stands for whatever you want, but the VWM stands for
36 Virtual Window Manager) is an improved version of the FVWM window
37 manager for the X Window System and shares the same characteristics as
38 FVWM.
39
40 Install the fvwm2 package if you'd like to use the FVWM2 window
41 manager. If you install fvwm2, you'll also need to install
42 fvwm2-icons.
43
44 %description -l pl
45 FVWM (za F mo¿na sobie podstawic co kto woli, lecz VWM pochodzi od
46 pierwszych liter "Virtual Window Manager", czyli wirtualnego mened¿era
47 okien) to ulepszona wersja mened¿era okien dla systemu X Window FVWM i
48 posiada te same cechy.
49
50 Nale¿y zainstalowaæ pakiet fvwm2 jesli chce siê uzywaæ mened¿era okien
51 FVWM2. Instaluj±c fvwm2 nalezy równiez zainstalowaæ pakiet
52 fvwm2-icons.
53
54 %package icons
55 Summary:        Graphic files used by the FVWM and FVWM2 window managers
56 Group:          X11/Window Managers
57 Group(de):      X11/Fenstermanager
58 Group(es):      X11/Administraadores De Ventanas
59 Group(fr):      X11/Gestionnaires De Fenêtres
60 Group(pl):      X11/Zarz±dcy Okien
61 Obsoletes:      fvwm95-icons
62
63 %description icons
64 The fvwm2-icons package contains icons, bitmaps and pixmaps used by
65 the FVWM and FVWM2 X Window System window managers.
66
67 You'll need to install fvwm2-icons if you are installing fvwm and/or
68 fvwm2.
69
70 %prep
71 %setup -n fvwm-%{version} -q -a1 -a3
72 %patch0 -p1
73
74 %build
75 rm missing
76 aclocal
77 autoconf
78 automake -a -c
79 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions" \
80 %configure \
81         --disable-package-subdirs \
82         --disable-dmalloc \
83         --disable-efence \
84         --disable-debug-msgs \
85         --disable-command-log \
86         --enable-multibyte \
87         --enable-shape \
88         --enable-gnome \
89         --enable-sm \
90         --with-xpm-library \
91         --with-rplay-library \
92         --with-stroke-library \
93         --with-readline-library \
94         --with-ncurses-library \
95         --with-gnome
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 #install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{sysconfig/wmstyle,X11/fvwm2},%{_wmpropsdir}}
102 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/wmstyle}
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 install system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}
108 install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir}
109
110 rm -rf $RPM_BUILD_ROOT%{_datadir}/icons
111 install -d $RPM_BUILD_ROOT%{_datadir}/icons/mini
112
113 install icons/*.xpm $RPM_BUILD_ROOT%{_datadir}/icons
114 mv -f $RPM_BUILD_ROOT%{_datadir}/icons/mini-*.xpm $RPM_BUILD_ROOT%{_datadir}/icons/mini
115
116 install %{SOURCE2} $RPM_BUILD_ROOT%{_wmpropsdir}
117
118 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.sh
119 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.names
120
121 # conflicts with gimp
122 rm -f $RPM_BUILD_ROOT%{_datadir}/icons/{folder,question}.xpm
123
124 mv $RPM_BUILD_ROOT%{_datadir}/wm-properties{,_}
125 install -d $RPM_BUILD_ROOT%{_wmpropsdir}
126 mv $RPM_BUILD_ROOT{%{_datadir}/wm-properties_,%{_wmpropsdir}/fvwm2.desktop}
127
128 gzip -9fn README AUTHORS NEWS
129
130 %clean
131 rm -rf $RPM_BUILD_ROOT
132
133 %files
134 %defattr(644,root,root,755)
135 %doc {README,AUTHORS,NEWS,ChangeLog}.gz
136 %doc docs
137 %dir /etc/X11/fvwm2
138 %config(noreplace) /etc/X11/fvwm2/*
139 %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
140 /etc/sysconfig/wmstyle/*.names
141 %attr(755,root,root) %{_libdir}/Fvwm*
142 %attr(755,root,root) %{_bindir}/*
143 %dir %{_datadir}/fvwm
144 %{_datadir}/fvwm/*
145 %{_wmpropsdir}/fvwm2.desktop
146 %{_mandir}/man1/*
147
148 %files icons
149 %defattr(644,root,root,755)
150 %dir %{_datadir}/icons
151 %dir %{_datadir}/icons/mini
152 %{_datadir}/icons/*.xpm
153 %{_datadir}/icons/mini/*.xpm
This page took 0.059472 seconds and 3 git commands to generate.