kbibtex/kbibtex.spec

65 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package KBibtex kde4 version svn snapshot
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: kbibtex
Version: 424
Release: 1
License: GPL v2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libkde4-devel,update-desktop-files,libpoppler-qt4-devel
PreReq: permissions
Group: Productivity/Publishing/TeX/Utilities
Summary: The BibTeX (Latex) bibliography manager for KDE
URL: http://www.unix-ag.uni-kl.de/~fischer/kbibtex/
Source: %name-%version.tar.bz2
%kde4_runtime_requires
%description
KBibTeX is a BibTeX editor for KDE to edit bibliographies used with LaTeX. Features include comfortable input masks, starting web queries (e. g. Google or PubMed) and exporting to PDF, PostScript, RTF and XML/HTML. As KBibTeX is using KDE's KParts technology, KBibTeX can be embedded into Kile or Konqueror.
Authors:
--------
Thomas Fischer <thomas.fischer@t-fischer.net>
%prep
%setup -q -n %name-%version
%build
#mkdir build
#cd build
%cmake_kde4 -d build
%__make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
mkdir -p $RPM_BUILD_ROOT%_kde4_iconsdir/hicolor/{16x16,22x22,32x32,48x48,64x64,128x128}/apps
for i in 16 22 32 48 64 128; do
cp ../icons/hi${i}-app-kbibtex.png $RPM_BUILD_ROOT%_kde4_iconsdir/hicolor/${i}x${i}/apps/kbibtex.png
done
%suse_update_desktop_file kbibtex Office Database
%suse_update_desktop_file $RPM_BUILD_ROOT/%_kde4_sharedir/services/kbibtexpart.desktop Office Database
#%find_lang kbibtex
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%_kde4_bindir/*
%_kde4_libdir/*.so
%_kde4_modulesdir/*
%_kde4_iconsdir/hicolor
%_kde4_sharedir/apps
%_kde4_sharedir/services
%_kde4_applicationsdir/*
%changelog