Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd8452876b | ||
|
|
7efdb13e73 | ||
|
|
0de2e1678c | ||
|
|
a16c04bf58 |
3 changed files with 160 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/v1.0.5.tar.gz
|
||||
/sfp-master.spec
|
||||
/v1.0.6.tar.gz
|
||||
/sfp-master-1.0.6-1.fc41.src.rpm
|
||||
/sfp-master-1.0.6-1.fc40.src.rpm
|
||||
152
sfp-master.spec
Normal file
152
sfp-master.spec
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
# spec file for package sfp-master
|
||||
#
|
||||
# Copyright (c) 2024 Mikhail Medvedev <e-ink-reader@yandex.ru>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 3
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
Name: sfp-master
|
||||
Version: 1.0.6
|
||||
Release: 1%dist
|
||||
|
||||
Summary: Reading, writing SFP modules data
|
||||
Summary(ru_RU.UTF-8): Чтение, запись данных SFP-модулей
|
||||
Summary(de_DE.UTF-8): Lesen und Schreiben von SFP-Modul-Daten
|
||||
Summary(es_ES.UTF-8): Lectura, escritura de datos de módulos SFP
|
||||
Summary(hu_HU.UTF-8): SFP modulok adatainak olvasása, írása
|
||||
Summary(it_IT.UTF-8): Lettura e scrittura dei dati dei moduli SFP
|
||||
Summary(pt_BR.UTF-8): Leitura e gravação de dados de módulos SFP
|
||||
Summary(uk_UA.UTF-8): Читання, запис даних SFP модулів
|
||||
Summary(zh_CN.UTF-8): 读取、写入 SFP 模块数据
|
||||
License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only
|
||||
Group: Applications/Engineering
|
||||
|
||||
Url: https://github.com/bigbigmdm/SFP-Master
|
||||
Source: https://github.com/bigbigmdm/SFP-Master/archive/refs/tags/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: cmake(Qt5LinguistTools)
|
||||
BuildRequires: pkgconfig(libusb-1.0)
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libappstream-glib
|
||||
|
||||
%description
|
||||
SFP-Master is a free software programmer of optical SFP modules for CH341a
|
||||
devices. It can be used to read, write and save SFP module data to the computer.
|
||||
It requires an SFP to I2C adapter. This adapter is used to read and program
|
||||
SFP-module data. It must be inserted into the slot labelled 24xxx of the CH341a
|
||||
programmer.
|
||||
|
||||
%description -l ru_RU.UTF-8
|
||||
SFP-Master - это бесплатный программатор оптических SFP-модулей для устройств
|
||||
CH341a. С его помощью можно считывать, записывать и сохранять данные SFP-модуля
|
||||
на компьютере. Для работы требуется адаптер SFP в I2C. Этот адаптер используется
|
||||
для чтения и программирования данных SFP-модуля. Он должен быть вставлен в слот
|
||||
с маркировкой 24xxx программатора CH341a.
|
||||
|
||||
%description -l de_DE.UTF-8
|
||||
SFP-Master ist ein kostenloses Programmier für optische SFP-Module für
|
||||
CH341a-Geräte. Es kann zum Lesen, Schreiben und Speichern von SFP-Modul-Daten
|
||||
auf dem Computer verwendet werden. Es erfordert einen SFP-zu-I2C-Adapter.
|
||||
Dieser Adapter wird zum Lesen und Programmieren von SFP-Moduldaten verwendet.
|
||||
Er muss in den mit 24xxx gekennzeichneten Steckplatz des
|
||||
CH341a-Programmiergeräts eingesetzt werden.
|
||||
|
||||
%description -l es_ES.UTF-8
|
||||
SFP-Master es un programador de software gratuito de módulos ópticos SFP para
|
||||
dispositivos CH341a. Se puede utilizar para leer, escribir y guardar datos del
|
||||
módulo SFP en el ordenador. Requiere un adaptador SFP a I2C. Este adaptador se
|
||||
utiliza para leer y programar los datos del módulo SFP. Debe insertarse en la
|
||||
ranura etiquetada 24xxx del programador CH341a.
|
||||
|
||||
%description -l hu_HU.UTF-8
|
||||
Az SFP-Master a CH341a eszközök optikai SFP moduljainak ingyenes szoftveres
|
||||
programozója. Az SFP-modul adatainak olvasására, írására és számítógépre
|
||||
mentésére használható. Ehhez SFP-I2C adapterre van szükség. Ez az adapter az
|
||||
SFP-modul adatainak olvasására és programozására szolgál. A CH341a programozó
|
||||
24xxx feliratú nyílásába kell behelyezni.
|
||||
|
||||
%description -l it_IT.UTF-8
|
||||
SFP-Master è un programmatore software gratuito di moduli ottici SFP per
|
||||
dispositivi CH341a. Può essere utilizzato per leggere, scrivere e salvare i dati
|
||||
del modulo SFP sul computer. Richiede un adattatore SFP-I2C. Questo adattatore
|
||||
viene utilizzato per leggere e programmare i dati del modulo SFP. Deve essere
|
||||
inserito nello slot 24xxx del programmatore CH341a.
|
||||
|
||||
%description -l pt_BR.UTF-8
|
||||
O SFP-Master é um programador de software gratuito de módulos SFP ópticos para
|
||||
dispositivos CH341a. Ele pode ser usado para ler, gravar e salvar dados do
|
||||
módulo SFP no computador. Ele requer um adaptador SFP para I2C. Esse adaptador
|
||||
é usado para ler e programar os dados do módulo SFP. Ele deve ser inserido no
|
||||
slot rotulado como 24xxx do programador CH341a.
|
||||
|
||||
%description -l uk_UA.UTF-8
|
||||
SFP-Master - це безкоштовне програмне забезпечення для програмування оптичних
|
||||
SFP-модулів для пристроїв CH341a. Він може бути використаний для читання, запису
|
||||
та збереження даних SFP-модуля на комп'ютері. Для роботи потрібен адаптер SFP до
|
||||
I2C. Цей адаптер використовується для зчитування і програмування даних
|
||||
SFP-модуля. Його потрібно вставити в гніздо з маркуванням 24xxx програматора
|
||||
CH341a.
|
||||
|
||||
%description -l zh_CN.UTF-8
|
||||
SFP-Master 是用于 CH341a 设备的光学 SFP 模块的免费编程软件。
|
||||
它可用于读写 SFP 模块数据并将其保存到计算机中。它需要一个 SFP 至 I2C 适配器。
|
||||
该适配器用于读取和编程 SFP 模块数据。它必须插入 CH341a 编程器标有
|
||||
24xxx 的插槽中。
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n SFP-Master-%{version}
|
||||
|
||||
%build
|
||||
# update translations
|
||||
lrelease-qt5 language/*.ts
|
||||
|
||||
%cmake -DCMAKE_INSTALL_SYSCONFDIR=%_sysconfdir
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%check
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.xml
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%_docdir/sfp-master/
|
||||
%_bindir/SFP-Master
|
||||
%_datadir/applications/SFP-Master.desktop
|
||||
%_datadir/metainfo/*.xml
|
||||
/usr/lib/udev/rules.d/*.rules
|
||||
%_datadir/pixmaps/SFP-Master.png
|
||||
%_datadir/man/man1/*.1.*
|
||||
%_datadir/sfp-master/*.qm
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Mar 04 2025 Mikhail Medvedev 1.0.6-1
|
||||
- Fixed memory leaks
|
||||
* Wed Jan 08 2025 Mikhail Medvedev 1.0.5-1
|
||||
- Added German translation by Wucke13
|
||||
- Fixed minor bugs in the main interface
|
||||
* Wed Dec 18 2024 Mikhail Medvedev 1.0.4-1
|
||||
- Optimization for Ubuntu and Debian
|
||||
* Tue Dec 17 2024 Mikhail Medvedev 1.0.3-1
|
||||
- Added Hungarian translation by Charles K Barcza
|
||||
- Fixed minor bugs in the main interface
|
||||
* Thu Dec 12 2024 Mikhail Medvedev 1.0.2-1
|
||||
- Added Italian translation by Giovanni Scafora
|
||||
- Fix errors in RPM spec file
|
||||
- Added changelog file
|
||||
* Tue Dec 10 2024 Mikhail Medvedev 1.0.1-1
|
||||
- initial release
|
||||
3
sources
Normal file
3
sources
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
SHA512 (sfp-master.spec) = 4dc7818901c5e6246ead36352f2dbd23e27660f9ab32d57928e709e2020995db15f68ac288653ceaed980640f1f5c145c230c0d3882c5f9129a69244320e2db0
|
||||
SHA512 (v1.0.6.tar.gz) = 6bc5de7ca2475256050e9aa140647c568fa85ad3ba77e638c9bcc4580c0af794665ae919e992a66cc004cb9850111ef405c4fafcf9994bbc3b1b6877198a281a
|
||||
SHA512 (sfp-master-1.0.6-1.fc40.src.rpm) = 635ebb0da15a095051bc547cf17d9089fec80f68a2024c2202b4611c69ce92b0ba4252674188d4b021955210191083f95ec0c02eb7efe3e8780f2b6a79452079
|
||||
Loading…
Add table
Add a link
Reference in a new issue