276da5a
#
276da5a
# Spec file for package sirikali
276da5a
#
276da5a
# Copyright © 2016 Francis Banyikwa <mhogomchungu@gmail.com>
276da5a
#
276da5a
# This program is free software: you can redistribute it and/or modify
276da5a
# it under the terms of the GNU General Public License as published by
276da5a
# the Free Software Foundation, either version 2 of the License, or
276da5a
# (at your option) any later version.
276da5a
#
276da5a
# This program is distributed in the hope that it will be useful,
276da5a
# but WITHOUT ANY WARRANTY; without even the implied warranty of
276da5a
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
276da5a
# GNU General Public License for more details.
276da5a
#
276da5a
# You should have received a copy of the GNU General Public License
276da5a
# along with this program. If not, see <http://www.gnu.org/licenses/>.
276da5a
276da5a
%global srcname SiriKali
276da5a
%global srcurl  https://github.com/mhogomchungu/%{name}
276da5a
276da5a
Name:           sirikali
92e63f1
Version:        1.3.9
566f23e
Release:        1%{?dist}
276da5a
Summary:        GUI front end to encfs,cryfs,gocryptfs and securefs
f964cba
# generally GPLv2+, BSD for tasks and NetworkAccessManager folders
f964cba
License:        GPLv2+ and BSD
276da5a
URL:            http://mhogomchungu.github.io/%{name}
276da5a
276da5a
Source0:        %{srcurl}/releases/download/%{version}/%{srcname}-%{version}.tar.xz
276da5a
276da5a
BuildRequires: cmake
276da5a
BuildRequires: gcc-c++
276da5a
276da5a
BuildRequires: json-devel
276da5a
BuildRequires: libgcrypt-devel
276da5a
BuildRequires: pkgconfig(libsecret-1)
276da5a
BuildRequires: pkgconfig(lxqt-wallet)
276da5a
276da5a
BuildRequires: pkgconfig(Qt5Core)
276da5a
BuildRequires: pkgconfig(Qt5Gui)
276da5a
BuildRequires: pkgconfig(Qt5Network)
276da5a
276da5a
BuildRequires: libappstream-glib
276da5a
BuildRequires: desktop-file-utils
276da5a
Requires:      hicolor-icon-theme
276da5a
276da5a
Recommends:    fuse-encfs
276da5a
276da5a
%description
276da5a
%{srcname} is a Qt/C++ GUI front end to encfs,cryfs,gocryptfs and securefs.
276da5a
276da5a
276da5a
%prep
276da5a
%autosetup -p1 -n%{srcname}-%{version}
f964cba
# collect licenses
f964cba
cp -p src/3rdParty/tasks/LICENSE LICENSE-tasks
f964cba
cp -p src/3rdParty/NetworkAccessManager/LICENSE LICENSE-NetworkAccessManager
276da5a
# unbundle
276da5a
pushd src/3rdParty
276da5a
rm -rv json* lxqt_wallet
276da5a
popd
276da5a
sed -i -r 's:".*(json.hpp)":"\1":' CMakeLists.txt
276da5a
sed -i 's:3rdParty/json:json:' src/%{name}.cpp
276da5a
276da5a
%build
276da5a
mkdir %{_target_platform}
276da5a
pushd %{_target_platform}
276da5a
%cmake .. -DQT5=true \
276da5a
 -DNOKDESUPPORT=true -DNOSECRETSUPPORT=false \
276da5a
 -DINTERNAL_LXQT_WALLET=false
276da5a
276da5a
%install
276da5a
%make_install -C %{_target_platform}
cbc0a0a
# ugly, we don't want any prefix to desktop file
cbc0a0a
mv %{buildroot}%{_datadir}/applications/*%{name}.desktop\
cbc0a0a
 %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
cbc0a0a
chmod -x %{buildroot}%{_datadir}/applications/*.desktop
276da5a
%find_lang %{name} --with-qt --all-name
276da5a
276da5a
%check
276da5a
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
276da5a
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
276da5a
276da5a
276da5a
%files -f %{name}.lang
8aac1eb
%license COPY* LICENSE* GPLv*
276da5a
%doc README.md ABOUT* changelog
276da5a
%{_bindir}/%{name}*
276da5a
%{_datadir}/applications/%{name}.desktop
276da5a
%dir %{_datadir}/%{name}
276da5a
%dir %{_datadir}/%{name}/translations
276da5a
%{_datadir}/icons/hicolor/*/apps/%{name}.png
276da5a
%{_datadir}/icons/%{name}.png
276da5a
%{_datadir}/pixmaps/%{name}.png
276da5a
%{_datadir}/polkit-1/actions/*.policy
276da5a
%{_datadir}/metainfo/*.appdata.xml
276da5a
%{_mandir}/man1/%{name}*.1*
276da5a
276da5a
276da5a
%changelog
92e63f1
* Sun Sep 08 2019 Raphael Groner <projects.rg@smart.ms> - 1.3.9-1
92e63f1
- new version
92e63f1
566f23e
* Sat Jul 27 2019 Raphael Groner <projects.rg@smart.ms> - 1.3.8-1
566f23e
- new version
566f23e
959eff6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-3
959eff6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
959eff6
e0707d7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-2
e0707d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e0707d7
a55d918
* Mon Dec 17 2018 Raphael Groner <projects.rg@smart.ms> - 1.3.6-1
a55d918
- new version
a55d918
ef86245
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.3.4-3
ef86245
- Rebuild with fixed binutils
ef86245
e4486eb
* Fri Jul 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.4-2
e4486eb
- Rebuild for new binutils
e4486eb
8aac1eb
* Thu Jul 26 2018 Raphael Groner <projects.rg@smart.ms> - 1.3.4-1
8aac1eb
- bump to 1.3.4, fix FTBFS
8aac1eb
- try harder to add all license texts
8aac1eb
f9fec3d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
f9fec3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f9fec3d
f964cba
* Tue Feb 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3.3-1
f964cba
- new version
f964cba
- drop upstream patches, due to incl.
f964cba
- add license breakdown for 3rdParty folders
f964cba
276da5a
* Wed Feb 07 2018 Raphael Groner <projects.rg@smart.ms> - 1.3.2-2
276da5a
- drop obsolete scriptlets
276da5a
- drop explicit file permission
276da5a
- include upstreamed patches
276da5a
276da5a
* Sat Jan 13 2018 Raphael Groner <projects.rg@smart.ms> - 1.3.2-1
276da5a
- new version
276da5a
- drop BSD because unbundled json
276da5a
- unbundle lxqt_wallet
276da5a
276da5a
* Tue Jul 11 2017 Raphael Groner <projects.rg@smart.ms> - 1.2.9-1
276da5a
- new version
276da5a
- unbundle json
276da5a
276da5a
* Mon Jun 12 2017 Raphael Groner <projects.rg@smart.ms> - 1.2.7.1.20170611git
276da5a
- new version
276da5a
- use git snapshot to include latest upstream patches
276da5a
- include upstream patch to get full path of su binary
276da5a
- distribute additonal files
276da5a
- drop workaround for duplicated readme files
276da5a
- fix length of line in description
276da5a
276da5a
* Sun Jun 04 2017 Raphael Groner <projects.rg@smart.ms> - 1.2.5-2
276da5a
- fix duplication of license documentation files
276da5a
- reorder explicit ownership of folders
276da5a
- fix file attributes of desktop file
276da5a
- add weak dependency to fuse-encfs
276da5a
276da5a
* Wed Mar 01 2017 Raphael Groner <projects.rg@smart.ms> - 1.2.5-1
276da5a
- adopt for Fedora