Accepting request 449439 from home:alois:branches:X11:Utilities

Update to 0.8.3

OBS-URL: https://build.opensuse.org/request/show/449439
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/qhexedit2?expand=0&rev=17
This commit is contained in:
Luigi Baldoni 2017-01-10 10:03:11 +00:00 committed by Git OBS Bridge
parent eb3667c3d3
commit c5b82cb91d
4 changed files with 20 additions and 34 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7e8a34e4440fcf58912bf77d80bcd003ca4f36076457290966df9b248c51bb7
size 297269

3
qhexedit2-0.8.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:583fa3989e0aa28f54e91cd6a8d773138cfd7054792b462fa9c9d5a9485dc338
size 336710

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Jan 9 21:18:59 UTC 2017 - aloisio@gmx.com
- Update to version 0.8.3
* Ascii area ist now editable
* New property hexCaps
* Bugfixes
* Translation updates
* Bump lib version to 4.0.0
- Dropped SLE11 support
-------------------------------------------------------------------
Tue Dec 20 08:28:26 UTC 2016 - aloisio@gmx.com

View File

@ -1,7 +1,7 @@
#
# spec file for package qhexedit2
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,9 +16,9 @@
#
%define _libver 3
%define _libver 4
Name: qhexedit2
Version: 0.8.2
Version: 0.8.3
Release: 0
Summary: Qt-based hex editor
License: LGPL-2.0
@ -27,17 +27,13 @@ Url: https://github.com/Simsys/qhexedit2
Source0: https://github.com/Simsys/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: qhexedit.desktop
BuildRequires: ImageMagick
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: pkg-config
BuildRequires: gcc-c++ >= 4.8
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1110
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Widgets)
%else
BuildRequires: desktop-file-utils
BuildRequires: libqt4-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%endif
%description
QHexEdit is a hex editor widget written in C++ for the Qt framework.
@ -56,28 +52,17 @@ developing applications that use %{name}.
%package doc
Summary: Documentation and examples for %{name}
Group: Documentation/HTML
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%description doc
The %{name}-doc package contains the documentation and examples for %{name}.
%package -n libqhexedit%{_libver}
%if 0%{?suse_version} > 1110
Summary: Qt5 %{name} library
Group: System/Libraries
%else
Summary: Qt %{name} library
Group: System/Libraries
%endif
%description -n libqhexedit%{_libver}
%if 0%{?suse_version} > 1110
Qt5 library for %{name}.
%else
Qt library for %{name}.
%endif
%prep
%setup -q
@ -85,22 +70,14 @@ Qt library for %{name}.
%build
mkdir build-lib
pushd build-lib
%if 0%{?suse_version} >1110
qmake-qt5 QMAKE_CXXFLAGS="%{optflags}" ../src/qhexedit.pro
%else
qmake QMAKE_CXXFLAGS="%{optflags}" ../src/qhexedit.pro
%endif
make %{?_smp_mflags}
popd
# Build application
mkdir build-example
pushd build-example
%if 0%{?suse_version} > 1110
qmake-qt5 QMAKE_CXXFLAGS="%{optflags}" ../example/qhexedit.pro
%else
qmake QMAKE_CXXFLAGS="%{optflags}" ../example/qhexedit.pro
%endif
make %{?_smp_mflags}
popd
@ -138,13 +115,11 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}
install -d %{buildroot}%{_datadir}/pixmaps
convert doc/html/qhexedit.png -resize 128x128! %{buildroot}%{_datadir}/pixmaps/qhexedit.png
%if 0%{?suse_version} > 1110
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%post -n libqhexedit%{_libver} -p /sbin/ldconfig