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 http://bugs.opensuse.org/
#


Name:           i3
Version:        4.6
Release:        0
Summary:        Tilling window manager
License:        BSD-3-Clause
Group:          System/GUI/Other
Url:            http://i3wm.org/
Source0:        http://i3wm.org/downloads/%{name}-%{version}.tar.bz2
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.

%description
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

%prep
%setup -q
%patch1

%build
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
%make_install
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

%files
%defattr(-,root,root,-)
%doc LICENSE RELEASE-NOTES-%{version}
%doc %{_mandir}/man1/i3*
%{_bindir}/i3
%{_bindir}/i3-dump-log
%{_bindir}/i3bar
%{_bindir}/i3-config-wizard
%{_bindir}/i3-dmenu-desktop
%{_bindir}/i3-input
%{_bindir}/i3-migrate-config-to-v4
%{_bindir}/i3-msg
%{_bindir}/i3-nagbar
%{_bindir}/i3-sensible-editor
%{_bindir}/i3-sensible-pager
%{_bindir}/i3-sensible-terminal
%dir %{_sysconfdir}/i3/
%config %{_sysconfdir}/i3/config
%config %{_sysconfdir}/i3/config.keycodes
%{_datadir}/xsessions/i3.desktop
%{_datadir}/applications/i3.desktop
%{_datadir}/pixmaps/i3.png

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/i3/
%{_includedir}/i3/ipc.h

%changelog
openSUSE Build Service is sponsored by