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