File IMSProg.spec of Package imsprog

#
# spec file for package imsprog
#
# Copyright (c) 2024 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:           IMSProg
Version:        1.4.5
Release:        1
Summary:        IMSProg ch341a Programmer
License:        GPL-3.0
URL:            https://github.com/bigbigmdm/IMSProg
Source0:        https://github.com/bigbigmdm/IMSProg/archive/refs/tags/v1.4.5.tar.gz
BuildRequires:  cmake gcc-c++
BuildRequires:	libqt5-qtbase-devel
BuildRequires:	libqt5-qttools-devel
BuildRequires:	libusb-1_0-devel
   

%description
I2C, SPI and MicroWire EEPROM/Flash chip programmer
for CH341a devices. This is a free I2C EEPROM programmer tool for
CH341A device based on QhexEdit2 and modify SNANDer programmer.

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.

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.

%description -l ru_RU.UTF-8
I2C, SPI and MicroWire EEPROM/Flash программатор
для CH341a устройств. Является бесплатной утилитой для
использования CH341A устройств в качестве программатора микросхем. Основана на
QhexEdit2 и модифицированном программаторе SNANDer.

Графический интерфейс программы использует виджеты QhexEditor. Для настройки
параметров чипа SPI вы можете использовать кнопку «Поиск» для чтения параметров
чипа (считывание информации JEDEC) или настроить его вручную. I2C и MicroWire
EEPROM выбираются только вручную.

Формат базы данных чипов клонируется программаторами EZP2019, EZP2020, EZP2023,
Minpro I, XP866+. Вы можете редактировать базу данных с помощью редактора данных
EZP Chip.

%prep
%setup -q

# update translations
lrelease-qt5 IMSProg_editor/language/*.ts
lrelease-qt5 IMSProg_programmer/language/*.ts

%build
pushd IMSProg_editor
%cmake -DCMAKE_INSTALL_SYSCONFDIR=%_sysconfdir
%cmake_build
popd

pushd IMSProg_programmer
%cmake -DCMAKE_INSTALL_SYSCONFDIR=%_sysconfdir
%cmake_build
popd

%check

%install
pushd IMSProg_editor
%cmake_install
popd

pushd IMSProg_programmer
%cmake_install
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
/usr/share/metainfo/io.github.bigbigmdm.imsprog.metainfo.xml
/usr/share/metainfo/io.github.bigbigmdm.imsprog_database_update.metainfo.xml
/usr/share/metainfo/io.github.bigbigmdm.imsprog_editor.metainfo.xml
/%_bindir/IMSProg
/%_bindir/IMSProg_editor
/%_bindir/IMSProg_database_update
/%_datadir/doc/imsprog
/%_datadir/doc/imsprog/html
/%_datadir/imsprog
/%_datadir/applications/IMSProg.desktop
/%_datadir/applications/IMSProg_editor.desktop
/%_datadir/applications/IMSProg_database_update.desktop
/%_udevrulesdir/71-CH341.rules
/%_datadir/pixmaps/chipEdit64.png
/%_datadir/pixmaps/IMSProg64.png
/%_datadir/pixmaps/IMSProg_database_update.png
/%_datadir/doc/imsprog/html/index.html
/%_datadir/imsprog/IMSProg.Dat
/%_datadir/imsprog/chipEditor_*.qm
/%_datadir/imsprog/chipProgrammer_*.qm
/%_datadir/man/man1/IMSProg*.gz

%changelog
* Wed Feb 12 2025 Mistific@tor - 1.4.5-1
- Fixed: Incorrect block/page size after first read procedure.
- Fixed: Incorrect reading/writing I2C low speed chips.
- Added support for MXIC MX25V8035F.
- Added I2C bus speed combobox to the main form.
openSUSE Build Service is sponsored by