File minipro.spec of Package minipro
#
# spec file for package minipro
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: minipro
Version: 0.7.4
Release: 0
Summary: An open source program for controlling the TL866xx series of chip programmers
License: GPL-3.0-or-later
Group: Productivity/Scientific/Electronics
#Git-Clone: https://gitlab.com/DavidGriffith/minipro.git
URL: https://gitlab.com/DavidGriffith/minipro
Source: https://gitlab.com/DavidGriffith/minipro/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(zlib)
Requires: srecord
%package bash-completion
Summary: Bash Completion for %{name}
Group: Productivity/Scientific/Electronics
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
Bash completion script for %{name}.
%description
Features:
- Compatibility with Minipro TL866CS, TL866A, and TL866II+ from
Autoelectric (http://www.autoelectric.cn/en/tl866_main.html)
- More than 13000 target devices (including AVRs, PICs, various BIOSes
and EEPROMs)
- ZIF40 socket and ISP support
- Vendor-specific MCU configuration bits
- Chip ID verification
- Overcurrent protection
- System testing
%prep
%setup -q
%build
%make_build CFLAGS="%{optflags}" SHARE_INSTDIR=%{_datadir}/minipro
%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
install -d %{buildroot}%{_udevrulesdir}
for RULE in udev/*.rules; do
install -pm 0644 ${RULE} %{buildroot}%{_udevrulesdir}
done
install -Dpm 0644 bash_completion.d/minipro %{buildroot}%{_datadir}/bash-completion/completions/minipro
%files
%license LICENSE
%doc README.md
%{_bindir}/minipro
%{_bindir}/dump-alg-minipro.bash
%{_mandir}/man1/minipro.1%{?ext_man}
%{_datadir}/minipro
%{_udevrulesdir}/60-minipro.rules
%{_udevrulesdir}/61-minipro-plugdev.rules
%{_udevrulesdir}/61-minipro-uaccess.rules
%files bash-completion
%{_datadir}/bash-completion/completions/%{name}
%changelog