Sisyphus repository
Last update: 22 september 2018 | SRPMs: 18657 | Visits: 12251314
en ru br
ALT Linux repos

Group :: Development/Other
RPM: ch341prog

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define build_static 0

Name: ch341prog
# look at the last non-specfile change, take date and first 8 digits
Version: 20170517ba1a8306
Release: alt1
Summary: 24xx/25xx I2C/SPI IC flashing tool for CH341-based programmers
License: GPL3
Group: Development/Other
Source0: %name-%version.tar.xz
%if %build_static
BuildRequires: glibc-devel-static libnetlink-devel-static
BuildRequires: libnetlink-devel

%name is a %summary

%package doc
Summary: Optional documentation for %name
Group: Development/Other
BuildArch: noarch

%description doc


%__cc -std=gnu99 -Wall -Ilibusb \
*.c libusb/*.c -o %name \
-lpthread -lnetlink \
%if %build_static
-s -static

rm -rf %buildroot
umask 022
mkdir -p %buildroot/%_bindir %buildroot/%_man1dir
install -m 755 %name %buildroot/%_bindir/
install -m 644 %name.1 %buildroot/%_man1dir/


%files doc
%doc CH341_chip.txt COPYING


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin