init package

This commit is contained in:
weidong 2020-08-12 17:22:01 +08:00
parent abd3b3ddc6
commit b4eb0e55a3
2 changed files with 75 additions and 0 deletions

BIN
gio-qt-0.0.8.orig.tar.xz Normal file

Binary file not shown.

75
gio-qt.spec Normal file
View File

@ -0,0 +1,75 @@
%bcond_with check
%global _unpackaged_files_terminate_build 0
%global debug_package %{nil}
%global sname libgio-qt
%global common_description %{expand:
This is a Qt wrapper library for Gio (or say it's a glib/glibmm wrapper mainly focused on [GIO](https://gitlab.gnome.org/GNOME/glibmm/tree/master/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).}
######gio-qt-0.0.8.orig.tar.xz
Name: gio-qt
Version: 0.0.8
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
BuildRequires: qt5-qtbase-devel
BuildRequires: glibmm24-devel
BuildRequires: doxygen
%description
%{common_description}
%package -n %{sname}
Summary: %{summary}
%description -n %{sname}
%package -n %{sname}-devel
Summary: %{summary}
%description -n %{sname}-devel
%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
echo aa=$?
%build
cmake .
make
%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
%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
%changelog
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.0.8-1
- Initial release for OpenEuler