kbibtex/kbibtex.spec
Cor Blom eaeb6b712f Accepting request 1121455 from home:cornelisbb:branches:KDE:Extra
- Remove the rpaths that rpmlint complains about

- The devel package is of no use to anyone, so do not have one and
  remove the devel files

- Update to version 0.10.0:
  * New online search: Semantic Scholar
  * Fixing and revamping ACM's Digital Library (a.k.a. ACM Portal)
    online search
  * Tabs in the entry editor can show short messages to use, e.g.
    in which tab DOIs or URLs are to be entered
  * Fixing missing <bibliography> tag in XML export
  * Fix: Can't associate a file with a relative path without having
    the file copied (kde#424033)
  * Fix: When formatting IDs, non-word characters should be used as
    word separators (kde#423976)
  * Fix: Cannot unselect entry list view columns in BibLaTeX mode
    (kde#433005)
  * Fixing crash when opening .bib file (kde#433084, kde#453455)
  * And many other smaller fixes and changes in the code, generally
    not visible to the user
- BuildRequires: cmake(Qt5Network) --> cmake(Qt5NetworkAuth)
- Update file list

OBS-URL: https://build.opensuse.org/request/show/1121455
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kbibtex?expand=0&rev=61
2023-10-31 14:23:05 +00:00

127 lines
4.0 KiB
RPMSpec

#
# spec file for package kbibtex
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%bcond_without lang
Name: kbibtex
Version: 0.10.0
Release: 0
Summary: The BibTeX (Latex) bibliography manager by KDE
License: GPL-2.0-only
Group: Productivity/Publishing/TeX/Utilities
URL: https://apps.kde.org/nl/kbibtex/
Source: https://download.kde.org/stable/KBibTeX/%{version}/%{name}-%{version}.tar.xz
BuildRequires: chrpath
BuildRequires: extra-cmake-modules
BuildRequires: libicu-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: libqca-qt5-devel
BuildRequires: qoauth-qt5-devel
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5CoreAddons) >= 5.51.0
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5ItemViews)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Parts)
BuildRequires: cmake(KF5Service)
BuildRequires: cmake(KF5TextEditor)
BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5NetworkAuth)
BuildRequires: cmake(Qt5Test)
# Only include WebEngine for platforms that support it
%ifarch %{ix86} x86_64 %{arm} aarch64 mips mips64
BuildRequires: cmake(Qt5WebEngineWidgets)
%endif
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5XmlPatterns)
Requires(post): desktop-file-utils
Requires(post): shared-mime-info
Requires(postun):desktop-file-utils
Requires(postun):shared-mime-info
%description
KBibTeX is a BibTeX editor by 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.
%lang_package
%prep
%autosetup -n %{name}-%{version}
%build
%cmake_kf5 -d build
%cmake_build
%install
%make_install -C build
%suse_update_desktop_file -r org.kde.kbibtex Qt KDE Office Database Science DataVisualization Education
# Remove all devel files, they are not needed
rm -rf %{buildroot}/%{_includedir}/KBibTeX
rm -rf %{buildroot}/%{_kf5_libdir}/libkbibtex*.so
rm -rf %{buildroot}/%{_kf5_libdir}/cmake/KBibTeX
# Remove the rpaths that rpmlint complains about
# According to https://en.opensuse.org/openSUSE:Packaging_checks
# this is a last resort option, but I don't know any other
chrpath -d %{buildroot}/%{_kf5_bindir}/kbibtex
chrpath -d %{buildroot}%{_kf5_libdir}/libkbibtex*.so.*
chrpath -d %{buildroot}%{_kf5_plugindir}/kbibtexpart.so*
%if %{with lang}
%find_lang %{name}
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc ChangeLog
%license LICENSE
%dir %{_kf5_appstreamdir}
%{_kf5_applicationsdir}/org.kde.kbibtex.desktop
%{_kf5_appstreamdir}/org.kde.kbibtex.appdata.xml
%{_kf5_bindir}/kbibtex
%{_kf5_htmldir}/*/kbibtex/
%{_kf5_iconsdir}/hicolor/*/apps/kbibtex.png
%{_kf5_kxmlguidir}/kbibtex/
%{_kf5_kxmlguidir}/kbibtexpart/
%{_kf5_libdir}/libkbibtex*.so.*
%{_kf5_plugindir}/kbibtexpart.so*
%{_kf5_servicesdir}/kbibtexpart.desktop
%{_kf5_sharedir}/kbibtex/
%{_kf5_sharedir}/man/man1/kbibtex.1.gz
%{_kf5_sharedir}/man/*/man1/kbibtex.1.gz
%{_kf5_sharedir}/mime/packages/bibliography.xml
%{_kf5_sharedir}/qlogging-categories5/kbibtex.categories
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog