de6364cf14
- Update to 1.10.0 * Make DirectoryMergeWindow and DirectoryMergeInfo QDockWidgets * Use Qt native saveState/restoreState - Build with boost 1.75.0 on Leap as the standard version is too old (kdiff3 requires at least 1.71 now) - Add Fix-linking-with-boost-1.75.0.patch to workaround a bug in boost 1.75.0 that breaks the linking stage OBS-URL: https://build.opensuse.org/request/show/1058883 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kdiff3?expand=0&rev=38
106 lines
3.3 KiB
RPMSpec
106 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package kdiff3
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without released
|
|
Name: kdiff3
|
|
Version: 1.10.0
|
|
Release: 0
|
|
Summary: Code Comparison Utility
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Tools/Version Control
|
|
URL: https://apps.kde.org/kdiff3
|
|
Source0: https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
|
|
%if %{with released}
|
|
Source1: https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz.sig
|
|
Source2: kdiff3.keyring
|
|
%endif
|
|
# PATCH-FIX-OPENSUSE
|
|
Patch: Fix-linking-with-boost-1.75.0.patch
|
|
%if 0%{?suse_version} <= 1500
|
|
BuildRequires: libboost_headers1_75_0-devel
|
|
%else
|
|
BuildRequires: boost-devel >= 1.71
|
|
%endif
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: fdupes
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: kf5-filesystem
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: cmake(KF5Config)
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
BuildRequires: cmake(KF5Crash)
|
|
BuildRequires: cmake(KF5DocTools)
|
|
BuildRequires: cmake(KF5I18n)
|
|
BuildRequires: cmake(KF5KIO)
|
|
BuildRequires: cmake(KF5Parts)
|
|
BuildRequires: cmake(KF5WidgetsAddons)
|
|
BuildRequires: cmake(Qt5Core)
|
|
BuildRequires: cmake(Qt5Gui)
|
|
BuildRequires: cmake(Qt5PrintSupport)
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
|
|
%description
|
|
KDiff3 is a program that:
|
|
|
|
* Compares or merges two or three text input files or directories
|
|
* Shows the differences line-by-line and character-by-character
|
|
* Provides an automatic merge facility and an integrated editor for
|
|
solving merge conflicts
|
|
* Supports KDE's KIO framework (allows accessing ftp, sftp, fish, smb, etc.)
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake_kf5 -d build -- -DBUILD_autotests=FALSE
|
|
%cmake_build
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
%suse_update_desktop_file -r org.kde.kdiff3 Qt KDE Utility TextEditor X-KDE-Utilities-File
|
|
|
|
%find_lang %{name} %{name}.lang --with-man
|
|
%find_lang diff_ext %{name}.lang
|
|
%find_lang kdiff3fileitemactionplugin %{name}.lang
|
|
%{kf5_find_htmldocs}
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%files
|
|
%license LICENSES/*
|
|
%doc %lang(en) %{_kf5_htmldir}/en/kdiff3
|
|
%doc %lang(en) %{_kf5_mandir}/man1/kdiff3.1%{?ext_man}
|
|
%dir %{_kf5_plugindir}/kf5/kfileitemaction
|
|
%dir %{_kf5_plugindir}/kf5/parts
|
|
%{_kf5_applicationsdir}/org.kde.kdiff3.desktop
|
|
%{_kf5_appstreamdir}/org.kde.kdiff3.appdata.xml
|
|
%{_kf5_bindir}/kdiff3
|
|
%{_kf5_iconsdir}/hicolor/*/apps/kdiff3.png
|
|
%{_kf5_iconsdir}/hicolor/scalable/apps/kdiff3.svgz
|
|
%{_kf5_kxmlguidir}/kdiff3/
|
|
%{_kf5_kxmlguidir}/kdiff3part/
|
|
%{_kf5_plugindir}/kf5/kfileitemaction/kdiff3fileitemaction.so
|
|
%{_kf5_plugindir}/kf5/parts/kdiff3part.so
|
|
%{_kf5_servicesdir}/kdiff3part.desktop
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|