]> git.pld-linux.org Git - SPECS.git/blob - swm.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / swm.spec
1 #
2 # Conditional build:
3 %bcond_with     epistrophy      # ???
4 #
5 Summary:        Small window manager
6 Summary(pl.UTF-8):      Mały zarządca okien dla X Window
7 Name:           swm
8 Version:        1.3.4
9 Release:        3
10 License:        GPL
11 Group:          X11/Window Managers
12 Source0:        http://www.small-window-manager.de/%{name}-%{version}-src.tgz
13 # Source0-md5:  70df4f59ee8584bb3f11056c1ade1d9b
14 Source1:        %{name}-xsession.desktop
15 Patch0:         %{name}-make.patch
16 Patch1:         %{name}-amd64.patch
17 URL:            http://www.small-window-manager.de/
18 BuildRequires:  XFree86-devel
19 BuildRequires:  rpm-build >= 4.0.2-48
20 %{?with_epistrophy:Requires:    epistrophy}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 sWM is a very small and fast window manager for the X Window System.
25 It should run under any version of Linux, BSD, UNIX and other
26 compatible operating systems. It is designed to be fast and efficient
27 and even runs on Linux-PDAs such as the Compaq iPAQ. If you use it on
28 a rather unusual or exotic plattform please *please* send me a mail so
29 your system can be listed. :-) sWM was tested under: Linux Mandrake
30 8.1, Linux Mandrake 8.0, RedHat 6.0, Debian 2.0.
31
32 %description -l pl.UTF-8
33 sWM jest bardzo małym i szybkim zarządcą okien dla X Window System.
34 Powinien działać pod dowolną wersją Linuksa, BSD, UNIX i innych
35 zgodnych z nimi systemów. sWM został zaprojektowany by działać
36 efektywnie nawet na Linux-PDA takich jak Compaq iPAQ. Jeżeli używasz
37 go na jakiejś egzotycznej platformie proszę *proszę* przyślij
38 wiadomość e-mail, to i Twój system zostanie tu wymieniony. sWM był
39 testowany na Linuksach: Mandrake 8.1, Mandrake 8.0, RedHat 6.0, Debian
40 2.0.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46
47 %build
48 %{__make} -C src -f Makefile-xpm \
49         CC="%{__cc}" \
50         CFLAGS="%{rpmcflags}"
51
52 %{__make} -C swmswitch \
53         CC="%{__cc}" \
54         CFLAGS="%{rpmcflags} -Wall"
55
56 %{__make} -C swmbg \
57         CC="%{__cc}" \
58         CFLAGS="%{rpmcflags} -Wall"
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d \
63         $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/{%{name},xsessions}} \
64         $RPM_BUILD_ROOT%{_mandir}/{man1,de/man1}
65
66 install src/startswm $RPM_BUILD_ROOT%{_bindir}
67 install src/swm $RPM_BUILD_ROOT%{_bindir}
68 install swmswitch/swmswitch $RPM_BUILD_ROOT%{_bindir}
69
70 install src/swm.1x $RPM_BUILD_ROOT%{_mandir}/man1
71 install swmswitch/swmswitch.1x $RPM_BUILD_ROOT%{_mandir}/man1
72 install swmbg/swmbg.1x $RPM_BUILD_ROOT%{_mandir}/man1
73 install src/swm-de.1x $RPM_BUILD_ROOT%{_mandir}/de/man1/swm.1x
74 install swmbg/swmbg-de.1x $RPM_BUILD_ROOT%{_mandir}/de/man1/swmbg.1x
75
76 cp -rdp share/swm $RPM_BUILD_ROOT%{_datadir}
77 cp -rdp swmbg/pixmaps $RPM_BUILD_ROOT%{_datadir}/swm
78
79 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %doc doc
87 %attr(755,root,root) %{_bindir}/*
88 %{_datadir}/%{name}
89 %{_datadir}/xsessions/%{name}.desktop
90 %{_mandir}/man1/*
91 %lang(de) %{_mandir}/de/man1/*
This page took 0.03724 seconds and 3 git commands to generate.