]>
Commit | Line | Data |
---|---|---|
7ef6e645 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ce10691e | 4 | %define kdeappsver 23.04.3 |
bc52545b WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
eceddaa8 WF |
7 | %define kaname kompare |
8 | Summary: kompare | |
9 | Name: ka5-%{kaname} | |
ce10691e | 10 | Version: 23.04.3 |
01dcaa5d | 11 | Release: 1 |
eceddaa8 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
f31dd653 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ce10691e | 15 | # Source0-md5: 22a7fcb5d37489b84fe00c6b6337fd42 |
eceddaa8 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5PrintSupport-devel | |
20 | BuildRequires: Qt5Widgets-devel | |
21 | BuildRequires: cmake >= 2.8.12 | |
22 | BuildRequires: gettext-devel | |
e1b0671f | 23 | BuildRequires: ka5-libkomparediff2-devel >= %{kdeappsver} |
b2852d34 WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kcodecs-devel >= %{kframever} | |
26 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
27 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
29 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
30 | BuildRequires: kf5-kjobwidgets-devel >= %{kframever} | |
31 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
32 | BuildRequires: kf5-ktexteditor-devel >= %{kframever} | |
33 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
e1b0671f | 34 | BuildRequires: ninja |
eceddaa8 WF |
35 | BuildRequires: qt5-build >= %{qtver} |
36 | BuildRequires: rpmbuild(macros) >= 1.164 | |
37 | BuildRequires: shared-mime-info | |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | Kompare is a GUI front-end program that enables differences between | |
44 | source files to be viewed and merged. It can be used to compare | |
45 | differences on files or the contents of folders, and it supports a | |
46 | variety of diff formats and provide many options to customize the | |
47 | information level displayed. | |
48 | ||
e1c335c2 WF |
49 | %description -l pl.UTF-8 |
50 | Kompare jest programem GUI, który pokazuje różnice między plikami | |
51 | kodu źródłowego, które mogą być złączone. Może być użyty do | |
44ddae93 WF |
52 | porównania plików, lub zawartości folderów. Wspiera różne |
53 | formaty diffa i dostarcza wielu opcji do zmieniania zakresu | |
54 | wyświetlanej informacji. | |
e1c335c2 | 55 | |
eceddaa8 WF |
56 | %prep |
57 | %setup -q -n %{kaname}-%{version} | |
58 | ||
59 | %build | |
60 | install -d build | |
61 | cd build | |
62 | %cmake \ | |
e1b0671f | 63 | -G Ninja \ |
7ef6e645 | 64 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
b2852d34 | 65 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
eceddaa8 WF |
66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
67 | .. | |
e1b0671f | 68 | %ninja_build |
eceddaa8 | 69 | |
7ef6e645 WF |
70 | %if %{with tests} |
71 | ctest | |
72 | %endif | |
73 | ||
74 | ||
eceddaa8 WF |
75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
e1b0671f | 77 | %ninja_install -C build |
eceddaa8 WF |
78 | |
79 | %find_lang %{kaname} --all-name --with-kde | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files -f %{kaname}.lang | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_bindir}/kompare | |
87 | %dir %{_includedir}/kompare | |
88 | %{_includedir}/kompare/kompareinterface.h | |
89 | %attr(755,root,root) %{_libdir}/libkomparedialogpages.so.5 | |
264246db | 90 | %{_libdir}/libkompareinterface.so |
eceddaa8 | 91 | %attr(755,root,root) %{_libdir}/libkompareinterface.so.5 |
b2852d34 WF |
92 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/parts/komparenavtreepart.so |
93 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/parts/komparepart.so | |
eceddaa8 WF |
94 | %{_desktopdir}/org.kde.kompare.desktop |
95 | %{_iconsdir}/hicolor/128x128/apps/kompare.png | |
96 | %{_iconsdir}/hicolor/16x16/apps/kompare.png | |
97 | %{_iconsdir}/hicolor/22x22/apps/kompare.png | |
98 | %{_iconsdir}/hicolor/32x32/apps/kompare.png | |
99 | %{_iconsdir}/hicolor/48x48/apps/kompare.png | |
100 | %{_iconsdir}/hicolor/scalable/apps/kompare.svgz | |
eceddaa8 | 101 | %{_datadir}/metainfo/org.kde.kompare.appdata.xml |
73f31d6e | 102 | %{_datadir}/qlogging-categories5/kompare.categories |
44ddae93 | 103 | %{_datadir}/kio/servicemenus/kompare.desktop |