1 Star 0 Fork 3

misaka00251/libkomparediff2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libkomparediff2.spec 2.30 KB
一键复制 编辑 原始数据 按行查看 历史
misaka00251 提交于 2022-08-16 15:36 . Init package
Name: libkomparediff2
Summary: Library to compare files and strings
Version: 22.04.3
Release: 1
License: GPLv2+ and BSD
URL: https://invent.kde.org/sdk/%{name}.git
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules
BuildRequires: qt5-qtbase-devel
BuildRequires: kf5-kcoreaddons-devel
BuildRequires: kf5-kcodecs-devel
BuildRequires: kf5-kconfig-devel
BuildRequires: kf5-kxmlgui-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kio-devel
BuildRequires: kf5-kparts-devel
Conflicts: kde-l10n < 17.03
Requires: diffutils
Obsoletes: kompare-libs < 4.11.80
Obsoletes: kdesdk-kompare-libs < 4.10.80
%description
A shared library to compare files and strings using KDE Frameworks 5 and GNU
diff, used in Kompare and KDevelop.
%package devel
Summary: Developer files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: cmake
Requires: qt5-qtbase-devel
Requires: kf5-kcodecs-devel
Requires: kf5-kcoreaddons-devel
Requires: kf5-ki18n-devel
Requires: kf5-kio-devel
Requires: kf5-kxmlgui-devel
Conflicts: kompare-devel < 4.11.80
Conflicts: kdesdk-kompare < 4.10.80
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests}%{!?tests:0}
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang %{name} --all-name
%check
%if 0%{?tests}
%ctest
%endif
%ldconfig_scriptlets
%files -f %{name}.lang
%license COPYING*
%{_kf5_datadir}/qlogging-categories5/libkomparediff2.categories
%{_libdir}/libkomparediff2.so.5*
%files devel
%{_includedir}/libkomparediff2/
%{_libdir}/libkomparediff2.so
%{_libdir}/cmake/LibKompareDiff2/
%changelog
* Tue Jul 19 2022 misaka00251 <misaka00251@misakanet.cn> - 22.04.3-1
- Init package (Thanks to fedora team)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/misaka00251/libkomparediff2.git
git@gitee.com:misaka00251/libkomparediff2.git
misaka00251
libkomparediff2
libkomparediff2
master

搜索帮助