2010-11-29 12:22:13 +00:00
|
|
|
#
|
2012-01-24 21:38:06 +00:00
|
|
|
# spec file for package kbibtex
|
2010-11-29 12:22:13 +00:00
|
|
|
#
|
2014-05-08 07:19:21 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-11-29 12:22:13 +00:00
|
|
|
#
|
2012-01-24 21:38:06 +00:00
|
|
|
# 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.
|
2010-11-29 12:22:13 +00:00
|
|
|
|
2012-01-24 21:38:06 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2013-12-24 20:59:09 +00:00
|
|
|
%define _day 20131216
|
2012-01-24 21:38:06 +00:00
|
|
|
|
|
|
|
Name: kbibtex
|
2015-08-19 11:49:30 +00:00
|
|
|
Version: 0.6
|
2012-01-24 21:38:06 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL-2.0
|
|
|
|
Summary: The BibTeX (Latex) bibliography manager for KDE
|
2012-09-23 12:46:20 +00:00
|
|
|
Url: http://home.gna.org/kbibtex/
|
2012-01-24 21:38:06 +00:00
|
|
|
Group: Productivity/Publishing/TeX/Utilities
|
2014-01-11 10:24:22 +00:00
|
|
|
Source: http://download.gna.org/kbibtex/%{version}/%{name}-%{version}.tar.xz
|
2015-08-19 11:49:30 +00:00
|
|
|
#Fixes kde#351455
|
|
|
|
Patch: module-soversion.patch
|
2012-01-24 21:38:06 +00:00
|
|
|
BuildRequires: libkde4-devel
|
|
|
|
BuildRequires: libpoppler-qt4-devel
|
2014-05-08 07:19:21 +00:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt-devel
|
2015-08-19 11:49:30 +00:00
|
|
|
BuildRequires: libqca2-devel
|
2012-01-24 21:38:06 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
Requires(postun): shared-mime-info
|
|
|
|
Requires(postun): desktop-file-utils
|
2012-07-06 16:10:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-29 12:22:13 +00:00
|
|
|
%kde4_runtime_requires
|
|
|
|
|
|
|
|
%description
|
2012-01-24 21:38:06 +00:00
|
|
|
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.
|
2010-11-29 12:22:13 +00:00
|
|
|
|
2013-12-24 20:59:09 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Devel Files for %{name}
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2014-01-11 10:24:22 +00:00
|
|
|
This package contains the devel files for %{name}.
|
2013-12-24 20:59:09 +00:00
|
|
|
|
2010-11-29 12:22:13 +00:00
|
|
|
%prep
|
2014-01-11 10:24:22 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2015-08-19 11:49:30 +00:00
|
|
|
%patch -p1
|
2010-11-29 12:22:13 +00:00
|
|
|
|
|
|
|
%build
|
2012-01-24 21:38:06 +00:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
make %{?_smp_mflags}
|
2010-11-29 12:22:13 +00:00
|
|
|
|
|
|
|
%install
|
2012-01-24 21:38:06 +00:00
|
|
|
cd build
|
|
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/{16x16,22x22,32x32,48x48,64x64,128x128}/apps
|
2010-11-29 12:22:13 +00:00
|
|
|
for i in 16 22 32 48 64 128; do
|
2012-01-24 21:38:06 +00:00
|
|
|
install -m 0644 ../icons/hi${i}-app-kbibtex.png %{buildroot}%{_kde4_iconsdir}/hicolor/${i}x${i}/apps/kbibtex.png
|
2010-11-29 12:22:13 +00:00
|
|
|
done
|
|
|
|
%suse_update_desktop_file kbibtex Office Database
|
2012-01-24 21:38:06 +00:00
|
|
|
%suse_update_desktop_file %{buildroot}/%{_kde4_servicesdir}/kbibtexpart.desktop Office Database
|
|
|
|
%kde_post_install
|
|
|
|
|
|
|
|
%post
|
2013-12-24 20:59:09 +00:00
|
|
|
/sbin/ldconfig
|
2012-01-24 21:38:06 +00:00
|
|
|
%mime_database_post
|
|
|
|
%desktop_database_post
|
2010-11-29 12:22:13 +00:00
|
|
|
|
2012-01-24 21:38:06 +00:00
|
|
|
%postun
|
2013-12-24 20:59:09 +00:00
|
|
|
/sbin/ldconfig
|
2012-01-24 21:38:06 +00:00
|
|
|
%mime_database_postun
|
|
|
|
%desktop_database_postun
|
2010-11-29 12:22:13 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-01-24 21:38:06 +00:00
|
|
|
%{_kde4_applicationsdir}/kbibtex.desktop
|
|
|
|
%{_kde4_appsdir}/kbibtex/
|
|
|
|
%{_kde4_appsdir}/kbibtexpart/
|
|
|
|
%{_kde4_bindir}/kbibtex
|
|
|
|
%config %{_kde4_configdir}/kbibtexrc
|
2012-07-06 16:10:35 +00:00
|
|
|
%{_datadir}/mime/packages/bibliography.xml
|
2015-08-19 11:49:30 +00:00
|
|
|
%{_kde4_libdir}/*.so.*
|
2012-01-24 21:38:06 +00:00
|
|
|
%{_kde4_iconsdir}/hicolor/*/apps/kbibtex.png
|
|
|
|
%{_kde4_mandir}/man1/kbibtex.1.gz
|
2015-08-19 11:49:30 +00:00
|
|
|
%{_kde4_modulesdir}/kbibtexpart.so*
|
2012-01-24 21:38:06 +00:00
|
|
|
%{_kde4_servicesdir}/kbibtexpart.desktop
|
2015-08-19 11:49:30 +00:00
|
|
|
%{_kde4_docdir}/HTML/en/%{name}
|
|
|
|
%{_kde4_docdir}/HTML/en/%{name}/*
|
|
|
|
%{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/*
|
2010-11-29 12:22:13 +00:00
|
|
|
|
2013-12-24 20:59:09 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
2015-08-19 11:49:30 +00:00
|
|
|
%{_kde4_libdir}/*.so
|
2013-12-24 20:59:09 +00:00
|
|
|
|
2011-06-06 14:30:31 +00:00
|
|
|
%changelog
|