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