kbibtex/kbibtex.spec

109 lines
3.4 KiB
RPMSpec

#
# spec file for package kbibtex
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _day 20131216
Name: kbibtex
Version: 0.6
Release: 1
License: GPL-2.0
Summary: The BibTeX (Latex) bibliography manager for KDE
Url: http://home.gna.org/kbibtex/
Group: Productivity/Publishing/TeX/Utilities
Source: http://download.gna.org/kbibtex/%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM - module-soversion.patch - Modules shall not be soversioned - https://bugs.kde.org/351455
Patch0: module-soversion.patch
BuildRequires: libkde4-devel
BuildRequires: libpoppler-qt4-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libqca2-devel
BuildRequires: update-desktop-files
Requires(post): shared-mime-info
Requires(post): desktop-file-utils
Requires(postun): shared-mime-info
Requires(postun): desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%package devel
Summary: Devel Files for %{name}
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
%description devel
This package contains the devel files for %{name}.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%build
%cmake_kde4 -d build
make %{?_smp_mflags}
%install
cd build
%make_install
mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/{16x16,22x22,32x32,48x48,64x64,128x128}/apps
for i in 16 22 32 48 64 128; do
install -m 0644 ../icons/hi${i}-app-kbibtex.png %{buildroot}%{_kde4_iconsdir}/hicolor/${i}x${i}/apps/kbibtex.png
done
%suse_update_desktop_file kbibtex Office Database
%suse_update_desktop_file %{buildroot}/%{_kde4_servicesdir}/kbibtexpart.desktop Office Database
%kde_post_install
%post
/sbin/ldconfig
%mime_database_post
%desktop_database_post
%postun
/sbin/ldconfig
%mime_database_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%dir %{_kde4_datadir}/appdata
%doc %lang(en) %{_kde4_htmldir}/en/kbibtex
%{_kde4_applicationsdir}/kbibtex.desktop
%{_kde4_appsdir}/kbibtex/
%{_kde4_appsdir}/kbibtexpart/
%{_kde4_bindir}/kbibtex
%{_kde4_configdir}/kbibtexrc
%{_kde4_datadir}/appdata/*
%{_kde4_datadir}/mime/packages/bibliography.xml
%{_kde4_libdir}/*.so.*
%{_kde4_iconsdir}/hicolor/*/apps/kbibtex.png
%{_kde4_mandir}/man1/kbibtex.1.gz
%{_kde4_modulesdir}/kbibtexpart.so
%{_kde4_servicesdir}/kbibtexpart.desktop
%files devel
%defattr(-,root,root)
%{_kde4_includedir}/*
%{_kde4_libdir}/*.so
%changelog