Riccardo Schirone fc67517
%global         cutter_translations_commit 974298653ba71b958e1b6c83f6011f5fefff6236
Riccardo Schirone 5bb2e93
5c5c422
Name:           cutter-re
Riccardo Schirone 00bcc0c
Version:        2.0.1
Riccardo Schirone fc67517
Release:        1%{?dist}
Riccardo Schirone fc67517
Summary:        GUI for Rizin reverse engineering framework
5c5c422
5c5c422
# CC-BY-SA: src/img/icons/
5c5c422
# CC0: src/fonts/Anonymous Pro.ttf
5c5c422
License:        GPLv3 and CC-BY-SA and CC0
5c5c422
5c5c422
URL:            https://cutter.re/
Riccardo Schirone fc67517
Source0:        https://github.com/rizinorg/cutter/archive/v%{version}/cutter-%{version}.tar.gz
Riccardo Schirone 78ff90e
Source1:        cutter-re.desktop
Riccardo Schirone 78ff90e
Source2:        cutter-re.appdata.xml
Riccardo Schirone fc67517
Source3:        https://github.com/rizinorg/cutter-translations/archive/%{cutter_translations_commit}.tar.gz
5c5c422
Riccardo Schirone 00bcc0c
BuildRequires:  rizin-devel >= 0.2.0
5c5c422
BuildRequires:  cmake
5c5c422
BuildRequires:  gcc-c++
5c5c422
BuildRequires:  make
Riccardo Schirone 5bb2e93
BuildRequires:  kf5-syntax-highlighting-devel
5c5c422
BuildRequires:  python3-devel
5c5c422
BuildRequires:  qt5-qtsvg-devel
5c5c422
BuildRequires:  file-devel
5c5c422
BuildRequires:  desktop-file-utils
5c5c422
BuildRequires:  libappstream-glib
Riccardo Schirone 5bb2e93
BuildRequires:  graphviz-devel
Riccardo Schirone 5bb2e93
BuildRequires:  qt5-linguist
5c5c422
%ifarch %{qt5_qtwebengine_arches}
5c5c422
BuildRequires:  qt5-qtwebengine-devel
5c5c422
%endif
5c5c422
Requires:       python3-jupyter-client
5c5c422
Requires:       python3-notebook
5c5c422
Requires:       hicolor-icon-theme
5c5c422
5c5c422
%description
Riccardo Schirone fc67517
Cutter is a Qt and C++ GUI for Rizin. Its goal is making an advanced,
5c5c422
customizable and FOSS reverse-engineering platform while keeping the user
5c5c422
experience at mind. Cutter is created by reverse engineers for reverse
5c5c422
engineers.
5c5c422
5c5c422
Riccardo Schirone 5bb2e93
%package devel
Riccardo Schirone 5bb2e93
Summary:        Development files for the cutter-re package
Riccardo Schirone 5bb2e93
Requires:       %{name}%{?_isa} = %{version}-%{release}
Riccardo Schirone 5bb2e93
Riccardo Schirone 5bb2e93
%description devel
Riccardo Schirone 5bb2e93
Development files for the cutter-re package. See cutter-re package for more
Riccardo Schirone 5bb2e93
information.
Riccardo Schirone 5bb2e93
Riccardo Schirone 5bb2e93
5c5c422
%prep
5c5c422
%autosetup -p1 -n cutter-%{version}
Riccardo Schirone 5bb2e93
tar --strip-component=1 -xvf %{SOURCE3} -C src/translations
5c5c422
5c5c422
5c5c422
%build
Riccardo Schirone fc67517
%cmake -DCUTTER_USE_BUNDLED_RIZIN=OFF
Riccardo Schirone 5bb2e93
%cmake_build
5c5c422
5c5c422
5c5c422
%install
Riccardo Schirone 5bb2e93
%cmake_install
Riccardo Schirone fc67517
mv %{buildroot}%{_bindir}/cutter %{buildroot}%{_bindir}/cutter-re
5c5c422
Riccardo Schirone 5bb2e93
# replace default .desktop file with our own, to use cutter-re name
5c5c422
mkdir -p %{buildroot}%{_datadir}/applications
Riccardo Schirone fc67517
rm %{buildroot}%{_datadir}/applications/re.rizin.cutter.desktop
5c5c422
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
Riccardo Schirone 78ff90e
        %{SOURCE1}
5c5c422
5c5c422
mkdir -p %{buildroot}%{_metainfodir}
Riccardo Schirone 78ff90e
install -pm644 %{SOURCE2} \
5c5c422
        %{buildroot}%{_metainfodir}
5c5c422
Riccardo Schirone 5bb2e93
# rename cutter svg icon to cutter-re
Riccardo Schirone 5bb2e93
mv %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/{cutter,cutter-re}.svg
5c5c422
Riccardo Schirone 5bb2e93
# make sure CMake files used to find cutter development files reference cutter-re and not Cutter
Riccardo Schirone fc67517
sed -i 's/bin\/cutter/bin\/cutter-re/g' %{buildroot}%{_libdir}/Cutter/CutterTargets-noconfig.cmake
5c5c422
5c5c422
%check
5c5c422
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
5c5c422
5c5c422
5c5c422
%files
Riccardo Schirone 78ff90e
%{_bindir}/cutter-re
5c5c422
%{_datadir}/applications/*.desktop
Riccardo Schirone 00bcc0c
%{_datadir}/rizin/cutter/translations/*.qm
5c5c422
%{_metainfodir}/*.appdata.xml
5c5c422
%{_datadir}/icons/hicolor/scalable/apps/*.svg
5c5c422
%license COPYING src/img/icons/Iconic-LICENSE
5c5c422
%doc README.md
5c5c422
5c5c422
Riccardo Schirone 5bb2e93
%files devel
Riccardo Schirone 5bb2e93
%{_includedir}/cutter
Riccardo Schirone 5bb2e93
%{_libdir}/Cutter/*.cmake
Riccardo Schirone 5bb2e93
%dir %{_libdir}/Cutter
Riccardo Schirone 5bb2e93
Riccardo Schirone 5bb2e93
5c5c422
%changelog
Riccardo Schirone 00bcc0c
* Mon Apr 12 2021 Riccardo Schirone <rschirone91@gmail.com> - 2.0.1-1
Riccardo Schirone 00bcc0c
- Rebase to version 2.0.1 which uses Rizin 0.2.0
Riccardo Schirone 00bcc0c
Riccardo Schirone fc67517
* Fri Apr 2 2021 Riccardo Schirone <rschirone91@gmail.com> - 2.0.0-1
Riccardo Schirone fc67517
- Rebase to version 2.0.0 which uses Rizin
Riccardo Schirone fc67517
173292c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
173292c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
173292c
dd6a1a7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
dd6a1a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dd6a1a7
Riccardo Schirone 5bb2e93
* Mon Jul 27 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.11.0-1
Riccardo Schirone 5bb2e93
- Bump to upstream version 1.11.0-1 (Thanks to Michal Ambroz, changes mostly
Riccardo Schirone 5bb2e93
  taken from https://src.fedoraproject.org/rpms/cutter-re/pull-request/2#request_diff)
Riccardo Schirone 5bb2e93
- Add cutter translations
Riccardo Schirone 5bb2e93
- Provide -devel sub package to allow compilation of cutter plugins
Riccardo Schirone 5bb2e93
Riccardo Schirone 7e589e8
* Fri May 8 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.2-2
Riccardo Schirone 7e589e8
- Just re-build
Riccardo Schirone 7e589e8
Riccardo Schirone 89e75dc
* Tue May 5 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.2-1
Riccardo Schirone 89e75dc
- Rebase to upstream version 1.10.2
Riccardo Schirone 89e75dc
Riccardo Schirone 2a0f15e
* Tue May 5 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.1-5
Riccardo Schirone 2a0f15e
- Re-build for new radare2 release
Riccardo Schirone 2a0f15e
Riccardo Schirone 78ff90e
* Wed Feb 5 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.1-4
Riccardo Schirone 78ff90e
- Just use the right desktop file name and app metadata instead of messing with cutter source code
Riccardo Schirone 78ff90e
Riccardo Schirone 263b554
* Wed Feb 5 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.1-3
Riccardo Schirone a0906d1
- Rebuild with new radare2
Riccardo Schirone a0906d1
Riccardo Schirone 263b554
* Wed Feb 5 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.1-2
Riccardo Schirone 455d88f
- Fix the main window icon
Riccardo Schirone 455d88f
Riccardo Schirone d1e7a6d
* Mon Feb 3 2020 Riccardo Schirone <rschirone91@gmail.com> - 1.10.1-1
Riccardo Schirone d1e7a6d
- Rebase to cutter 1.10.1
Riccardo Schirone d1e7a6d
ef4e686
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
ef4e686
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ef4e686
8d7e4b0
* Fri Oct 11 2019 Riccardo Schirone <rschirone91@gmail.com> - 1.9.0-2
Riccardo Schirone 57c5554
- Rebuilt for radare2-3.9.0-3
Riccardo Schirone 57c5554
Riccardo Schirone 45fa89f
* Mon Sep 30 2019 Riccardo Schirone <rschirone91@gmail.com> - 1.9.0-1
Riccardo Schirone 45fa89f
- rebase to cutter 1.9.0
Riccardo Schirone 45fa89f
ba99512
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-2
ba99512
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ba99512
Riccardo Schirone a2998ce
* Mon Jul 15 2019 Riccardo Schirone <rschirone91@gmail.com> - 1.8.3-1
Riccardo Schirone b496c66
- rebase to cutter 1.8.3
Riccardo Schirone b496c66
Riccardo Schirone ba5f9b8
* Wed Jun 26 2019 Riccardo Schirone <rschirone91@gmail.com> - 1.8.0-4
Riccardo Schirone ba5f9b8
- recompile for radare2 3.6.0
Riccardo Schirone ba5f9b8
Riccardo Schirone de8f78a
* Mon Apr 15 2019 Riccardo Schirone <rschirone91@gmail.com> - 1.8.0-3
Riccardo Schirone de8f78a
- recompile for radare2 3.4.1
Riccardo Schirone b6f3d68
c158fab
* Tue Apr 09 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.0-2
c158fab
- Update to radare2 3.4.1
c158fab
5c5c422
* Thu Mar 21 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.0-1
5c5c422
- Update to 1.8.0
5c5c422
- Require hicolor-icon-theme
5c5c422
- Move appdata to a correct location
5c5c422
- Fix license field (Robert-André Mauchin, #1690050)
5c5c422
5c5c422
* Thu Mar 14 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.7.4-1
5c5c422
- Initial packaging