diff --git a/gio-qt-0.0.12.tar.gz b/gio-qt-0.0.12.tar.gz new file mode 100644 index 0000000..051c000 Binary files /dev/null and b/gio-qt-0.0.12.tar.gz differ diff --git a/gio-qt-0.0.8.orig.tar.xz b/gio-qt-0.0.8.orig.tar.xz deleted file mode 100644 index 13c2b78..0000000 Binary files a/gio-qt-0.0.8.orig.tar.xz and /dev/null differ diff --git a/gio-qt.spec b/gio-qt.spec index c13ec3c..ce32d89 100644 --- a/gio-qt.spec +++ b/gio-qt.spec @@ -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 - 0.0.12-1 +- update to 0.0.12 + * Fri Aug 7 2020 weidong - 0.0.8-1 - Initial release for OpenEuler