File orbment.spec of Package orbment

#
# spec file for package orbment
#
# Copyright (c) 2015 SUSE LINUX 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:           orbment
Version:        0.0.1.20160813
Release:        0
Summary:        Modular compositor for Wayland
License:        GPL-3.0+
Group:          System/GUI/Other
Url:            https://github.com/Cloudef/orbment
Source:         %name-%version.tar.xz
Source2:        orbment.desktop
BuildRequires:  Mesa-devel
BuildRequires:  chck-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libinput)
BuildRequires:  pkgconfig(libpng16)
BuildRequires:  pkgconfig(wlc)
BuildRequires:  pkgconfig(zlib)

%description
Orbment is modular compositor for Wayland with flexible plugin
architecture where plugins may co-operate with each other.  The core
consist of small code base which provide plugin management, and hooks
api for plugins.  Core plugins are used to provide functionality you
would expect from bare bones tiling window manager.

%package devel
Summary:        Development files for orbment
Group:          Development/Libraries/C and C++
Requires:       %name = %version

%description devel
Development files for orbment, a modular compositor for Wayland.

%prep
%setup -q

%build
# FIXME:
# this is workaround for incorrectly propagated header paths,
# it should be probably fixed in CMake/FindWLC.cmake
#
# I'm so ugly cheater...
export CPATH=/usr/include/pkg/libxkbcommon/:/usr/include/wayland


q="-Wl,--as-needed -pie -fPIC -Wl,-z,relro,-z,now"
%cmake \
       -DCMAKE_BUILD_TYPE=Upstream \
       -DLIBINPUT_INCLUDE_DIRS=/usr/include/libinput \
       -DSOURCE_WLC=OFF \
       -DSOURCE_CHCK=OFF \
       -DBUILD_SHARED_LIBS=OFF \
       -DCMAKE_EXE_LINKER_FLAGS="$q" \
       -DCMAKE_MODULE_LINKER_FLAGS="$q" \
       -DCMAKE_SHARED_LINKER_FLAGS="$q"

make %{?_smp_mflags}

%install
%cmake_install
install -D -t "%buildroot/%_datadir/wayland-sessions/" %SOURCE2

%files
%defattr(-,root,root)
%_bindir/%{name}
%_mandir/man1/*
%_libdir/%{name}/
%_datadir/wayland-sessions/
%doc LICENSE

%files devel
%defattr(-,root,root)
%_includedir/%name/

%changelog
openSUSE Build Service is sponsored by