SHA256
1
0
forked from pool/herbstluftwm
herbstluftwm/_service:set_version:herbstluftwm.spec

87 lines
2.9 KiB
RPMSpec

#
# spec file for package [spectemplate]
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%if 0%{?suse_version} <= 1210
%define _zsh_version 4.3.12
%else
%define _zsh_version 4.3.15
%endif
Name: herbstluftwm
Version: 1334497068
Release: 0
Summary: A manual tiling window manager
Group: System/GUI/Other
License: Simplified BSD
URL: http://wwwcip.cs.fau.de/~re06huxa/herbstluftwm/index.html
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
BuildRequires: ncurses-utils
BuildRequires: xorg-x11-devel
BuildRequires: glib2-devel
BuildRequires: asciidoc
BuildRequires: libxslt-devel
Requires: xorg-x11-libX11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BuildArch: noarch
%description
herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib.
%prep
%setup -q
%build
make
%install
make install INSTALLDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} LICENSEDIR=%{buildroot}/%{_datadir}/doc/packages/%{name} DOCDIR=%{buildroot}/%{_docdir}/%{name} ZSHCOMPLETIONDIR=%{buildroot}/%{_datadir}/zsh/%{_zsh_version}/functions/
#BINDIR=%%{buildroot}/%%{_bindir} DOCDIR=%%{buildroot}/%%{_datadir}/doc/packages/ ZSHCOMPLETIONDIR=%%{buildroot}/%%{_datadir}/zsh/%%{_zsh_version}/functions/ LICENSEDIR=%%{buildroot}/%%{_datadir}/doc/packages/ MANDIR=%%{buildroot}/%%{_mandir}/man1 CONFIGDIR=%%{buildroot}/%%{_sysconfdir}/xdg/herbstluftwm/ EXAMPLESDIR=%%{buildroot}/%%{_datadir}/doc/packages/
%{__install} -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/xsessions/%{name}.desktop
%clean
rm -rf %{buildroot}
%files
#%%doc BUGS NEWS README
%defattr (-, root, root)
%dir /etc/xdg/herbstluftwm
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/%{_zsh_version}
%dir %{_datadir}/zsh/%{_zsh_version}/functions
%config /etc/bash_completion.d/herbstclient-completion
%{_sysconfdir}/xdg/herbstluftwm/autostart
%{_sysconfdir}/xdg/herbstluftwm/panel.sh
%{_sysconfdir}/xdg/herbstluftwm/restartpanels.sh
%{_bindir}/herbstclient
%{_bindir}/herbstluftwm
#%%{_docdir}/packages/%%{name}/examples/*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%{_mandir}/man1/herbstclient.1.gz
%{_mandir}/man1/herbstluftwm.1.gz
%{_datadir}/zsh/%{_zsh_version}/functions/_herbstclient
%{_datadir}/xsessions/herbstluftwm.desktop
%changelog