[klatexformula] Update to 3.2.0

nucleo nucleo at fedoraproject.org
Wed Sep 29 19:02:32 UTC 2010


commit de612c6423bb3f870bd2adcdf563cae8c3c8b4c8
Author: nucleo <nucleo at fedoraproject.org>
Date:   Wed Sep 29 22:02:33 2010 +0300

    Update to 3.2.0

 .gitignore         |    1 +
 klatexformula.spec |   76 +++++++++++++++++++++++++++++++++++++++++++++-------
 sources            |    2 +-
 3 files changed, 68 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 861b814..ee46f5c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 klatexformula-3.1.2.tar.gz
+/klatexformula-3.2.0.tar.gz
diff --git a/klatexformula.spec b/klatexformula.spec
index 0c1f83a..60dd7d3 100644
--- a/klatexformula.spec
+++ b/klatexformula.spec
@@ -1,5 +1,5 @@
 Name:             klatexformula
-Version:          3.1.2
+Version:          3.2.0
 Release:          1%{?dist}
 Summary:          Application for easy image creating from a LaTeX equation
 Group:            Applications/Publishing
@@ -7,7 +7,7 @@ License:          GPLv2+
 URL:              http://klatexformula.sourceforge.net/
 Source0:          http://downloads.sourceforge.net/klatexformula/%{name}-%{version}.tar.gz
 BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:    qt4-devel
+BuildRequires:    kdelibs-devel
 BuildRequires:    desktop-file-utils
 Requires:         texlive-latex
 Requires:         hicolor-icon-theme
@@ -22,11 +22,30 @@ a few options. You can use KLatexFormula in command-line mode
 (eg. for scripts) by invoking klatexformula_cmdl executable.
 Type klatexformula_cmdl --help for more information.
 
+%package devel
+Summary:          Development files for %{name}
+Group:            Development/Libraries
+Requires:         %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package ktexteditor-plugin
+Summary:          KLatexFormula integration into KDE4's text editor
+Group:            Applications/Publishing
+Requires:         texlive-latex
+Requires:         %{name} = %{version}-%{release}
+%{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}}
+
+%description ktexteditor-plugin
+KLatexFormula integration into KDE4's text editor.
+
 %package -n libklfbackend
 Summary:          Library for integration KLatexFormula functionality
 Group:            System Environment/Libraries
 %description -n libklfbackend
-Tthis package includes the library KLFBackend to integrate
+This package includes the library KLFBackend to integrate
 KLatexFormula functionality into your programs.
 
 %package -n libklfbackend-devel
@@ -40,24 +59,39 @@ Development files for the libklfbackend.
 %setup -q
 
 %build
-%{_qt4_qmake} QMAKE=%{_qt4_qmake} BACKEND_INSTALLLIBDIR=%{_libdir} INSTALLPREFIX=%{_prefix} BACKEND_SHAREDORSTATIC=dll
-make %{?_smp_mflags}
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake_kde4} \
+        -DCMAKE_SKIP_RPATH=ON \
+        -DKLF_LIBKLFAPP_STATIC=OFF \
+        -DKLF_LIBKLFBACKEND_STATIC=OFF \
+        -DKLF_LIBKLFTOOLS_STATIC=OFF \
+        -DKLF_INSTALL_SHARE_PIXMAPS_DIR="" \
+        ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot} -C %{_target_platform}
 
-make install INSTALL_ROOT=$RPM_BUILD_ROOT
 
 %check
 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %post
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime &> /dev/null || :
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime &> /dev/null || :
 if [ $1 -eq 0 ] ; then
     touch --no-create %{_datadir}/icons/hicolor &>/dev/null
     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
@@ -75,9 +109,28 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %doc AUTHORS COPYING README
 %{_bindir}/%{name}
 %{_bindir}/%{name}_cmdl
+%{_libdir}/libklfapp.so.*
+%{_libdir}/libklftools.so.*
 %{_datadir}/%{name}
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_datadir}/mime/packages/klatexformula-mime.xml
+
+%files ktexteditor-plugin
+%defattr(-,root,root,-)
+%doc README
+%{_kde4_libdir}/kde4/ktexteditor_klf.so
+%{_kde4_appsdir}/ktexteditor_klf
+%{_kde4_datadir}/kde4/services/ktexteditor_klf.desktop
+%{_kde4_datadir}/kde4/services/ktexteditor_klf_config.desktop
+
+%files devel
+%defattr(-,root,root,-)
+%doc README
+%{_libdir}/libklfapp.so
+%{_libdir}/libklftools.so
+%{_includedir}/klfapp
+%{_includedir}/klftools
 
 %files -n libklfbackend
 %defattr(-,root,root,-)
@@ -88,10 +141,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %defattr(-,root,root,-)
 %doc README
 %{_libdir}/libklfbackend.so
-%{_includedir}/klfblockprocess.h
-%{_includedir}/klfbackend.h
+%{_includedir}/klfbackend
 
 %changelog
+* Wed Sep 29 2010 Alexey Kurov <nucleo at fedoraproject.org> - 3.2.0-1
+- update to 3.2.0
+- added devel and ktexteditor-plugin subpackages
+
 * Sun Nov 22 2009 Alexey Kurov <nucleo at fedoraproject.org> - 3.1.2-1
 - update to 3.1.2
 
diff --git a/sources b/sources
index f0a8df4..4febf67 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fd6a88eb6b6e2d3845657c13919d2cd3  klatexformula-3.1.2.tar.gz
+af2cd48445fb359a3b9f284eff435e85  klatexformula-3.2.0.tar.gz


More information about the scm-commits mailing list