source: projects/specs/trunk/k/kdiff3/kdiff3-vl.spec @ 2776

Revision 2776, 3.6 KB checked in by inagaki, 13 years ago (diff)

upload: kdiff3, kphotoalbum
NEW: drumstick, kmid2, ktorrent

Line 
1Name: kdiff3
2Summary: Tool for Comparison and Merge of Files and Directories
3Summary(ja): ファイルやディレクトリの比較/マージを行うツール
4Version: 0.9.95
5Release: 3%{?_dist_release}
6
7URL: http://kdiff3.sourceforge.net/
8License: GPLv2
9Group: Development/Tools
10
11Source: http://downloads.sourceforge.net/sourceforge/kdiff3/%{name}-%{version}.tar.gz
12
13# Remove bogus MimeType tag from kdiff3part.desktop
14Patch0:         kdiff3part.desktop.diff
15# Install kdiff3_part.rc into correct location
16Patch1:         kdiff3part.rc.diff
17# fix build against kde-4.5 (pre)releases
18Patch2:         kdiff3-0.9.95-docbook_fixes.patch     
19
20BuildRoot: %{_tmppath}/%{name}-%{version}-root
21BuildRequires: desktop-file-utils
22BuildRequires: cmake
23BuildRequires: gettext
24BuildRequires: libICE-devel
25BuildRequires: libXau-devel
26BuildRequires: libXext-devel
27BuildRequires: libXdmcp-devel
28BuildRequires: libXft-devel
29BuildRequires: libXpm-devel
30BuildRequires: kdelibs4-devel >= 4.1
31BuildRequires: kdebase4-devel
32BuildRequires: phonon-devel
33BuildRequires: qt4-devel >= 4.4
34BuildRequires: openssl-devel
35#BuildRequires: xorg-x11-devel
36Requires: kdelibs4 > 4.1
37
38%description
39Shows the differences line by line and character by character (!).
40Provides an automatic merge-facility and
41an integrated editor for comfortable solving of merge-conflicts.
42Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
43Unicode & 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
52export QTDIR=/usr/lib/qt4
53cmake . -DCMAKE_INSTALL_PREFIX=/usr
54%{__make} %{?_smp_mflags}
55
56%install
57%{__rm} -rf %{buildroot}
58make install DESTDIR=%{buildroot}
59
60# Desktop.
61desktop-file-install --vendor="" \
62    --dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \
63    $RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop
64
65desktop-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
73cat %{name}plugin.lang >> %{name}.lang
74
75%clean
76%{__rm} -rf %{buildroot}
77
78%post
79touch --no-create %{_datadir}/icons/hicolor || :
80touch --no-create %{_datadir}/icons/locolor || :
81
82%posttrans
83gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
84gtk-update-icon-cache %{_datadir}/icons//locolor &> /dev/null || :
85update-desktop-database -q &> /dev/null
86
87%postun
88if [ $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
94fi
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
Note: See TracBrowser for help on using the repository browser.