IMSProg/IMSProg.spec

125 lines
3.9 KiB
RPMSpec
Raw Normal View History

2024-06-28 10:00:52 +00:00
%define secscan 1
2023-11-07 21:47:15 +09:00
Name: IMSProg
2025-02-21 07:22:03 +00:00
Version: 1.5.1
2024-01-29 11:55:58 +09:00
%global rel %{nil}
2023-11-07 21:47:15 +09:00
Release: 1
Summary: I2C, SPI and MicroWire EEPROM/Flash chip programmer for CH341a devices
2024-02-27 22:49:09 +00:00
Summary(ru_RU.UTF-8): EEPROM/Flash программатор для CH341a устройств
License: GPLv3
2023-11-07 21:47:15 +09:00
Group: Development/Tools
2023-11-07 20:08:33 +09:00
2024-02-04 15:19:35 +00:00
URL: https://github.com/bigbigmdm/IMSProg
2024-06-28 10:00:52 +00:00
Source: %{url}/archive/refs/tags/v%{version}%{rel}.tar.gz?/%{name}-%{version}%{rel}.tar.gz
2024-01-29 11:55:58 +09:00
Patch: IMSProg-1.1.10.patch
2023-11-07 20:08:33 +09:00
2023-11-07 21:47:15 +09:00
BuildRequires: cmake
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Widgets)
2024-02-27 22:49:09 +00:00
BuildRequires: pkgconfig(Qt5Xml)
2023-11-07 21:47:15 +09:00
BuildRequires: qt5-linguist-tools
2023-11-07 20:08:33 +09:00
BuildRequires: pkgconfig(libusb-1.0)
2024-06-28 10:00:52 +00:00
%if %{secscan}
BuildRequires: clamav
BuildRequires: trivy
%endif
2023-11-07 20:08:33 +09:00
%description
2024-02-27 22:49:09 +00:00
IMSProg - Linux IMSProg - I2C, SPI and MicroWire EEPROM/Flash
chip programmer for CH341a devices. The IMSProm is a free I2C
EEPROM programmer tool for CH341A device based on QhexEdit2
and modify SNANDer programmer.
2023-11-07 20:08:33 +09:00
2024-02-27 22:49:09 +00:00
This is a GUI program used widget QhexEditor. For setting the
SPI chip parameters you can use the Detect button for reading
chip parameters (JEDEC information reading) or manually setting
it. The I2C and MicroWire EEPROM only manually selected.
2023-11-07 20:08:33 +09:00
2024-02-27 22:49:09 +00:00
The chip database format is clone with EZP2019, EZP2020,
EZP2023, Minpro I, XP866+ programmers. You can edit the database
use the EZP Chip data Editor.
2023-11-07 20:08:33 +09:00
%description -l ru_RU.UTF-8
2024-02-27 22:49:09 +00:00
IMSProg - Linux IMSProg - I2C, SPI and MicroWire
EEPROM/Flash программатор для CH341a устройств.
IMSProm является бесплатной утилитой для
использования CH341A устройств в качестве
программатора микросхем. Основана на QhexEdit2
и модифицированном программаторе SNANDer.
Графический интерфейс программы
использует виджеты QhexEditor. Для настройки
параметров чипа SPI вы можете использовать
кнопку «Поиск» для чтения параметров чипа
(считывание информации JEDEC) или настроить
его вручную.I2C и MicroWire EEPROM выбираются
только вручную.
Формат базы данных чипов клонируется
программаторами EZP2019, EZP2020, EZP2023,
Minpro I, XP866+. Вы можете редактировать базу
данных с помощью редактора данных EZP Chip.
2023-11-07 20:08:33 +09:00
%prep
2024-02-04 15:19:35 +00:00
%setup -qn %{name}-%{version}%{rel}
2023-11-07 20:08:33 +09:00
2024-06-28 10:00:52 +00:00
%if %{secscan}
clamscan -ir .
trivy fs --scanners vuln --format cosign-vuln .
%endif
2023-11-07 20:08:33 +09:00
# update translations
lrelease-qt5 IMSProg_editor/language/*.ts
lrelease-qt5 IMSProg_programmer/language/*.ts
%build
pushd IMSProg_editor
%cmake
2023-11-07 21:47:15 +09:00
%make_build
2023-11-07 20:08:33 +09:00
popd
pushd IMSProg_programmer
%cmake
2023-11-07 21:47:15 +09:00
%make_build
2023-11-07 20:08:33 +09:00
popd
%install
pushd IMSProg_editor
2023-11-07 21:47:15 +09:00
%make_install -C build
2023-11-07 20:08:33 +09:00
popd
pushd IMSProg_programmer
2023-11-07 21:47:15 +09:00
%make_install -C build
2023-11-07 20:08:33 +09:00
popd
# rename README
cp IMSProg_editor/README.md IMSProg_editor.md
cp IMSProg_programmer/README.md IMSProg_programmer.md
%files
%doc README.md IMSProg_editor.md IMSProg_programmer.md
2024-01-29 11:55:58 +09:00
%doc %{_docdir}/imsprog/html/index.html
2023-11-07 21:47:15 +09:00
%{_bindir}/%{name}
%{_bindir}/%{name}_editor
2024-01-29 11:55:58 +09:00
%{_bindir}/IMSProg_database_update
%{_datadir}/imsprog
2023-11-07 21:47:15 +09:00
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}_editor.desktop
2024-01-29 11:55:58 +09:00
%{_datadir}/applications/IMSProg_database_update.desktop
2024-05-27 15:01:02 +00:00
#{_udevrulesdir}/99-CH341.rules
2024-05-27 13:24:17 +00:00
%{_udevrulesdir}/71-CH341.rules
2024-01-29 11:55:58 +09:00
%{_mandir}/man1/IMSProg.1.xz
%{_mandir}/man1/IMSProg_database_update.1*
%{_mandir}/man1/IMSProg_editor.1*
%{_datadir}/pixmaps/IMSProg64.png
%{_datadir}/pixmaps/IMSProg_database_update.png
%{_datadir}/pixmaps/chipEdit64.png
2024-06-29 21:19:13 +00:00
%{_datadir}/metainfo/io.github.bigbigmdm.imsprog.metainfo.xml
%{_datadir}/metainfo/io.github.bigbigmdm.imsprog_database_update.metainfo.xml
%{_datadir}/metainfo/io.github.bigbigmdm.imsprog_editor.metainfo.xml
2024-06-28 10:00:52 +00:00
%check
%if %{secscan}
clamscan -ir %{buildroot}
%endif