1 | Name: kdiff3 |
---|
2 | Summary: Tool for Comparison and Merge of Files and Directories |
---|
3 | Summary(ja): ファイルやディレクトリの比較/マージを行うツール |
---|
4 | Version: 0.9.95 |
---|
5 | Release: 3%{?_dist_release} |
---|
6 | |
---|
7 | URL: http://kdiff3.sourceforge.net/ |
---|
8 | License: GPLv2 |
---|
9 | Group: Development/Tools |
---|
10 | |
---|
11 | Source: http://downloads.sourceforge.net/sourceforge/kdiff3/%{name}-%{version}.tar.gz |
---|
12 | |
---|
13 | # Remove bogus MimeType tag from kdiff3part.desktop |
---|
14 | Patch0: kdiff3part.desktop.diff |
---|
15 | # Install kdiff3_part.rc into correct location |
---|
16 | Patch1: kdiff3part.rc.diff |
---|
17 | # fix build against kde-4.5 (pre)releases |
---|
18 | Patch2: kdiff3-0.9.95-docbook_fixes.patch |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | BuildRequires: desktop-file-utils |
---|
22 | BuildRequires: cmake |
---|
23 | BuildRequires: gettext |
---|
24 | BuildRequires: libICE-devel |
---|
25 | BuildRequires: libXau-devel |
---|
26 | BuildRequires: libXext-devel |
---|
27 | BuildRequires: libXdmcp-devel |
---|
28 | BuildRequires: libXft-devel |
---|
29 | BuildRequires: libXpm-devel |
---|
30 | BuildRequires: kdelibs4-devel >= 4.1 |
---|
31 | BuildRequires: kdebase4-devel |
---|
32 | BuildRequires: phonon-devel |
---|
33 | BuildRequires: qt4-devel >= 4.4 |
---|
34 | BuildRequires: openssl-devel |
---|
35 | #BuildRequires: xorg-x11-devel |
---|
36 | Requires: kdelibs4 > 4.1 |
---|
37 | |
---|
38 | %description |
---|
39 | Shows the differences line by line and character by character (!). |
---|
40 | Provides an automatic merge-facility and |
---|
41 | an integrated editor for comfortable solving of merge-conflicts. |
---|
42 | Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.). |
---|
43 | Unicode & UTF-8 support |
---|
44 | |
---|
45 | %prep |
---|
46 | %setup -q -n %{name}-%{version} |
---|
47 | %patch0 -p1 |
---|
48 | %patch1 -p1 |
---|
49 | %patch2 -p1 -b .docbook_fixes |
---|
50 | |
---|
51 | %build |
---|
52 | export QTDIR=/usr/lib/qt4 |
---|
53 | cmake . -DCMAKE_INSTALL_PREFIX=/usr |
---|
54 | %{__make} %{?_smp_mflags} |
---|
55 | |
---|
56 | %install |
---|
57 | %{__rm} -rf %{buildroot} |
---|
58 | make install DESTDIR=%{buildroot} |
---|
59 | |
---|
60 | # Desktop. |
---|
61 | desktop-file-install --vendor="" \ |
---|
62 | --dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \ |
---|
63 | $RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop |
---|
64 | |
---|
65 | desktop-file-install --vendor="" \ |
---|
66 | --dir=$RPM_BUILD_ROOT%{_datadir}/applications/kde4 \ |
---|
67 | --add-category=Development \ |
---|
68 | $RPM_BUILD_ROOT%{_datadir}/applications/kde4/kdiff3.desktop |
---|
69 | |
---|
70 | # locale's |
---|
71 | %find_lang %{name} || touch %{name}.lang |
---|
72 | %find_lang %{name}plugin || touch %{name}.lang |
---|
73 | cat %{name}plugin.lang >> %{name}.lang |
---|
74 | |
---|
75 | %clean |
---|
76 | %{__rm} -rf %{buildroot} |
---|
77 | |
---|
78 | %post |
---|
79 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
80 | touch --no-create %{_datadir}/icons/locolor || : |
---|
81 | |
---|
82 | %posttrans |
---|
83 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
84 | gtk-update-icon-cache %{_datadir}/icons//locolor &> /dev/null || : |
---|
85 | update-desktop-database -q &> /dev/null |
---|
86 | |
---|
87 | %postun |
---|
88 | if [ $1 -eq 0 ] ; then |
---|
89 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
90 | touch --no-create %{_datadir}/icons/locolor || : |
---|
91 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor 2> /dev/null || : |
---|
92 | gtk-update-icon-cache --quiet %{_datadir}/icons/icons/locolor 2> /dev/null || : |
---|
93 | update-desktop-database -q &> /dev/null |
---|
94 | fi |
---|
95 | |
---|
96 | %files -f %{name}.lang |
---|
97 | %doc AUTHORS ChangeLog COPYING NEWS README TODO |
---|
98 | %{_bindir}/kdiff3 |
---|
99 | %{_datadir}/applications/* |
---|
100 | %{_datadir}/doc/HTML/* |
---|
101 | %{_datadir}/kde4/apps/* |
---|
102 | %{_datadir}/kde4/services/* |
---|
103 | %{_datadir}/icons/hicolor/* |
---|
104 | %{_datadir}/icons/locolor/* |
---|
105 | %{_libdir}/kde4/* |
---|
106 | |
---|
107 | %changelog |
---|
108 | * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.95-3 |
---|
109 | - added Patch2 from FC |
---|
110 | * Tue Jul 13 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.9.95-5 |
---|
111 | - ftbfs against kde-4.5 (pre)releases |
---|
112 | |
---|
113 | * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.95-2 |
---|
114 | - fixed BR to build on Vine Linux 5 |
---|
115 | |
---|
116 | * Thu Aug 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.95-1 |
---|
117 | - initial build for VineSeed |
---|
118 | |
---|
119 | * Fri Nov 21 2008 Joachim Eibl - 0.9.94-1 |
---|
120 | - Untested changes for KDE4. |
---|
121 | * Mon May 15 2006 Vadim Likhota <vadim-lvv@yandex.ru> - 0.9.90-1.fc |
---|
122 | - write spec for fc/rhel/centos/asp for kdiff3 |
---|