File i3.spec of Package i3

# spec file for package i3
# Copyright (c) 2013 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

Name:           i3
Version:        4.6
Release:        0
Summary:        Tilling window manager
License:        BSD-3-Clause
Group:          System/GUI/Other
Source1:        %{name}.png
Patch1:         i3-desktop_file_valid.patch
BuildRequires:  asciidoc
BuildRequires:  bison
BuildRequires:  cairo-devel
BuildRequires:  flex
BuildRequires:  gcc
BuildRequires:  glib2-devel
BuildRequires:  libev-devel
BuildRequires:  libyajl-devel
BuildRequires:  make
BuildRequires:  pango-devel
BuildRequires:  pcre-devel
BuildRequires:  pkg-config
BuildRequires:  startup-notification-devel
BuildRequires:  update-desktop-files
BuildRequires:  xmlto
BuildRequires:  xorg-x11-devel
BuildRequires:  xorg-x11-libxcb-devel
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(xcb-keysyms)

# Upstream First - Policy:
# Never add any patches to this package without the upstream commit id
# in the patch. Any patches added here without a very good reason to make
# an exception will be silently removed with the next version update.

i3 is a tiling window manager, completely written from scratch.

%package devel
Summary:        Development headers for i3
Group:          Development/Libraries/C and C++
Requires:       %{name}

%description devel
Development headers for the i3 window manager

%setup -q

CFLAGS="$CFLAGS -I/usr/include/glib-2.0 -I%{_libdir}/glib-2.0/include/ -I/usr/include/pango-1.0 -I/usr/include/cairo" CXXFLAGS="$CXXFLAGS -I/usr/include/glib-2.0 -I%{_libdir}/glib-2.0/include/ -I/usr/include/pango-1.0 -I/usr/include/cairo" make %{?_smp_mflags} V=1

install -d %{buildroot}/%{_mandir}/man1/
install -m 0644 man/*.1 %{buildroot}/%{_mandir}/man1/
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_datadir}/pixmaps/%{name}.png

%doc %{_mandir}/man1/i3*
%dir %{_sysconfdir}/i3/
%config %{_sysconfdir}/i3/config
%config %{_sysconfdir}/i3/config.keycodes

%files devel
%dir %{_includedir}/i3/

openSUSE Build Service is sponsored by