update to 0.0.12

This commit is contained in:
liweiganga 2023-04-13 11:37:50 +08:00
parent ac52208ae4
commit 6b5d34dac8
3 changed files with 49 additions and 30 deletions

BIN
gio-qt-0.0.12.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -4,63 +4,82 @@
%global sname libgio-qt
Name: gio-qt
Version: 0.0.8
Version: 0.0.12
Release: 1
Summary: This library is designed to be exception-free and avoid Qt application developer do direct access to glib/glibmm
License: GPLv3
URL: https://uos-packages.deepin.com/uos/pool/main/g/gio-qt/
Source0: %{name}-%{version}.orig.tar.xz
BuildRequires: cmake qt5-qtbase-devel glibmm24-devel doxygen
Summary: Gio wrapper for Qt applications.
License: LGPLv3+
URL: https://github.com/linuxdeepin/gio-qt
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.12.4
BuildRequires: qt5-qtbase-devel
BuildRequires: glibmm24-devel
BuildRequires: doxygen
BuildRequires: qt5-doctools
%description
%{summary}.
This is a Qt wrapper library for Gio (
or say it's a glib/glibmm wrapper mainly focused on GIO module).
This library is designed to be exception-free and
avoid Qt application developer do direct access to
glib/glibmm (so they can use Gio in a more Qt way).
%package -n %{sname}
Summary: %{summary}
%description -n %{sname}
A convenient way to bind gio with Qt5.
%package -n %{sname}-devel
Summary: %{summary}
Requires: %{sname} = %{version}-%{release}
Requires: qt5-qtbase-devel
Requires: glibmm24-devel
%description -n %{sname}-devel
A convenient way to bind gio with Qt5.
%prep
%setup
sed -i 's|VERSION 3.12.4|VERSION 3.11.4|g' CMakeLists.txt
sed -i 's|BUILD_DOCS "Build documentation" ON|BUILD_DOCS "Build documentation" OFF|g' CMakeLists.txt
%setup -q
#sed -i 's|VERSION 3.12.4|VERSION 3.11.4|g' CMakeLists.txt
#sed -i 's|BUILD_DOCS "Build documentation" ON|BUILD_DOCS "Build documentation" OFF|g' CMakeLists.txt
# fix strip
sed -i 's|Wall|Wall -s -fPIE|' CMakeLists.txt
# fix doc path
sed -i 's|qt5/doc|doc/qt5|' CMakeLists.txt
%build
#help find (and prefer) qt5 utilities, e.g. qmake. lrelease
export PATH=%{_qt5_bindir}:$PATH
cmake .
make
%make_build
%install
%make_install
%files -n %{sname}
/usr/lib64/libgio-qt.so
/usr/lib64/libgio-qt.so.0
/usr/lib64/libgio-qt.so.0.0.1
%doc README.md
%license LICENSE
%{_libdir}/%{sname}.so.0*
%files -n %{sname}-devel
%{_includedir}/%{name}/dgiodrive.h
%{_includedir}/%{name}/dgiofile.h
%{_includedir}/%{name}/dgiofileinfo.h
%{_includedir}/%{name}/dgiofileiterator.h
%{_includedir}/%{name}/dgiomount.h
%{_includedir}/%{name}/dgiomountoperation.h
%{_includedir}/%{name}/dgiosettings.h
%{_includedir}/%{name}/dgiovolume.h
%{_includedir}/%{name}/dgiovolumemanager.h
%{_includedir}/%{name}/dglibutils.h
%{_libdir}/pkgconfig/gio-qt.pc
%license LICENSE
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/%{sname}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_qt5_docdir}/%{name}.qch
%changelog
* Thu Apr 13 2023 liweiganga <liweiganga@uniontech.com> - 0.0.12-1
- update to 0.0.12
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.0.8-1
- Initial release for OpenEuler