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