Группа :: Разработка/Прочее
Пакет: ch341prog
Главная Изменения Спек Патчи Sources Загрузить 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
…
Полный changelog можно просмотреть здесь
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
…
Полный changelog можно просмотреть здесь