File cardpeek.spec of Package cardpeek

#
# spec file for package cardpeek
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#


Name:           cardpeek
Version:        0.8.4
Release:        0
Summary:        Tool To Read Contents of ISO7816 Smart Cards (Credit Cards, GSM SIM etc
License:        GPL-3.0
Group:          Productivity/Security
Url:            http://pannetrat.com/Cardpeek/
Source:         http://downloads.pannetrat.com/install/%{name}-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  gtk3-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  libcurl-devel
%if 0%{?suse_version} > 1320
BuildRequires:  lua52-devel
%else
BuildRequires:  lua-devel
%endif
BuildRequires:  openssl-devel
BuildRequires:  pcsc-lite-devel
BuildRequires:  pkg-config
BuildRequires:  readline-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Cardpeek is a Linux 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.

The tool currently reads the contents of:
    * EMV cards
    * Calypso public transport cards (such as Navigo)
    * Moneo ePurse cards
    * Vitale 2 French health cards.
    * GSM cards (beta)

See /usr/share/doc/packages/cardpeek/cardpeek_ref.en.pdf for more details.

%prep
%setup -q

%build
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}

%install
%make_install

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
# NEWS is empty
%doc AUTHORS COPYING ChangeLog README
%doc %{_mandir}/man1/cardpeek.1*
%{_bindir}/cardpeek
%dir %{_datadir}/appdata
%{_datadir}/appdata/cardpeek.appdata.xml
%{_datadir}/applications/cardpeek.desktop
%{_datadir}/icons/hicolor/*/*/*.*

%changelog
openSUSE Build Service is sponsored by