d1b2afb
%undefine __cmake_in_source_build
d1b2afb
7cdc389
%global srcname tqsl
e904678
%global libtqslver 2.5
7cdc389
7cdc389
Name:           trustedqsl
afe3319
Version:        2.5.8
afe3319
Release:        1%{?dist}
b43d059
Summary:        Tool for digitally signing Amateur Radio QSO records
7cdc389
License:        BSD
7cdc389
URL:            http://sourceforge.net/projects/trustedqsl/
7cdc389
e9c89af
Source0:        https://sourceforge.net/projects/%{name}/files/%{srcname}-%{version}.tar.gz
b43d059
Source1:        tqsl.appdata.xml
7cdc389
a78f2cc
Patch0:         tqsl-2.5-rpath.patch
72bf50b
Patch1:         tqsl-tqsllib.patch
7cdc389
fba1f5d
BuildRequires:  gcc-c++
4976857
BuildRequires:  cmake%{?rhel:3}
a78f2cc
BuildRequires:  lmdb-devel
38e7889
BuildRequires:  openssl-devel
3e1f2f3
BuildRequires:  curl-devel
3e1f2f3
BuildRequires:  expat-devel
f8ea5be
BuildRequires:  wxGTK3-devel
7cdc389
BuildRequires:  zlib-devel
7cdc389
BuildRequires:  desktop-file-utils
b43d059
BuildRequires:  libappstream-glib
7cdc389
7cdc389
Requires:       curl
173d54e
173d54e
%description
173d54e
The TrustedQSL applications are used for generating digitally signed
173d54e
QSO records (records of Amateur Radio contacts). This package
173d54e
contains the GUI applications tqslcert and tqsl.
173d54e
7cdc389
%package -n tqsllib
b43d059
Epoch:          1
7cdc389
Summary:        TrustedQSL library
7cdc389
7cdc389
%description -n tqsllib
7cdc389
The TrustedQSL library is used for generating digitally signed
7cdc389
QSO records (records of Amateur Radio contacts). This package
7cdc389
contains the library and configuration files needed to run
7cdc389
TrustedQSL applications.
7cdc389
7cdc389
%package -n tqsllib-devel
b43d059
Epoch:          1
7cdc389
Summary:        Development files the for TrustedQSL library
ea5d972
Requires:       tqsllib%{?_isa} = %{epoch}:%{version}-%{release}
7cdc389
7cdc389
%description -n tqsllib-devel
7cdc389
The TrustedQSL library is used for generating digitally signed
7cdc389
QSO records (records of Amateur Radio contacts). This package
7cdc389
contains the to develop with tqsllib.
7cdc389
7cdc389
173d54e
%prep
b43d059
%autosetup -p1 -n %{srcname}-%{version}
7cdc389
173d54e
173d54e
%build
4976857
# Use cmake 3 on rhel/epel
4976857
%if 0%{?rhel}
4976857
%global cmake %cmake3
4976857
%endif
d1b2afb
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
7cdc389
5800ef6
%cmake_build
173d54e
7cdc389
173d54e
%install
5800ef6
%cmake_install
7cdc389
e904678
# Remove bundled language file that shouldn't be there.
e904678
find %{buildroot}%{_datadir}/locale/ -type f -name wxstd.mo -exec rm -f {} \;
e904678
e904678
%find_lang tqslapp
e904678
7cdc389
# Install desktop files
173d54e
mkdir -p %{buildroot}%{_datadir}/applications
7cdc389
sed -i -e "s/.png//g" -e "s/Application;/Network;/g" -e "s/Utility;/GTK;/g" apps/tqsl.desktop
173d54e
desktop-file-install \
7cdc389
        --dir=%{buildroot}%{_datadir}/applications apps/tqsl.desktop
173d54e
7cdc389
# Install icons
7cdc389
for size in 16 32 48 64 128; do
7cdc389
    install -Dpm 0644 apps/icons/key${size}.png \
5d6026b
    %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/TrustedQSL.png
7cdc389
done
173d54e
e9c89af
%if 0%{?fedora}
b43d059
# Install appdata file
b43d059
mkdir -p %{buildroot}%{_datadir}/appdata
b43d059
install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/
b43d059
b43d059
%check
b43d059
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
e9c89af
%endif
b43d059
d1b2afb
%ldconfig_scriptlets tqsllib
7cdc389
e904678
e904678
%files -f tqslapp.lang
e904678
%license LICENSE.txt
e904678
%doc AUTHORS.txt README
173d54e
%{_bindir}/tqsl
38e7889
%{_datadir}/applications/tqsl.desktop
e9c89af
%{?fedora:%{_datadir}/appdata/tqsl.appdata.xml}
7cdc389
%{_datadir}/icons/hicolor/*/apps/TrustedQSL.png
38e7889
%{_datadir}/pixmaps/TrustedQSL.png
38e7889
%{_datadir}/TrustedQSL
7cdc389
%{_mandir}/man5/*.5*
7cdc389
7cdc389
%files -n tqsllib
38e7889
%doc src/LICENSE src/ChangeLog.txt
7cdc389
%{_libdir}/libtqsllib.so.%{libtqslver}
7cdc389
7cdc389
%files -n tqsllib-devel
7cdc389
%{_includedir}/*
7cdc389
%{_libdir}/libtqsllib.so
7cdc389
173d54e
173d54e
%changelog
afe3319
* Wed Jun 09 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.8-1
afe3319
- Update to 2.5.8.
afe3319
d5a395b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.7-2
d5a395b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d5a395b
e9c89af
* Wed Nov 18 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.7-1
e9c89af
- Update to 2.5.7.
e9c89af
e9c89af
* Thu Oct 22 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.5-1
e9c89af
- Update to 2.5.5.
e9c89af
5800ef6
* Wed Jul 29 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-1
5800ef6
- Update to 2.5.4.
5800ef6
6f20532
* Thu Apr 23 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.3-1
6f20532
- Update to 2.5.3.
6f20532
a78f2cc
* Wed Apr 08 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.2-1
a78f2cc
- Update to 2.5.2.
a78f2cc
8e59b89
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
8e59b89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8e59b89
8b9eee9
* Sun Jan 26 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.1-1
8b9eee9
- Update to 2.5.1.
8b9eee9
8580070
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-2
8580070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8580070
2997c4d
* Sat May 04 2019 Richard Shaw <hobbes1069@gmail.com> - 2.4.7-1
2997c4d
- Update to 2.4.7.
2997c4d
b04aa83
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
b04aa83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b04aa83
8d1a245
* Mon Jan 21 2019 Richard Shaw <hobbes1069@gmail.com> - 2.4.3-1
3d5f8d2
- Update to 2.4.3.
3d5f8d2
6f20532
* Wed Oct 31 2018 Richard Shaw <hobbes1069@gmail.com> - 2.4.1-1
0cd38d0
- Update to 2.4.1.
0cd38d0
f8ea5be
* Mon Oct 29 2018 Scott Talbert <swt@techie.net> - 2.4-3
f8ea5be
- Rebuild with wxWidgets 3.0
f8ea5be
5c2a183
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-2
5c2a183
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5c2a183
c4fdabb
* Mon Apr 02 2018 Richard Shaw <hobbes1069@gmail.com> - 2.4-1
c4fdabb
- Update to 2.4.
c4fdabb
7e9bdfc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5
7e9bdfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7e9bdfc
ea5d972
* Mon Sep 11 2017 Richard Shaw <hobbes1069@gmail.com> - 2.3.1-4
ea5d972
- Fix requires for devel package.
ea5d972
b43d059
* Thu Sep 07 2017 Richard Shaw <hobbes1069@gmail.com> - 2.3.1-3
b43d059
- Get rid of seprate library version as it is more trouble than it's worth.
b43d059
dfbbdca
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
dfbbdca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dfbbdca
88e2337
* Mon Jul  3 2017 Richard Shaw <hobbes1069@gmail.com> - 2.3.1-1
88e2337
- Update to latest upstream release.
88e2337
2bbf21c
* Sat Mar  4 2017 Richard Shaw <hobbes1069@gmail.com> - 2.3-4
2bbf21c
- Rebuild for broken dependencies with tqsllib.
2bbf21c
3369d8e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
3369d8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3369d8e
ee3b5b9
* Sun Nov  6 2016 Richard Shaw <hobbes1069@gmail.com> - 2.3-1
ee3b5b9
- Update to latest upstream release.
ee3b5b9
afda0df
* Thu Oct  6 2016 Richard Shaw <hobbes1069@gmail.com> - 2.2.2-1
afda0df
- Update to latest upstream release.
afda0df
e904678
* Thu Mar 24 2016 Richard Shaw <hobbes1069@gmail.com> - 2.2.1-1
e904678
- Update to latest upstream release.
e904678
e296626
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-11.1
e296626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e296626
13ea2b4
* Wed Jul 15 2015 Richard Shaw <hobbes1069@gmail.com> - 2.0.3-11
b305991
- Rebuild to fix broken dependency.
b305991
d188857
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-9.1
d188857
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d188857
79aac01
* Mon May  4 2015 Richard Shaw <hobbes1069@gmail.com> - 2.0.3-9
79aac01
- Rebuild for bad version requirement from devel package on the main package.
79aac01
18d6909
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.0.3-8
18d6909
- Rebuilt for GCC 5 C++11 ABI change
18d6909
f5433cf
* Wed Mar 18 2015 Richard Shaw <hobbes1069@gmail.com> - 2.0.3-7
f5433cf
- Add patch to work around SSL MD5 certification verification being disabled in
f5433cf
  F21+, see https://bugzilla.redhat.com/show_bug.cgi?id=1202157
f5433cf
936b239
* Mon Sep  8 2014 Richard Shaw <hobbes1069@gmail.com> - 2.0.3-6
45afa16
- Update to latest upstream release.
c7859a5
- Add dist tag to libtqsl release and clean up the mess I made.
45afa16
b66d589
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
b66d589
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b66d589
5d6026b
* Mon Jul  7 2014 Richard Shaw <hobbes1069@gmail.com> - 2.0.2-1
5d6026b
- Update to latest upstream release.
5d6026b
a0f90dd
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
a0f90dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a0f90dd
38e7889
* Thu Dec 19 2013 Richard Shaw <hobbes1069@gmail.com> - 2.0.1-1
38e7889
- Update to version 2.0.1.
38e7889
- Add conditionals for EPEL-6.
38e7889
7cdc389
* Wed Sep 25 2013 Richard Shaw <hobbes1069@gmail.com> - 1.14.3-1
7cdc389
- Update to latest upstream release.
7cdc389
- This package now provides tqsllib.
7cdc389
b24c50d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-6
b24c50d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b24c50d
3b1e87f
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-5
3b1e87f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3b1e87f
51fa24e
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
51fa24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
51fa24e
3cb4597
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-3
3cb4597
- Rebuilt for c++ ABI breakage
3cb4597
6b59b45
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-2
6b59b45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6b59b45
044a270
* Sun Nov 20 2011 cooly@gnome.eu.org - 1.13-1
044a270
- drop icon and gcc patch - fixed upstream
044a270
- new upstream release
044a270
a277753
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-8
a277753
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a277753
5c7a781
* Wed Jul 14 2010 Dan HorĂ¡k <dan@danny.cz> - 1.11-7
5c7a781
- rebuilt against wxGTK-2.8.11-2
5c7a781
2f285f8
* Sun Oct 25 2009 Lucian Langa <cooly@gnome.eu.org> - 1.11-6
2f285f8
- fix desktop file (#530839)
2f285f8
267e60b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-5
267e60b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
267e60b
5ee80be
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
5ee80be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5ee80be
c105489
* Mon Dec 01 2008 Lucian Langa <cooly@gnome.eu.org> - 1.11-3
c105489
- fix unowned directories
c105489
173d54e
* Fri Oct 10 2008 Lucian Langa <cooly@gnome.eu.org> - 1.11-2
173d54e
- misc cleanups
173d54e
- update buildrequires
173d54e
- package missing docs
173d54e
173d54e
* Sun Jul 13 2008 Lucian Langa <lucilanga@gnome.org> - 1.11-1
173d54e
- initial spec file for fedora
173d54e