1 Star 0 Fork 1

xingwei-liu/dtkcommon

forked from src-anolis-dde/dtkcommon 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dtkcommon.spec 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-07-22 11:30 . rebuild for an8.6
## START: Set by rpmautospec
## (rpmautospec version 0.2.5)
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
release_number = 1;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
## END: Set by rpmautospec
# This package contains files under %%_libdir but no binary files
%global debug_package %{nil}
Name: dtkcommon
Version: 5.5.3
Release: 2%{?dist}
Summary: DTK common files
License: GPLv3+
URL: https://github.com/linuxdeepin/dtkcommon
%if 0%{?fedora}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
%else
Source0: %{name}-%{version}.tar.gz
%endif
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: qt5-qtbase-devel
# glib2 provides %%{_datadir}/glib-2.0/schemas/
Requires: glib2%{?_isa}
%description
This package contains common configuration files for DTK.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel%{?_isa}
%description devel
This package contains common build configuration files for DTK.
%prep
%autosetup -p1
sed -r -i 's|/lib/\$\$ARCH|/%{_lib}|; s|/lib/\$\(ARCH\)|/%{_lib}|' dtkcommon.pro
%build
%qmake_qt5 VERSION=%{version} LIB_INSTALL_DIR=%_libdir
%make_build
%install
%define _unpackaged_files_terminate_build 0
%make_install INSTALL_ROOT=%buildroot
%files
%license LICENSE
%doc README.md
%{_datadir}/glib-2.0/schemas/*
%files devel
%{_qt5_archdatadir}/mkspecs/features/*.prf
%{_qt5_archdatadir}/mkspecs/modules/*.pri
%{_libdir}/cmake/Dtk/
%changelog
* Thu Jul 21 2022 liuxingwei liuxingwei@uniontech.com - 5.5.3-2
- rebuild for an8.6
* Thu Oct 14 2021 Zhang taikun <zhangtaikun@uniontech.com> 5.5.3-1
- Update to 5.5.3
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xingwei-liu/dtkcommon.git
git@gitee.com:xingwei-liu/dtkcommon.git
xingwei-liu
dtkcommon
dtkcommon
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385