File fc-sim-tools.spec of Package fc-sim-tools
#
# spec file for package fc-sim-tools
#
# Copyright (c) 2021-2022, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define freecalypso_dir /opt/freecalypso/
Name: fc-sim-tools
Version: 0~hg103
Release: 0
Summary: FreeCalypso SIM card tools
License: SUSE-Public-Domain
Group: Productivity/Telephony/Utilities
URL: https://www.freecalypso.org/software.html
#Hg-Clone: https://www.freecalypso.org/hg/fc-sim-tools/
Source: %{name}-%{version}.tar.xz
Source1: fc-sim-tools-rpmlintrc
BuildRequires: gcc13
BuildRequires: pkgconfig(libpcsclite)
%description
FreeCalypso SIM card tools.
%prep
%autosetup
%build
make CC=gcc-13 MCFLAGS='%{optflags} -Wno-return-type -Wno-implicit' %{?_smp_mflags}
%install
make install INSTALL_PREFIX=%{buildroot}/%{freecalypso_dir}/
%files
%license LICENSE
%doc README doc/*
%dir %{freecalypso_dir}
%dir %{freecalypso_dir}/bin
%dir %{freecalypso_dir}/sim-scripts
%{freecalypso_dir}/bin/fc-pcsc-atr
%{freecalypso_dir}/bin/fc-pcsc-backend
%{freecalypso_dir}/bin/fc-pcsc-list
%{freecalypso_dir}/bin/fc-simtool
%{freecalypso_dir}/bin/fc-uicc-tool
%{freecalypso_dir}/bin/fcsim-calypso-be
%{freecalypso_dir}/bin/fcsim-serial-atr
%{freecalypso_dir}/bin/fcsim-serial-be
%{freecalypso_dir}/bin/fcsim1-mkprov
%{freecalypso_dir}/bin/fcsim1-program
%{freecalypso_dir}/bin/sim-iccid-mkfull
%{freecalypso_dir}/bin/sim-iccid-mkrange
%{freecalypso_dir}/bin/sws-card-lookup
%{freecalypso_dir}/bin/sws-email2db
%{freecalypso_dir}/sim-scripts/default-fplmn
%{freecalypso_dir}/sim-scripts/fcsim1-default-pins
%{freecalypso_dir}/sim-scripts/fcsim1-defprog
%{freecalypso_dir}/sim-scripts/fcsim1-sst
%{freecalypso_dir}/sim-scripts/grcard2-read-all
%{freecalypso_dir}/sim-scripts/oper-sim-test
%changelog