7 Star 6 Fork 1

src-openEuler/dtkcore2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dtkcore2.spec 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
panchenbo 提交于 2020-08-07 09:44 . package init
Name: dtkcore2
Version: 2.2.1
Release: 1
Summary: Deepin tool kit core modules
License: GPLv3
URL: https://github.com/linuxdeepin/dtkcore
Source0: %{name}_%{version}.orig.tar.xz
BuildRequires: gcc-c++
BuildRequires: annobin
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(gsettings-qt)
Obsoletes: deepin-tool-kit <= 0.3.3
Obsoletes: deepin-tool-kit-devel <= 0.3.3
Obsoletes: dtksettings <= 0.1.7
Obsoletes: dtksettings-devel <= 0.1.7
%description
Deepin tool kit core modules.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel
%description devel
Header files and libraries for %{name}.
%prep
%setup -q
sed -i 's|/lib|/libexec|' tools/settings/settings.pro
## consider relying on %%_qt5_bindir (see %%build below) instead of patching -- rex
#sed -i 's|qmake|qmake-qt5|' src/dtk_module.prf
#sed -i 's|lrelease|lrelease-qt5|' tools/script/dtk-translate.py src/dtk_translation.prf
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
%qmake_qt5 PREFIX=%{_prefix} \
DTK_VERSION=%{version} \
LIB_INSTALL_DIR=%{_libdir} \
BIN_INSTALL_DIR=%{_libexecdir}/dtk2 \
TOOL_INSTALL_DIR=%{_libexecdir}/dtk2
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}
%ldconfig_scriptlets
%files
%doc README.md
%license LICENSE
%{_libdir}/libdtkcore.so.2*
%{_libexecdir}/dtk2/dtk-settings
%{_libexecdir}/dtk2/dtk-license.py*
%{_libexecdir}/dtk2/dtk-translate.py*
%{_libexecdir}/dtk2/deepin-os-release
%files devel
%doc doc/Specification.md
%{_includedir}/libdtk-*/
%{_qt5_archdatadir}/mkspecs/features/*.prf
%{_qt5_archdatadir}/mkspecs/modules/*.pri
%{_libdir}/cmake/Dtk/
%{_libdir}/cmake/DtkCore/
%{_libdir}/cmake/DtkCMake/
%{_libdir}/pkgconfig/dtkcore.pc
%{_libdir}/libdtkcore.so
%changelog
* Fri Aug 7 2020 zhaochen pan <[email protected]> - 2.2.1-1
- Initial release for OpenEuler
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/dtkcore2.git
[email protected]:src-openeuler/dtkcore2.git
src-openeuler
dtkcore2
dtkcore2
master

搜索帮助