|
|
2f652a8 |
%if 0%{?rhel}
|
|
|
2f652a8 |
%bcond_with python
|
|
|
2f652a8 |
%else
|
|
|
2f652a8 |
%bcond_without python
|
|
|
2f652a8 |
%endif
|
|
|
2f652a8 |
|
|
|
7a13a94 |
Name: qhexedit2
|
|
|
34b42e8 |
# Remember to also update version in qhexedit2_build.patch in the setup.py hunk
|
|
|
b4bf3c7 |
Version: 0.8.9
|
|
|
d38b025 |
Release: 13%{?dist}
|
|
|
7a13a94 |
Summary: Binary Editor for Qt
|
|
|
7a13a94 |
|
|
|
7a13a94 |
License: LGPLv2
|
|
|
8abe31a |
URL: https://github.com/Simsys/qhexedit2
|
|
|
ac72ca1 |
Source0: https://github.com/Simsys/qhexedit2/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
7a13a94 |
Source1: qhexedit.desktop
|
|
|
7a13a94 |
|
|
|
7a13a94 |
# Fix build issues
|
|
|
7a13a94 |
Patch0: qhexedit2_build.patch
|
|
|
3517469 |
Patch1: sip5.patch
|
|
|
7a13a94 |
|
|
|
aff2daf |
BuildRequires: desktop-file-utils
|
|
|
aff2daf |
BuildRequires: gcc-c++
|
|
|
aff2daf |
BuildRequires: make
|
|
|
3d4c62a |
BuildRequires: qt5-qtbase-devel
|
|
|
2f652a8 |
%if %{with python}
|
|
|
2f13a1c |
BuildRequires: python3-devel
|
|
|
9c6ab52 |
BuildRequires: python3-pyqt5-sip
|
|
|
df0f7e4 |
BuildRequires: python3-qt5-devel
|
|
|
3517469 |
BuildRequires: %{py3_dist PyQt-builder}
|
|
|
3517469 |
BuildRequires: %{py3_dist sip} >= 5
|
|
|
2f652a8 |
%endif
|
|
|
7a13a94 |
|
|
|
3d4c62a |
Requires: %{name}-qt5-libs%{?_isa} = %{version}-%{release}
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%description
|
|
|
7a13a94 |
QHexEdit is a hex editor widget written in C++ for the Qt framework.
|
|
|
7a13a94 |
It is a simple editor for binary data, just like QPlainTextEdit is for text
|
|
|
7a13a94 |
data.
|
|
|
7a13a94 |
|
|
|
df0f7e4 |
###############################################################################
|
|
|
3d4c62a |
|
|
|
3d4c62a |
%package qt5-libs
|
|
|
3d4c62a |
Summary: %{name} Qt5 library
|
|
|
3d4c62a |
|
|
|
3d4c62a |
%description qt5-libs
|
|
|
3d4c62a |
%{name} Qt5 library.
|
|
|
3d4c62a |
|
|
|
3d4c62a |
|
|
|
3d4c62a |
%package qt5-devel
|
|
|
3d4c62a |
Summary: Development files for %{name} Qt5
|
|
|
3d4c62a |
Requires: %{name}-qt5-libs%{?_isa} = %{version}-%{release}
|
|
|
3d4c62a |
|
|
|
3d4c62a |
%description qt5-devel
|
|
|
3d4c62a |
The %{name}-qt5-devel package contains libraries and header files for
|
|
|
3d4c62a |
developing applications that use %{name} Qt5.
|
|
|
7a13a94 |
|
|
|
df0f7e4 |
###############################################################################
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%package doc
|
|
|
7a13a94 |
Summary: Documentation and examples for %{name}
|
|
|
7a13a94 |
Provides: bundled(jquery)
|
|
|
7a13a94 |
BuildArch: noarch
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%description doc
|
|
|
7a13a94 |
The %{name}-doc package contains the documentation and examples for %{name}.
|
|
|
7a13a94 |
|
|
|
df0f7e4 |
###############################################################################
|
|
|
7a13a94 |
|
|
|
2f652a8 |
%if %{with python}
|
|
|
df0f7e4 |
%package -n python3-%{name}-qt5
|
|
|
df0f7e4 |
Summary: %{name} Qt5 Python3 bindings
|
|
|
df0f7e4 |
Requires: %{name}-qt5-libs%{?_isa} = %{version}-%{release}
|
|
|
df0f7e4 |
|
|
|
df0f7e4 |
%description -n python3-%{name}-qt5
|
|
|
df0f7e4 |
%{name} Qt5 Python3 bindings.
|
|
|
df0f7e4 |
|
|
|
df0f7e4 |
|
|
|
df0f7e4 |
%package -n python3-%{name}-qt5-devel
|
|
|
df0f7e4 |
Summary: Development files for the %{name} Qt5 Python3 bindings
|
|
|
df0f7e4 |
Requires: python3-%{name}-qt5%{?_isa} = %{version}-%{release}
|
|
|
3517469 |
Requires: %{py3_dist sip} >= 5
|
|
|
df0f7e4 |
|
|
|
df0f7e4 |
%description -n python3-%{name}-qt5-devel
|
|
|
df0f7e4 |
Development files for the %{name} Qt5 Python3 bindings
|
|
|
2f652a8 |
%endif
|
|
|
7a13a94 |
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%prep
|
|
|
eb051dd |
%autosetup -p1 -n %{name}-%{version}
|
|
|
7a13a94 |
|
|
|
7a13a94 |
# Prevent rpmlint W: doc-file-dependency /usr/share/doc/qhexedit2-doc/html/installdox /usr/bin/perl
|
|
|
7a13a94 |
rm -f doc/html/installdox
|
|
|
7a13a94 |
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%build
|
|
|
e6b599a |
%set_build_flags
|
|
|
e6b599a |
|
|
|
3d4c62a |
# Build library, qt5
|
|
|
3d4c62a |
mkdir build-lib-qt5
|
|
|
3d4c62a |
pushd build-lib-qt5
|
|
|
e6b599a |
%qmake_qt5 ../src/qhexedit.pro
|
|
|
eb051dd |
%make_build
|
|
|
3d4c62a |
popd
|
|
|
3d4c62a |
|
|
|
2f652a8 |
%if %{with python}
|
|
|
df0f7e4 |
# Build sip bindings, qt5, python3
|
|
|
3517469 |
sip-build --qmake=%{_qt5_qmake} --verbose --build-dir=build-python3-qt5 --no-make
|
|
|
3517469 |
%make_build -C build-python3-qt5
|
|
|
2f652a8 |
%endif
|
|
|
df0f7e4 |
|
|
|
7a13a94 |
# Build application
|
|
|
7a13a94 |
mkdir build-example
|
|
|
7a13a94 |
pushd build-example
|
|
|
3d4c62a |
%qmake_qt5 ../example/qhexedit.pro
|
|
|
eb051dd |
%make_build
|
|
|
7a13a94 |
popd
|
|
|
7a13a94 |
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%install
|
|
|
7a13a94 |
# Library and headers
|
|
|
7a13a94 |
install -d %{buildroot}%{_includedir}/%{name}
|
|
|
7a13a94 |
install -d %{buildroot}%{_libdir}
|
|
|
2f13a1c |
cp -a src/*.h %{buildroot}%{_includedir}/%{name}
|
|
|
3d4c62a |
chmod 0755 build-lib-qt5/*.so.*.*
|
|
|
3d4c62a |
cp -a build-lib-qt5/*.so* %{buildroot}%{_libdir}
|
|
|
7a13a94 |
|
|
|
2f13a1c |
# pkg-config file
|
|
|
7a13a94 |
install -d %{buildroot}%{_libdir}/pkgconfig/
|
|
|
3d4c62a |
cat > %{buildroot}%{_libdir}/pkgconfig/%{name}-qt5.pc <
|
|
|
3d4c62a |
libdir=%{_libdir}
|
|
|
3d4c62a |
includedir=%{_includedir}/%{name}
|
|
|
3d4c62a |
|
|
|
3d4c62a |
Name: %{name}-qt5
|
|
|
3d4c62a |
Description: %{summary}
|
|
|
3d4c62a |
Version: %{version}
|
|
|
3d4c62a |
Cflags: -I\${includedir}
|
|
|
3d4c62a |
Libs: -L\${libdir} -lqhexedit-qt5
|
|
|
3d4c62a |
EOF
|
|
|
3d4c62a |
|
|
|
7a13a94 |
|
|
|
2f652a8 |
%if %{with python}
|
|
|
7a13a94 |
# Python bindings
|
|
|
df0f7e4 |
# Distutils does not support --build-base with install, you need to build also...
|
|
|
3517469 |
%make_install INSTALL_ROOT=%{buildroot} -C build-python3-qt5
|
|
|
2f652a8 |
%endif
|
|
|
7a13a94 |
|
|
|
7a13a94 |
# Application
|
|
|
7a13a94 |
install -Dpm 0755 build-example/qhexedit %{buildroot}%{_bindir}/qhexedit
|
|
|
7a13a94 |
desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}
|
|
|
7a13a94 |
|
|
|
7a13a94 |
|
|
|
7a13a94 |
%files
|
|
|
7a13a94 |
%{_bindir}/qhexedit
|
|
|
7a13a94 |
%{_datadir}/applications/qhexedit.desktop
|
|
|
7a13a94 |
|
|
|
3d4c62a |
%files qt5-libs
|
|
|
3d4c62a |
%doc doc/release.txt
|
|
|
3d4c62a |
%license src/license.txt
|
|
|
ad50617 |
%{_libdir}/libqhexedit-qt5.so.4*
|
|
|
3d4c62a |
|
|
|
3d4c62a |
%files qt5-devel
|
|
|
3d4c62a |
%{_includedir}/%{name}/
|
|
|
3d4c62a |
%{_libdir}/libqhexedit-qt5.so
|
|
|
3d4c62a |
%{_libdir}/pkgconfig/%{name}-qt5.pc
|
|
|
3d4c62a |
|
|
|
7a13a94 |
%files doc
|
|
|
8abe31a |
%license src/license.txt
|
|
|
7a13a94 |
%doc doc/html
|
|
|
7a13a94 |
|
|
|
2f652a8 |
%if %{with python}
|
|
|
df0f7e4 |
%files -n python3-%{name}-qt5
|
|
|
3517469 |
%{python3_sitearch}/qhexedit.*.so
|
|
|
3517469 |
%{python3_sitearch}/QHexEdit-%{version}*info
|
|
|
df0f7e4 |
|
|
|
df0f7e4 |
%files -n python3-%{name}-qt5-devel
|
|
|
3517469 |
%{python3_sitearch}/PyQt5/bindings/qhexedit/
|
|
|
2f652a8 |
%endif
|
|
|
df0f7e4 |
|
|
|
2f13a1c |
|
|
|
7a13a94 |
%changelog
|
|
|
d38b025 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-13
|
|
|
d38b025 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
d38b025 |
|
|
|
5773e2b |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-12
|
|
|
5773e2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
5773e2b |
|
|
|
2f13a1c |
* Thu Oct 05 2023 Sandro Mani <manisandro@gmail.com> - 0.8.9-12
|
|
|
2f13a1c |
- Drop qt4 build
|
|
|
2f13a1c |
|
|
|
4c86f3f |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-11
|
|
|
4c86f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
4c86f3f |
|
|
|
b05aa3f |
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 0.8.9-10
|
|
|
b05aa3f |
- Rebuilt for Python 3.12
|
|
|
b05aa3f |
|
|
|
4b1a44e |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-9
|
|
|
4b1a44e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
4b1a44e |
|
|
|
d05bfc9 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-8
|
|
|
d05bfc9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
d05bfc9 |
|
|
|
f1ac010 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-7
|
|
|
f1ac010 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
f1ac010 |
|
|
|
b1082c9 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-6
|
|
|
b1082c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
b1082c9 |
|
|
|
3517469 |
* Wed Jun 16 2021 Scott Talbert <swt@techie.net> - 0.8.9-5
|
|
|
3517469 |
- Update to build with sip 5
|
|
|
3517469 |
|
|
|
fe84d6a |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.9-4
|
|
|
fe84d6a |
- Rebuilt for Python 3.10
|
|
|
fe84d6a |
|
|
|
ba2160e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-3
|
|
|
ba2160e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
ba2160e |
|
|
|
7960777 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-2
|
|
|
7960777 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
7960777 |
|
|
|
b4bf3c7 |
* Sun Jul 05 2020 Sandro Mani <manisandro@gmail.com> - 0.8.9-1
|
|
|
b4bf3c7 |
- Update to 0.8.9
|
|
|
b4bf3c7 |
|
|
|
e3c4ac6 |
* Thu Jun 25 2020 Sandro Mani <manisandro@gmail.com> - 0.8.8-1
|
|
|
e3c4ac6 |
- Update to 0.8.8
|
|
|
e3c4ac6 |
|
|
|
b422370 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.6-5
|
|
|
b422370 |
- Rebuilt for Python 3.9
|
|
|
b422370 |
|
|
|
e1c21cc |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-4
|
|
|
e1c21cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
e1c21cc |
|
|
|
4ea6860 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.6-3
|
|
|
4ea6860 |
- Rebuilt for Python 3.8
|
|
|
4ea6860 |
|
|
|
6192ded |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-2
|
|
|
6192ded |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6192ded |
|
|
|
ca4a7f8 |
* Wed Mar 20 2019 Sandro Mani <manisandro@gmail.com> - 0.8.6-1
|
|
|
ca4a7f8 |
- Update to 0.8.6
|
|
|
ca4a7f8 |
|
|
|
a68d0ee |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-2
|
|
|
a68d0ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a68d0ee |
|
|
|
e7cc8f9 |
* Wed Dec 12 2018 Sandro Mani <manisandro@gmail.com> - 0.8.5-1
|
|
|
e7cc8f9 |
- Update to 0.8.5
|
|
|
e7cc8f9 |
|
|
|
9c6ab52 |
* Thu Oct 04 2018 Sandro Mani <manisandro@gmail.com> - 0.8.4-1
|
|
|
9c6ab52 |
- Update to 0.8.4
|
|
|
9c6ab52 |
- Drop python2 subpackages (#1634563)
|
|
|
9c6ab52 |
- Drop obsolete scriptlets
|
|
|
9c6ab52 |
|
|
|
ae0bf92 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-8
|
|
|
ae0bf92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
ae0bf92 |
|
|
|
fe5f79d |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-7
|
|
|
fe5f79d |
- Rebuilt for Python 3.7
|
|
|
fe5f79d |
|
|
|
aff2daf |
* Wed Mar 07 2018 Sandro Mani <manisandro@gmail.com> - 0.8.3-6
|
|
|
aff2daf |
- Add missing BR: gcc-c++, make
|
|
|
aff2daf |
|
|
|
1991dad |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
|
|
|
1991dad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
1991dad |
|
|
|
49f3d52 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-4
|
|
|
49f3d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
49f3d52 |
|
|
|
794ce31 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-3
|
|
|
794ce31 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
794ce31 |
|
|
|
9d05b68 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-2
|
|
|
9d05b68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
9d05b68 |
|
|
|
ad50617 |
* Tue Jan 10 2017 Sandro Mani <manisandro@gmail.com> - 0.8.3-1
|
|
|
ad50617 |
- Update to 0.8.3
|
|
|
ad50617 |
|
|
|
8287be7 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-2
|
|
|
8287be7 |
- Rebuild for Python 3.6
|
|
|
8287be7 |
|
|
|
5b0a3cf |
* Wed Nov 09 2016 Sandro Mani <manisandro@gmail.com> - 0.8.1-1
|
|
|
5b0a3cf |
- Update to 0.8.1
|
|
|
5b0a3cf |
|
|
|
eb051dd |
* Wed Aug 03 2016 Sandro Mani <manisandro@gmail.com> - 0.7.8-1
|
|
|
eb051dd |
- Update to 0.7.8
|
|
|
eb051dd |
|
|
|
6c118bd |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-2
|
|
|
6c118bd |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
6c118bd |
|
|
|
b65c63d |
* Fri Apr 15 2016 Sandro Mani <manisandro@gmail.com> - 0.7.7-1
|
|
|
b65c63d |
- Update to 0.7.7
|
|
|
b65c63d |
|
|
|
ac72ca1 |
* Sat Apr 09 2016 Sandro Mani <manisandro@gmail.com> - 0.7.6-1
|
|
|
ac72ca1 |
- Update to 0.7.6
|
|
|
ac72ca1 |
|
|
|
41704be |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-3
|
|
|
41704be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
41704be |
|
|
|
3d6ce09 |
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 0.7.4-2
|
|
|
3d6ce09 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
3d6ce09 |
|
|
|
34b42e8 |
* Fri Sep 18 2015 Sandro Mani <manisandro@gmail.com> - 0.7.4-1
|
|
|
34b42e8 |
- Update to 0.7.4
|
|
|
34b42e8 |
|
|
|
d612c1e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-2
|
|
|
d612c1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d612c1e |
|
|
|
df0f7e4 |
* Thu Jun 04 2015 Sandro Mani <manisandro@gmail.com> - 0.7.3-1
|
|
|
df0f7e4 |
- Update to 0.7.3
|
|
|
df0f7e4 |
|
|
|
4e161a0 |
* Wed May 20 2015 Sandro Mani <manisandro@gmail.com> - 0.7.2-1
|
|
|
4e161a0 |
- Update to 0.7.2
|
|
|
4e161a0 |
|
|
|
addbd64 |
* Fri May 01 2015 Sandro Mani <manisandro@gmail.com> - 0.6.6-1
|
|
|
addbd64 |
- Update to 0.6.6
|
|
|
addbd64 |
|
|
|
3d4c62a |
* Wed Apr 29 2015 Sandro Mani <manisandro@gmail.com> - 0.6.5-2
|
|
|
3d4c62a |
- Build Qt5 library
|
|
|
3d4c62a |
|
|
|
8abe31a |
* Thu Apr 16 2015 Sandro Mani <manisandro@gmail.com> - 0.6.5-1
|
|
|
8abe31a |
- Update to 0.6.5
|
|
|
8abe31a |
|
|
|
ecfd90a |
* Tue Dec 16 2014 Sandro Mani <manisandro@gmail.com> - 0.6.3-3.20141212svnr41
|
|
|
ecfd90a |
- Fix incorrect Requires
|
|
|
ecfd90a |
|
|
|
7a13a94 |
* Fri Dec 12 2014 Sandro Mani <manisandro@gmail.com> - 0.6.3-2.20141212svnr41
|
|
|
7a13a94 |
- Update source file name to include svn revision
|
|
|
7a13a94 |
- Fix license LGPLv2+ -> LGPLv2
|
|
|
7a13a94 |
- Added -Wl,--as-needed to fix unused-direct-shlib-dependency
|
|
|
7a13a94 |
|
|
|
7a13a94 |
* Sun Aug 10 2014 Sandro Mani <manisandro@gmail.com> - 0.6.3-1
|
|
|
7a13a94 |
- Initial package
|