Blame SPECS/kate.spec

326678
Name:    kate
326678
Summary: Advanced Text Editor
326678
Version: 4.10.5
326678
Release: 6%{?dist}
326678
326678
# kwrite LGPLv2+
326678
# kate: app LGPLv2, plugins, LGPLv2 and LGPLv2+ and GPLv2+
326678
# ktexteditor: LGPLv2
326678
# katepart: LGPLv2
326678
License: LGPLv2 and LGPLv2+ and GPLv2+
326678
URL:     https://projects.kde.org/projects/kde/kdebase/kate
326678
%global revision %(echo %{version} | cut -d. -f3)
326678
%if %{revision} >= 50
326678
%global stable unstable
326678
%else
326678
%global stable stable
326678
%endif
326678
Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
326678
326678
# upstream patches
326678
Patch0:  kate-4.10.5-properly-remove-composed-characters.patch
326678
Patch1:  kate-allow-to-save-files-in-readonly-directory.patch
326678
326678
BuildRequires: desktop-file-utils
326678
BuildRequires: kactivities-devel >= %{version}
326678
BuildRequires: kdelibs4-devel >= %{version}
326678
# pate (kate python plugin support), not enabled yet...
326678
# largely due to circular deps (pykde4 Requires: kate-part)
326678
#BuildRequires: pykde4-devel >= %{version}
326678
BuildRequires: pkgconfig(QJson)
326678
326678
Requires: kde-runtime >= 4.10.5
326678
Requires: %{name}-part%{?_isa} = %{version}-%{release}
326678
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
326678
326678
%description
326678
%{summary}.
326678
326678
%package devel
326678
Summary:  Development files for %{name}
326678
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
326678
Requires: kdelibs4-devel
326678
%description devel
326678
%{summary}.
326678
326678
%package libs
326678
Summary:  Runtime files for %{name}
326678
# when split occurred
326678
Obsoletes: kdesdk-libs < 4.6.95-10
326678
Requires: %{name} = %{version}-%{release}
326678
%description libs
326678
%{summary}.
326678
326678
%package part
326678
Summary: Kate kpart plugin
326678
License: LGPLv2
326678
# when split occurred
326678
Conflicts: kdelibs < 6:4.6.95-10
326678
# katesyntaxhighlightingrc conflicts with kdelibs3, see http://bugzilla.redhat.com/883529
326678
Conflicts: kdelibs3 < 3.5.10-40
326678
%description part
326678
%{summary}.
326678
326678
%package -n kwrite
326678
Summary: Text Editor
326678
License: LGPLv2+
326678
# when split occurred
326678
Conflicts: kdebase < 6:4.6.95-10
326678
Requires: %{name}-part%{?_isa} = %{version}-%{release}
326678
Requires: kde-runtime >= 4.10.5
326678
%description -n kwrite
326678
%{summary}.
326678
326678
326678
%prep
326678
%setup -q
326678
326678
%patch0 -p1 -b .properly-remove-composed-characters
326678
%patch1 -p1 -b .allow-to-save-files-in-readonly-directory
326678
326678
%build
326678
mkdir -p %{_target_platform}
326678
pushd %{_target_platform}
326678
%{cmake_kde4} ..
326678
popd
326678
326678
make %{?_smp_mflags} -C %{_target_platform}
326678
326678
326678
%install
326678
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
326678
326678
%find_lang kate --with-kde --without-mo
326678
%find_lang kwrite --with-kde --without-mo
326678
326678
# move devel symlinks (that would otherwise conflict with kdelibs3-devel)
326678
mkdir -p %{buildroot}%{_kde4_libdir}/kde4/devel
326678
pushd %{buildroot}%{_kde4_libdir}
326678
for i in lib*.so
326678
do
326678
  case "$i" in
326678
    libkate*interfaces.so)
326678
      linktarget=`readlink "$i"`
326678
      rm -f "$i"
326678
      ln -sf "../../$linktarget" "kde4/devel/$i"
326678
      ;;
326678
  esac
326678
done
326678
popd
326678
326678
# fix documentation multilib conflict in index.cache
326678
for f in kate kwrite ; do
326678
   bunzip2 %{buildroot}%{_kde4_docdir}/HTML/en/$f/index.cache.bz2
326678
   sed -i -e 's!name="id[a-z]*[0-9]*"!!g' %{buildroot}%{_kde4_docdir}/HTML/en/$f/index.cache
326678
   sed -i -e 's!#id[a-z]*[0-9]*"!!g' %{buildroot}%{_kde4_docdir}/HTML/en/$f/index.cache
326678
   bzip2 -9 %{buildroot}%{_kde4_docdir}/HTML/en/$f/index.cache
326678
done
326678
326678
%check
326678
for f in %{buildroot}%{_kde4_datadir}/applications/kde4/*.desktop ; do
326678
  desktop-file-validate $f
326678
done
326678
326678
326678
%post
326678
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
326678
326678
%posttrans
326678
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
326678
update-mime-database %{_kde4_datadir}/mime >& /dev/null
326678
326678
%postun
326678
if [ $1 -eq 0 ] ; then
326678
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
326678
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
326678
update-mime-database %{_kde4_datadir}/mime >& /dev/null
326678
fi
326678
326678
%files -f kate.lang
326678
%doc kate/AUTHORS kate/ChangeLog kate/COPYING.LIB kate/README
326678
%{_kde4_bindir}/kate
326678
%{_kde4_libdir}/libkdeinit4_kate.so
326678
%{_kde4_datadir}/applications/kde4/kate.desktop
326678
%{_kde4_appsdir}/kate/
326678
%{_kde4_appsdir}/katexmltools/
326678
%{_kde4_appsdir}/kconf_update/kate*.upd
326678
%{_kde4_iconsdir}/hicolor/*/*/*
326678
%{_mandir}/man1/kate.1.gz
326678
%{_kde4_configdir}/katerc
326678
%{_kde4_datadir}/kde4/services/kate*.desktop
326678
%{_kde4_libdir}/kde4/kate*plugin.so
326678
%{_kde4_libdir}/kde4/katefiletemplates.so
326678
%{_kde4_appsdir}/ktexteditor_*/
326678
%{_kde4_datadir}/kde4/services/ktexteditor_*.desktop
326678
%{_kde4_libdir}/kde4/ktexteditor_*.so
326678
%{_kde4_datadir}/kde4/services/plasma-applet-katesession.desktop
326678
%{_kde4_datadir}/kde4/servicetypes/kateplugin.desktop
326678
%{_kde4_libdir}/kde4/plasma_applet_katesession.so
326678
%{_kde4_libdir}/kde4/kate_kttsd.so
326678
%{_kde4_iconsdir}/oxygen/*/actions/*
326678
326678
%post libs -p /sbin/ldconfig
326678
%postun libs -p /sbin/ldconfig
326678
326678
%files libs
326678
%{_kde4_libdir}/libkateinterfaces.so.4*
326678
326678
%files devel
326678
%{_kde4_libdir}/kde4/devel/libkateinterfaces.so
326678
%{_kde4_libdir}/kde4/devel/libkatepartinterfaces.so
326678
%{_kde4_includedir}/kate_export.h
326678
%{_kde4_includedir}/kate/
326678
326678
%post part -p /sbin/ldconfig
326678
%postun part -p /sbin/ldconfig
326678
326678
%files part
326678
%doc part/AUTHORS part/ChangeLog part/COPYING.LIB
326678
%doc part/INDENTATION part/NEWS part/README* part/TODO*
326678
%{_kde4_libdir}/kde4/katepart.so
326678
%{_kde4_libdir}/libkatepartinterfaces.so.4*
326678
%{_kde4_appsdir}/katepart/
326678
%{_kde4_configdir}/katemoderc
326678
%{_kde4_configdir}/kateschemarc
326678
%{_kde4_configdir}/katesyntaxhighlightingrc
326678
%{_kde4_configdir}/ktexteditor_codesnippets_core.knsrc
326678
%{_kde4_datadir}/kde4/services/katepart.desktop
326678
326678
%files -n kwrite -f kwrite.lang
326678
%{_kde4_bindir}/kwrite
326678
%{_kde4_appsdir}/kwrite
326678
%{_kde4_libdir}/libkdeinit4_kwrite.so
326678
%{_kde4_datadir}/applications/kde4/kwrite.desktop
326678
326678
#files pate
326678
#{python_sitearch}/PyKate4/
326678
#{_kde4_libdir}/kde4/pateplugin.so
326678
#%{_kde4_datadir}/kde4/services/pate.desktop
326678
326678
326678
%changelog
326678
* Wed Feb 07 2018 Jan Grulich <jgrulich@redhat.com> - 4.10.5-6
326678
- Do not forget to truncate files in write protected folders
326678
  Resolves: bz#1382541
326678
326678
* Mon Oct 16 2017 Jan Grulich <jgrulich@redhat.com> - 4.10.5-5
326678
- Allow to save files in readonly directories
326678
  Resolves: bz#1382541
326678
326678
* Tue May 17 2016 Jan Grulich <jgrulich@redhat.com> - 4.10.5-4
326678
- Properly remove composed characters
326678
  Resolves: bz#1037962
326678
326678
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.10.5-3
326678
- Mass rebuild 2014-01-24
326678
326678
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.10.5-2
326678
- Mass rebuild 2013-12-27
326678
326678
* Sun Jun 30 2013 Than Ngo <than@redhat.com> - 4.10.5-1
326678
- 4.10.5
326678
326678
* Sat Jun 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.4-1
326678
- 4.10.4
326678
326678
* Mon May 06 2013 Than Ngo <than@redhat.com> - 4.10.3-1
326678
- 4.10.3
326678
326678
* Thu Apr 04 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.2-2
326678
- -libs: Obsoletes: kdesdk-libs (instead of Conflicts)
326678
326678
* Sun Mar 31 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.2-1
326678
- 4.10.2
326678
326678
* Tue Mar 19 2013 Than Ngo <than@redhat.com> - 4.10.1-3
326678
- backport to fix python indentation mode
326678
326678
* Tue Mar 19 2013 Than Ngo <than@redhat.com> - 4.10.1-2
326678
- Fix documentation multilib conflict in index.cache
326678
326678
* Sat Mar 02 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.1-1
326678
- 4.10.1
326678
326678
* Fri Feb 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.0-1
326678
- 4.10.0
326678
326678
* Sun Jan 20 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.98-1
326678
- 4.9.98
326678
326678
* Fri Jan 04 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.97-1
326678
- 4.9.97
326678
326678
* Thu Dec 20 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.95-1
326678
- 4.9.95
326678
326678
* Tue Dec 04 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.90-2
326678
- kate has a file conflict with kdelibs3 (#883529)
326678
326678
* Mon Dec 03 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.90-1
326678
- 4.9.90 (4.10 beta2)
326678
326678
* Mon Dec 03 2012 Than Ngo <than@redhat.com> - 4.9.4-1
326678
- 4.9.4
326678
326678
* Sat Nov 03 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.3-1
326678
- 4.9.3
326678
326678
* Fri Sep 28 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.2-1
326678
- 4.9.2
326678
326678
* Mon Sep 03 2012 Than Ngo <than@redhat.com> - 4.9.1-1
326678
- 4.9.1
326678
326678
* Thu Jul 26 2012 Lukas Tinkl <ltinkl@redhat.com> - 4.9.0-1
326678
- 4.9.0
326678
326678
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.97-2
326678
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
326678
326678
* Wed Jul 11 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.97-1
326678
- 4.8.97
326678
326678
* Wed Jun 27 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.95-1
326678
- 4.8.95
326678
326678
* Sat Jun 09 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.90-1
326678
- 4.8.90
326678
326678
* Fri Jun 01 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.80-2
326678
- respin
326678
326678
* Sat May 26 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.80-1
326678
- 4.8.80
326678
326678
* Mon Apr 30 2012 Rex Dieter <rdieter@fedoraproject.org> 4.8.3-2
326678
- s/kdebase-runtime/kde-runtime/
326678
326678
* Mon Apr 30 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.3-1
326678
- 4.8.3
326678
326678
* Fri Mar 30 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.2-1
326678
- 4.8.2
326678
326678
* Mon Mar 05 2012 Radek Novacek <rnovacek@redhat.com> - 4.8.1-1
326678
- 4.8.1
326678
326678
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.0-2
326678
- Rebuilt for c++ ABI breakage
326678
326678
* Fri Jan 20 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.0-1
326678
- 4.8.0
326678
326678
* Wed Jan 04 2012 Radek Novacek <rnovacek@redhat.com> - 4.7.97-1
326678
- 4.7.97
326678
326678
* Wed Dec 21 2011 Radek Novacek <rnovacek@redhat.com> - 4.7.95-1
326678
- 4.7.95
326678
326678
* Sun Dec 04 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.90-1
326678
- 4.7.90
326678
326678
* Thu Nov 24 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.80-1
326678
- 4.7.80 (beta 1)
326678
326678
* Sat Oct 29 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.3-1
326678
- 4.7.3
326678
326678
* Tue Oct 04 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.2-1
326678
- 4.7.2
326678
326678
* Wed Sep 07 2011 Than Ngo <than@redhat.com> - 4.7.1-1
326678
- 4.7.1
326678
326678
* Thu Jul 28 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.0-2
326678
- -part: move %%_kde4_appsdir/katepart/ here
326678
326678
* Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
326678
- 4.7.0
326678
326678
* Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
326678
- first try
326678