File bidekkida.spec of Package bidekkida

#
# spec file for package bidekkida
#
# Copyright (c) 2017 Buschmann <buschmann23@opensuse.org>
#
# 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:           bidekkida
Version:        0.1.60git
Release:        0
Summary:        Tiny Tool to Anonymize Apache Log File Entries
License:        GPL-3.0
Group:          Productivity/Networking/Web/Utilities
Url:            https://github.com/Buschtrommel/Bidekkida
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.1
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Core) >= 5.5.0

%description
Tiny tool to anonymize log file entries that can contain personal data like IP addresses.
Currently mainly targeted to Apache web server log files. It is written in C++/Qt.

%prep
%setup -q

%build
  mkdir build
  pushd build
  cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
        -DCMAKE_BUILD_TYPE="Release" \
        -DCMAKE_C_FLAGS:STRING="${CFLAGS:-%optflags}" \
        -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS:-%optflags}" \
        -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \
        -DCMAKE_SKIP_RPATH:BOOL=OFF \
        -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
        -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \
        ..
  make %{?_smp_mflags} VERBOSE=1
  popd

%install
  pushd build
  make DESTDIR=%{?buildroot:%{buildroot}} install
  popd

%files
%defattr(-,root,root,755)
%doc LICENSE README.md
%{_bindir}/%{name}

%changelog