File pdfgrep.spec of Package pdfgrep

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

Name:           pdfgrep
Version:        2.0.1
Release:        0
Summary:        Search in pdf files for strings matching a regular expression
License:        GPL-2.0+
Group:          Productivity/Text/Utilities
BuildRequires:  gcc-c++
BuildRequires:  libgcrypt-devel
BuildRequires:  libpoppler-devel
BuildRequires:  pcre-devel

Pdfgrep is a tool to search text in PDF files. It works similar to `grep'.

- search for regular expressions.
- support for some important grep options, including:
+ filename output.
+ page number output.
+ optional case insensitivity.
+ count occurrences.

%setup -q

%configure CXXFLAGS="%{optflags}" --with-bash-completion
make %{?_smp_mflags}


%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license COPYING

openSUSE Build Service is sponsored by