File pkTriggerCord.spec of Package pkTriggerCord

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

%define sname %(echo %{name}|tr A-Z a-z)

Summary:        Remote control program for Pentax DSLR cameras
License:        LGPL-3.0
Group:          Hardware/Camera
Name:           pkTriggerCord
Version:        0.82.04
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc
BuildRequires:  gtk2-devel
BuildRequires:  make
Requires(post): libcap-progs

pkTriggerCord is a remote control program for Pentax DSLR cameras.

%setup -q -n %{sname}-%{version}

make clean
make %{?_smp_mflags} PREFIX=%{_prefix} CFLAGS="%optflags"

%{makeinstall} PREFIX=%{_prefix}

install -d %{buildroot}/%{_prefix}/lib/udev/rules.d/
cp %{buildroot}/%{_sysconfdir}/udev/rules.d/*.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/
rm -rf %{buildroot}/%{_sysconfdir}/udev/

setcap CAP_SYS_RAWIO+eip %{_bindir}/%{sname}-cli
setcap CAP_SYS_RAWIO+eip %{_bindir}/%{sname}

%doc Changelog COPYING BUGS
%dir %{_prefix}/lib/udev/
%dir %{_prefix}/lib/udev/rules.d/

openSUSE Build Service is sponsored by