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 %global sname libgio-qt
Name: gio-qt Name: gio-qt
Version: 0.0.8 Version: 0.0.12
Release: 1 Release: 1
Summary: This library is designed to be exception-free and avoid Qt application developer do direct access to glib/glibmm Summary: Gio wrapper for Qt applications.
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
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 %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} %package -n %{sname}
Summary: %{summary} Summary: %{summary}
%description -n %{sname} %description -n %{sname}
A convenient way to bind gio with Qt5.
%package -n %{sname}-devel %package -n %{sname}-devel
Summary: %{summary} Summary: %{summary}
Requires: %{sname} = %{version}-%{release}
Requires: qt5-qtbase-devel
Requires: glibmm24-devel
%description -n %{sname}-devel %description -n %{sname}-devel
A convenient way to bind gio with Qt5.
%prep %prep
%setup %setup -q
sed -i 's|VERSION 3.12.4|VERSION 3.11.4|g' CMakeLists.txt #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 #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 %build
#help find (and prefer) qt5 utilities, e.g. qmake. lrelease
export PATH=%{_qt5_bindir}:$PATH
cmake . cmake .
make %make_build
%install %install
%make_install %make_install
%files -n %{sname} %files -n %{sname}
/usr/lib64/libgio-qt.so %doc README.md
/usr/lib64/libgio-qt.so.0 %license LICENSE
/usr/lib64/libgio-qt.so.0.0.1 %{_libdir}/%{sname}.so.0*
%files -n %{sname}-devel %files -n %{sname}-devel
%{_includedir}/%{name}/dgiodrive.h %{_includedir}/%{name}/
%{_includedir}/%{name}/dgiofile.h %{_libdir}/%{sname}.so
%{_includedir}/%{name}/dgiofileinfo.h %{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/dgiofileiterator.h %{_qt5_docdir}/%{name}.qch
%{_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
%changelog %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 * Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.0.8-1
- Initial release for OpenEuler - Initial release for OpenEuler