Group :: Communications
RPM: cqrlog
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: cqrlog
Version: 2.5.2
Release: alt1
Summary: An amateur radio contact logging program
Group: Communications
License: GPL-2.0
URL: http://www.cqrlog.com/
Source0: %name-%version.tar
# VCS: https://github.com/ok2cqr/cqrlog
Patch0: cqrlog-install.patch
ExclusiveArch: %ix86 x86_64
BuildRequires: fpc >= 2.6.4
BuildRequires: lazarus
BuildRequires: hamlib-devel
BuildRequires: libssl-devel
BuildRequires: desktop-file-utils
Requires: mariadb-server
Requires: trustedqsl
Requires: hamlib
%description
CQRLOG is an advanced ham radio logger based on MySQL database. Provides
radio control based on hamlib libraries (currently support of 140+ radio
types and models), DX cluster connection, QRZ callbook (web version), a
grayliner, internal QSL manager database support and a most accurate
country resolution algorithm based on country tables developed by OK1RR.
CQRLOG is intended for daily general logging of HF, CW & SSB contacts
and strongly focused on easy operation and maintenance.
%prep
%setup -q
%patch0 -p1
chmod -x src/*.pas \
voice_keyer/voice_keyer.sh
%build
%make_build
%install
%makeinstall_std
find %buildroot%_datadir/%name -name \*.txt | xargs subst 's/\r//'
subst 's/\r//' %buildroot%_datadir/%name/ctyfiles/CountryDel.tab
subst 's/\r//' %buildroot%_datadir/%name/ctyfiles/MASTER.SCP
iconv -f iso8859-1 -t utf-8 %buildroot%_datadir/%name/ctyfiles/eqsl.txt > eqsl.txt.conv && /bin/mv -f eqsl.txt.conv %buildroot%_datadir/%name/ctyfiles/eqsl.txt
rm -rf %buildroot%_datadir/%name/cqrlog-apparmor-fix
# Move icons to appropriate places
for i in 32 48 64 128 256; do
install -Dm 0644 %buildroot%_iconsdir/%name/${i}x${i}/%name.png %buildroot%_iconsdir/hicolor/${i}x${i}/apps/%name.png
done
rm -rf %buildroot%_iconsdir/%{name}*
%files
%doc README.md AUTHORS CHANGELOG
%_bindir/%name
%_datadir/%name/
%_desktopdir/%name.desktop
%_datadir/appdata/%name.appdata.xml
%_pixmapsdir/%name/
%_man1dir/%name.1.*
%_iconsdir/hicolor/*/apps/%name.png
%changelog
…
Full changelog you can see here
Version: 2.5.2
Release: alt1
Summary: An amateur radio contact logging program
Group: Communications
License: GPL-2.0
URL: http://www.cqrlog.com/
Source0: %name-%version.tar
# VCS: https://github.com/ok2cqr/cqrlog
Patch0: cqrlog-install.patch
ExclusiveArch: %ix86 x86_64
BuildRequires: fpc >= 2.6.4
BuildRequires: lazarus
BuildRequires: hamlib-devel
BuildRequires: libssl-devel
BuildRequires: desktop-file-utils
Requires: mariadb-server
Requires: trustedqsl
Requires: hamlib
%description
CQRLOG is an advanced ham radio logger based on MySQL database. Provides
radio control based on hamlib libraries (currently support of 140+ radio
types and models), DX cluster connection, QRZ callbook (web version), a
grayliner, internal QSL manager database support and a most accurate
country resolution algorithm based on country tables developed by OK1RR.
CQRLOG is intended for daily general logging of HF, CW & SSB contacts
and strongly focused on easy operation and maintenance.
%prep
%setup -q
%patch0 -p1
chmod -x src/*.pas \
voice_keyer/voice_keyer.sh
%build
%make_build
%install
%makeinstall_std
find %buildroot%_datadir/%name -name \*.txt | xargs subst 's/\r//'
subst 's/\r//' %buildroot%_datadir/%name/ctyfiles/CountryDel.tab
subst 's/\r//' %buildroot%_datadir/%name/ctyfiles/MASTER.SCP
iconv -f iso8859-1 -t utf-8 %buildroot%_datadir/%name/ctyfiles/eqsl.txt > eqsl.txt.conv && /bin/mv -f eqsl.txt.conv %buildroot%_datadir/%name/ctyfiles/eqsl.txt
rm -rf %buildroot%_datadir/%name/cqrlog-apparmor-fix
# Move icons to appropriate places
for i in 32 48 64 128 256; do
install -Dm 0644 %buildroot%_iconsdir/%name/${i}x${i}/%name.png %buildroot%_iconsdir/hicolor/${i}x${i}/apps/%name.png
done
rm -rf %buildroot%_iconsdir/%{name}*
%files
%doc README.md AUTHORS CHANGELOG
%_bindir/%name
%_datadir/%name/
%_desktopdir/%name.desktop
%_datadir/appdata/%name.appdata.xml
%_pixmapsdir/%name/
%_man1dir/%name.1.*
%_iconsdir/hicolor/*/apps/%name.png
%changelog
…
Full changelog you can see here