gio-qt/gio-qt.spec

86 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-12 17:22:01 +08:00
%bcond_with check
%global _unpackaged_files_terminate_build 0
%global debug_package %{nil}
%global sname libgio-qt
Name: gio-qt
2023-04-13 11:37:50 +08:00
Version: 0.0.12
2020-08-12 17:22:01 +08:00
Release: 1
2023-04-13 11:37:50 +08:00
Summary: Gio wrapper for Qt applications.
2020-08-12 17:22:01 +08:00
2023-04-13 11:37:50 +08:00
License: LGPLv3+
URL: https://github.com/linuxdeepin/gio-qt
Source0: %{name}-%{version}.tar.gz
2020-08-12 17:22:01 +08:00
2023-04-13 11:37:50 +08:00
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.12.4
BuildRequires: qt5-qtbase-devel
BuildRequires: glibmm24-devel
BuildRequires: doxygen
BuildRequires: qt5-doctools
2020-08-12 17:22:01 +08:00
%description
2023-04-13 11:37:50 +08:00
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).
2020-08-12 17:22:01 +08:00
%package -n %{sname}
Summary: %{summary}
2023-04-13 11:37:50 +08:00
2020-08-12 17:22:01 +08:00
%description -n %{sname}
2023-04-13 11:37:50 +08:00
A convenient way to bind gio with Qt5.
2020-08-12 17:22:01 +08:00
%package -n %{sname}-devel
Summary: %{summary}
2023-04-13 11:37:50 +08:00
Requires: %{sname} = %{version}-%{release}
Requires: qt5-qtbase-devel
Requires: glibmm24-devel
2020-08-12 17:22:01 +08:00
%description -n %{sname}-devel
2023-04-13 11:37:50 +08:00
A convenient way to bind gio with Qt5.
2020-08-12 17:22:01 +08:00
%prep
2023-04-13 11:37:50 +08:00
%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
2020-08-12 17:22:01 +08:00
%build
2023-04-13 11:37:50 +08:00
#help find (and prefer) qt5 utilities, e.g. qmake. lrelease
export PATH=%{_qt5_bindir}:$PATH
2020-08-12 17:22:01 +08:00
cmake .
2023-04-13 11:37:50 +08:00
%make_build
2020-08-12 17:22:01 +08:00
%install
%make_install
2023-04-13 11:37:50 +08:00
2020-08-12 17:22:01 +08:00
%files -n %{sname}
2023-04-13 11:37:50 +08:00
%doc README.md
%license LICENSE
%{_libdir}/%{sname}.so.0*
2020-08-12 17:22:01 +08:00
%files -n %{sname}-devel
2023-04-13 11:37:50 +08:00
%{_includedir}/%{name}/
%{_libdir}/%{sname}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_qt5_docdir}/%{name}.qch
2020-08-12 17:22:01 +08:00
%changelog
2023-04-13 11:37:50 +08:00
* Thu Apr 13 2023 liweiganga <liweiganga@uniontech.com> - 0.0.12-1
- update to 0.0.12
2020-08-12 17:22:01 +08:00
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.0.8-1
- Initial release for OpenEuler