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

Revision 4803, 3.9 KB checked in by kudoh, 13 years ago (diff)

Name: kdiff3
Summary: Tool for Comparison and Merge of Files and Directories
Summary(ja): ファイルやディレクトリの比較/マージを行うツール
Version: 0.9.96
Release: 1%{?_dist_release}

URL:  http://kdiff3.sourceforge.net/
License: GPLv2
Group: Development/Tools?

Source:  http://downloads.sourceforge.net/sourceforge/kdiff3/%{name}-%{version}.tar.gz

# Remove bogus MimeType? tag from kdiff3part.desktop
Patch0: kdiff3part.desktop.diff
# Install kdiff3_part.rc into correct location
#Patch1: kdiff3part.rc.diff
# fix build against kde-4.5 (pre)releases
#Patch2: kdiff3-0.9.95-docbook_fixes.patch

BuildRoot?: %{_tmppath}/%{name}-%{version}-root

BuildRequires?: desktop-file-utils
BuildRequires?: cmake
BuildRequires?: gettext
BuildRequires?: libICE-devel
BuildRequires?: libXau-devel
BuildRequires?: libXext-devel
BuildRequires?: libXdmcp-devel
BuildRequires?: libXft-devel
BuildRequires?: libXpm-devel
BuildRequires?: kdelibs4-devel >= 4.1
BuildRequires?: kdebase4-devel
BuildRequires?: phonon-devel
BuildRequires?: qt4-devel >= 4.4
BuildRequires?: openssl-devel
BuildRequires?: soprano-devel
BuildRequires?: libX11-devel
Requires: kdelibs4 > 4.1

%description
Shows the differences line by line and character by character (!).
Provides an automatic merge-facility and
an integrated editor for comfortable solving of merge-conflicts.
Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
Unicode & UTF-8 support

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
#%patch1 -p1
#%patch2 -p1 -b .docbook_fixes

%build
export QTDIR=/usr/lib/qt4
cmake . -DCMAKE_INSTALL_PREFIX=/usr
%{make} %{?_smp_mflags}

%install
%{rm} -rf %{buildroot}
make install DESTDIR=%{buildroot}

# Desktop.
desktop-file-install --vendor="" \

--dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \
$RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop

desktop-file-install --vendor="" \

--dir=$RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
--add-category=Development \

$RPM_BUILD_ROOT%{_datadir}/applications/kde4/kdiff3.desktop

# locale's

#%find_lang %{name} #%find_lang %{name}plugin
touch %{name}.lang
touch %{name}.lang

#cat %{name}plugin.lang >> %{name}.lang

%clean
%{rm} -rf %{buildroot}

%post

touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/locolor
:
:

%posttrans

gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null gtk-update-icon-cache %{_datadir}/iconslocolor &> /dev/null
:
:

update-desktop-database -q &> /dev/null

%postun
if [ $1 -eq 0 ] ; then

touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/locolor gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor 2> /dev/null gtk-update-icon-cache --quiet %{_datadir}/icons/icons/locolor 2> /dev/null
:
:
:
:

update-desktop-database -q &> /dev/null

fi

%files
%doc AUTHORS ChangeLog? COPYING NEWS README TODO
%{_bindir}/kdiff3
%{_datadir}/applications/*
%{_datadir}/doc/HTML/*
%{_datadir}/kde4/apps/*
%{_datadir}/kde4/services/*
%{_datadir}/icons/hicolor/*
%{_datadir}/icons/locolor/*
%{_datadir}/locale/*
%{_libdir}/kde4/*

%changelog

  • Tue Sep 20 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.9.96-1
  • new upstream release
  • refreshed patch0
  • dropt patch1,2
  • added BuildRequires?: libX11-devel
  • Sat May 15 2011 Yoji TOYODA <bsyamato@…> - 0.9.95-4
  • add BuildRequires?: soprano-devel
  • Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@…> - 0.9.95-3
  • added Patch2 from FC
    • Tue Jul 13 2010 Rex Dieter <rdieter@…> - 0.9.95-5
    • ftbfs against kde-4.5 (pre)releases
  • Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@…> - 0.9.95-2
  • fixed BR to build on Vine Linux 5
  • Thu Aug 5 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.9.95-1
  • initial build for VineSeed
  • Fri Nov 21 2008 Joachim Eibl - 0.9.94-1
  • Untested changes for KDE4.
  • Mon May 15 2006 Vadim Likhota <vadim-lvv@…> - 0.9.90-1.fc
  • write spec for fc/rhel/centos/asp for kdiff3
Line 
1Name: kdiff3
2Summary: Tool for Comparison and Merge of Files and Directories
3Summary(ja): ファイルやディレクトリの比較/マージを行うツール
4Version: 0.9.96
5Release: 1%{?_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
16#Patch1:                kdiff3part.rc.diff
17# fix build against kde-4.5 (pre)releases
18#Patch2:                kdiff3-0.9.95-docbook_fixes.patch     
19
20BuildRoot: %{_tmppath}/%{name}-%{version}-root
21
22BuildRequires: desktop-file-utils
23BuildRequires: cmake
24BuildRequires: gettext
25BuildRequires: libICE-devel
26BuildRequires: libXau-devel
27BuildRequires: libXext-devel
28BuildRequires: libXdmcp-devel
29BuildRequires: libXft-devel
30BuildRequires: libXpm-devel
31BuildRequires: kdelibs4-devel >= 4.1
32BuildRequires: kdebase4-devel
33BuildRequires: phonon-devel
34BuildRequires: qt4-devel >= 4.4
35BuildRequires: openssl-devel
36BuildRequires: soprano-devel
37BuildRequires: libX11-devel
38Requires: kdelibs4 > 4.1
39
40%description
41Shows the differences line by line and character by character (!).
42Provides an automatic merge-facility and
43an integrated editor for comfortable solving of merge-conflicts.
44Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
45Unicode & 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
54export QTDIR=/usr/lib/qt4
55cmake . -DCMAKE_INSTALL_PREFIX=/usr
56%{__make} %{?_smp_mflags}
57
58%install
59%{__rm} -rf %{buildroot}
60make install DESTDIR=%{buildroot}
61
62# Desktop.
63desktop-file-install --vendor="" \
64    --dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \
65    $RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop
66
67desktop-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
81touch --no-create %{_datadir}/icons/hicolor || :
82touch --no-create %{_datadir}/icons/locolor || :
83
84%posttrans
85gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
86gtk-update-icon-cache %{_datadir}/icons//locolor &> /dev/null || :
87update-desktop-database -q &> /dev/null
88
89%postun
90if [ $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
96fi
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
Note: See TracBrowser for help on using the repository browser.