File jwm.spec of Package jwm

Name: jwm
Version: 2.3.5
Release: 3
License: GPL-2.0
Summary: A light-weight window manager for the X11 Window System
Url: http://joewing.net/projects/%name/
Group: System/GUI/Other
Source: %name-%version.tar.xz
Source1: %name.desktop
# https://github.com/Enlik/misc
Source2: %{name}xdgmenu.pl
Patch1: %name-2.3.5-example.jwmrc.patch
Patch2: %{name}xdgmenu.pl.diff
Provides: %name-lang = %version-%release
Obsoletes: %name-lang < %version-%release
Recommends: %name-lang
BuildRequires: autoconf automake
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpng) pkgconfig(cairo) pkgconfig(librsvg-2.0) pkgconfig(freetype2) pkgconfig(fribidi)
BuildRequires: pkgconfig(xext) pkgconfig(xmu) pkgconfig(xft) pkgconfig(xrender) pkgconfig(xinerama) pkgconfig(xpm)

%description
JWM is a light-weight window manager for the X11 Window System. JWM is written in
C and uses only Xlib at a minimum. Because of its small footprint, JWM makes a
good window manager for older computers and less powerful systems, such as the
Raspberry Pi, though it is perfectly capable of running on modern systems.


%prep
%setup -q
install -p -m 0644 %{S:2} ./%{name}xdgmenu.pl
%patch1 -p1
%patch2


%build
./autogen.sh
%configure
make %{?_smp_mflags}


%install
%make_install
install -pD -m 0644 %{S:1} %buildroot%_datadir/xsessions/%name.desktop
install -p -m 0755 %{name}xdgmenu.pl %buildroot%_datadir/%name/xdgmenu.pl
%find_lang %name


%files -f %name.lang
%defattr(-,root,root)
%doc README*
%config %_sysconfdir/*
%_bindir/*
%_mandir/man1/*
%_datadir/%name
%_datadir/xsessions/*


%changelog
openSUSE Build Service is sponsored by