File cb2bib.spec of Package cb2bib

Name: cb2bib
Summary: From clipboard to BibTeX: Bibliographic Reference Extracting and Managing Tool
Version: 2.0.1
Release: 1
License: GPL-3.0
Group: Productivity/Publishing/TeX/Utilities
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/build-root-%{name}
Prefix: /usr
Url: https://www.molspaces.com/cb2bib

BuildRequires: pkgconfig(Qt5Core) >= 5.7.0
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5WebKit)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
Requires: pkgconfig(Qt5Core) >= 5.7.0
Requires: pkgconfig(Qt5Gui)
Requires: pkgconfig(Qt5Widgets)
Requires: pkgconfig(Qt5Network)
Requires: pkgconfig(Qt5Xml)
Requires: pkgconfig(Qt5WebKit)
Requires: pkgconfig(Qt5WebKitWidgets)

%if 0%{?fedora_version} >= 5
BuildRequires: lz4-devel
Requires: poppler-utils
Requires: mathjax
%endif
%if 0%{?suse_version} > 10
BuildRequires: liblz4-devel
BuildRequires: update-desktop-files
Requires: poppler-tools
Requires: mathjax
%endif

%description
From clipboard to BibTeX: Bibliographic Reference Extracting and Managing Tool.

cb2Bib facilitates the capture of single references from standard and non
standard sources, manages BibTeX collections, and boosts citing and writing
short notes that interrelate several references.

PDF articles are easily linked and searchable in full contents, automatically
indexed by extracted key sentences, and flagged with inserted bibliographic
metadata.

%global debug_package %{nil}

%prep
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
cd $RPM_BUILD_ROOT

%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix %{prefix}
make -j 1

%install
make INSTALL_ROOT=$RPM_BUILD_ROOT/ install
%if 0%{?suse_version} > 1010
%suse_update_desktop_file -n %name Office WordProcessor
%suse_update_desktop_file -n c2bciter Office WordProcessor
%suse_update_desktop_file -n c2bimport Office WordProcessor
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{prefix}/bin/cb2bib
%{prefix}/bin/c2bciter
%{prefix}/bin/c2bimport
%{prefix}/share/applications/cb2bib.desktop
%{prefix}/share/applications/c2bciter.desktop
%{prefix}/share/applications/c2bimport.desktop
%{prefix}/share/pixmaps/cb2bib.png
%{prefix}/share/cb2bib
openSUSE Build Service is sponsored by