File pdfgrep.spec of Package pdfgrep

Summary:    Search in pdf files for strings matching a regular expression 
Name:       pdfgrep
Version:    1.3.1
Release:    1
License:    GPL-2.0+
Group:      Productivity/Text/Utilities
URL:        http://pdfgrep.sourceforge.net/
Source0:    %{name}-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ libpoppler-cpp0 libpoppler-devel

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

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

%prep
%setup -q

%if 0%{?sles_version} == 10
# %%patch1
%endif

%build
%configure CXXFLAGS="%{optflags}"
%{__make}

%install
%{__make} install DESTDIR="%{buildroot}"

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}.1.gz

%changelog