File maim.spec of Package maim
#
# spec file for package maim
#
# Copyright (c) 2014 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/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: maim
Version: 3.3.41
Release: 0
Summary: Flexible screenshotting utility
License: GPL-3.0+
Group: Productivity/Graphics/Other
Url: https://github.com/naelstrof/maim
Source0: https://github.com/naelstrof/maim/archive/v%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrandr)
Requires: slop
%description
maim (Make Image) is a utility that takes screenshots of your desktop
using imlib2. It's meant to overcome shortcomings of scrot and performs
better in several ways.
%prep
%setup -q
mkdir build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
popd
%build
pushd build
make %{?_smp_mflags}
popd
%install
pushd build
make DESTDIR=%{buildroot} install %{?_smp_mflags}
popd
%files
%defattr(-,root,root)
%{_bindir}/maim
%{_mandir}/man1/maim.1.gz