source: projects/specs/branches/6/k/kdiff3/kdiff3-vl.spec @ 3885

Revision 3885, 3.7 KB checked in by Takemikaduchi, 13 years ago (diff)

add BR

Line 
1Name: kdiff3
2Summary: Tool for Comparison and Merge of Files and Directories
3Summary(ja): ファイルやディレクトリの比較/マージを行うツール
4Version: 0.9.95
5Release: 4%{?_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
35BuildRequires: soprano-devel
36#BuildRequires: xorg-x11-devel
37Requires: kdelibs4 > 4.1
38
39%description
40Shows the differences line by line and character by character (!).
41Provides an automatic merge-facility and
42an integrated editor for comfortable solving of merge-conflicts.
43Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
44Unicode & UTF-8 support
45
46%prep
47%setup -q -n %{name}-%{version}
48%patch0 -p1
49%patch1 -p1
50%patch2 -p1 -b .docbook_fixes
51
52%build
53export QTDIR=/usr/lib/qt4
54cmake . -DCMAKE_INSTALL_PREFIX=/usr
55%{__make} %{?_smp_mflags}
56
57%install
58%{__rm} -rf %{buildroot}
59make install DESTDIR=%{buildroot}
60
61# Desktop.
62desktop-file-install --vendor="" \
63    --dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \
64    $RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop
65
66desktop-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
74cat %{name}plugin.lang >> %{name}.lang
75
76%clean
77%{__rm} -rf %{buildroot}
78
79%post
80touch --no-create %{_datadir}/icons/hicolor || :
81touch --no-create %{_datadir}/icons/locolor || :
82
83%posttrans
84gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
85gtk-update-icon-cache %{_datadir}/icons//locolor &> /dev/null || :
86update-desktop-database -q &> /dev/null
87
88%postun
89if [ $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
95fi
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
109* Sat May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.95-4
110- add BuildRequires: soprano-devel
111
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
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
Note: See TracBrowser for help on using the repository browser.