File kde3-klatexformula.spec of Package kde3-klatexformula

# Spec file for KLatexFormula
Name:           kde3-klatexformula
Version:        2.1.1
Release:        1.1
License:        GPL-2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  kdelibs3-devel texlive gs libstdc++-devel qt3-devel automake autoconf texlive-latex 
%if %suse_version>1230
BuildRequires:  texlive-dvips
%else
BuildRequires:  texlive-bin
%endif
Group:          Productivity/Publishing/TeX/Utilities
Summary:        A KDE Application to easily create an image from a LaTeX equation
Source: klatexformula-%{version}.tar.gz
Requires: texlive-latex gs
%if %suse_version>1230
Requires:  texlive-dvips
%else
Requires:  texlive-bin
%endif
Patch0:         klatexformula-deprecate-update-desktop-files.patch
%define kde_path /opt/kde3

%description
This KDE application is especially designed for generating an image
(e.g. PNG) from a LaTeX equation, this using a nice GUI. Support for
Copy-Paste, Save as image/pdf/ps and drag-and-drop is included. In
addition to supporting a whole GUI-based user interface, this package
includes the library KLFBackend to integrate KLatexFormula functionality
into your programs.

%prep
%setup -q -n klatexformula-%{version}
%patch -P 0 -p1

%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --program-prefix= --prefix=%kde_path --sysconfdir=/etc --disable-debug
make

%install
%makeinstall
mkdir -p %{buildroot}/opt/kde3/share/applications
%__mv %{buildroot}/opt/kde3/share/applnk/Utilities/klatexformula.desktop %{buildroot}/opt/kde3/share/applications/

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{kde_path}/bin/*
%{kde_path}/share/apps/klatexformula
%{kde_path}/share/applications/*
%{kde_path}/share/icons/*/*/*/*
%{kde_path}/share/locale/*/*/*
%{kde_path}/share/doc/HTML/*/*
%{kde_path}/include/*
%{kde_path}/lib*/*
#%{kde_path}/*

%changelog
openSUSE Build Service is sponsored by