Sisyphus repository
Last update: 22 october 2017 | SRPMs: 17935 | Visits: 10217063
en ru br
ALT Linux repos
S:20170517ba1a8306-alt1

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
URL: https://github.com/setarcos/ch341prog
Source0: %name-%version.tar.xz
%if %build_static
BuildRequires: glibc-devel-static libnetlink-devel-static
%else
BuildRequires: libnetlink-devel
%endif

%description
%name is a %summary

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

%description doc
%summary


%prep
%setup


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


%install
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
%{_bindir}/*
%{_man1dir}/*

%files doc
%doc CH341_chip.txt COPYING README.md

%changelog

Full changelog you can see here

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