!1 initial release

Merge pull request !1 from yangzhao_kl/initial_release
This commit is contained in:
openeuler-ci-bot 2020-07-23 14:48:31 +08:00 committed by Gitee
commit 74e6f6a6e3
2 changed files with 98 additions and 0 deletions

BIN
polkit-qt-1-0.113.0.tar.xz Normal file

Binary file not shown.

98
polkit-qt-1.spec Normal file
View File

@ -0,0 +1,98 @@
Name: polkit-qt-1
Version: 0.113.0
Release: 1%{?dist}
Summary: Qt bindings for PolicyKit
License: GPLv2+
URL: https://api.kde.org/kdesupport-api/polkit-qt-1-apidocs/
Source0: http://download.kde.org/stable/%{name}/polkit-qt-1-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(polkit-agent-1) pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(Qt5DBus) pkgconfig(Qt5Gui) pkgconfig(Qt5Widgets)
# when/if building docs
#BuildRequires: doxygen
# when/if building examples too
#pkgconfig(Qt5Xml)
%description
Polkit-qt is a library that lets developers use the PolicyKit API
through a nice Qt-styled API.
%package doc
Summary: Doxygen documentation for the PolkitQt API
Obsoletes: polkit-qt-doc < %{version}-%{release}
Provides: polkit-qt-doc = %{version}-%{release}
BuildArch: noarch
%description doc
%{summary}.
%package -n polkit-qt5-1
Summary: PolicyKit Qt5 bindings
Obsoletes: polkit-qt5 < 0.112.0-3
Provides: polkit-qt5 = %{version}-%{release}
%description -n polkit-qt5-1
Polkit-qt is a library that lets developers use the PolicyKit API
through a nice Qt-styled API.
%package -n polkit-qt5-1-devel
Summary: Development files for PolicyKit Qt5 bindings
Obsoletes: polkit-qt5-devel < 0.112.0-3
Provides: polkit-qt5-devel = %{version}-%{release}
Requires: polkit-qt5-1%{?_isa} = %{version}-%{release}
%description -n polkit-qt5-1-devel
%{summary}.
%prep
%autosetup -n %{name}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake} .. \
-DBUILD_EXAMPLES:BOOL=OFF
popd
%make_build -C %{_target_platform}
## build docs, needswork
#doxygen Mainpage.dox
# Remove installdox file - it is not necessary here
#rm -fv html/installdox
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
#files doc
#doc html/*
%ldconfig_scriptlets -n polkit-qt5-1
%files -n polkit-qt5-1
%doc AUTHORS README
%license COPYING
%{_libdir}/libpolkit-qt5-core-1.so.1*
%{_libdir}/libpolkit-qt5-gui-1.so.1*
%{_libdir}/libpolkit-qt5-agent-1.so.1*
%files -n polkit-qt5-1-devel
%{_includedir}/polkit-qt5-1/
%{_libdir}/libpolkit-qt5-core-1.so
%{_libdir}/libpolkit-qt5-gui-1.so
%{_libdir}/libpolkit-qt5-agent-1.so
%{_libdir}/pkgconfig/polkit-qt5-1.pc
%{_libdir}/pkgconfig/polkit-qt5-core-1.pc
%{_libdir}/pkgconfig/polkit-qt5-gui-1.pc
%{_libdir}/pkgconfig/polkit-qt5-agent-1.pc
%{_libdir}/cmake/PolkitQt5-1/
%changelog
* Thu Jul 23 2020 Zhao Yang <yangzhao1@kylinos.cn> - 0.113.0-1
- Initial release for OpenEuler