File cardpeek.spec of Package cardpeek

#
# spec file for package cardpeek
#
# Copyright (c) 2013 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:           cardpeek
Version:        0.8.4
Release:        0
Summary:        A tool to read the contents of smartcards
Group:          System/Filesystems
License:        GPL-3.0
Url:            http://pannetrat.com/Cardpeek/
Source0:        https://github.com/L1L1/cardpeek/archive/%{name}-%{version}.tar.gz
Patch1:         desktop.patch
BuildRequires:  update-desktop-files
BuildRequires:  gtk3-devel >= 3.5.4
BuildRequires:  pkgconfig(lua-5.2)
BuildRequires:  pcsc-lite-devel
BuildRequires:  libopenssl-devel
BuildRequires:  libcurl-devel
BuildRequires:  readline-devel
BuildRequires:  pkgconfig(glib-2.0)


%description
Cardpeek is a Linux/Windows tool to read the contents of ISO7816 smart cards.
It features a GTK GUI to represent card data is a tree view, and is extendable with a scripting language (LUA).
The goal of this project is to allow smart card owners to be better informed about what type of personal information is stored in these devices.


%package        reference_en-pdf
Summary:        Reference Manual for %{name}
BuildArch:	noarch
Requires:       %{name} = %{version}

%description    reference_en-pdf
The %{name}-reference_en-pdf package contains the referene manual for %{name}.


%prep
%setup -q
%patch -P 1 -p1

%build
%configure
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}
%suse_update_desktop_file %{name}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README 
%exclude %{_datadir}/doc/%{name}/%{name}_ref.en.*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/cardpeek.appdata.xml
%{_datadir}/icons/hicolor/48x48/apps/%{name}-logo.png
%{_mandir}/man1/*
%dir /usr/share/appdata

%files reference_en-pdf
%defattr(-,root,root)
%doc doc/%{name}_ref.en.odt 
%doc doc/%{name}_ref.en.pdf

%changelog
openSUSE Build Service is sponsored by