opensuse sleap42/kde5 spec files

This commit is contained in:
Jean-Francois Dockes 2016-04-05 11:26:12 +02:00
parent 4043485cf9
commit 3ccd1fa8a4
2 changed files with 194 additions and 0 deletions

View File

@ -0,0 +1,71 @@
#
# spec file for package kio_recoll
#
# Copyright (c) 2013 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 rname recoll
Name: kio_recoll
Version: 1.21.6
Release: 0
Summary: Extended Search
License: GPL-2.0+
Summary: KIO slave for the Recoll full text search tool
Group: Productivity/Text/Utilities
Url: http://www.lesbonscomptes.com/recoll/
Source: http://www.lesbonscomptes.com/recoll/%{rname}-%{version}.tar.gz
BuildRequires: kio-devel
BuildRequires: libxapian-devel
BuildRequires: recoll = %{version}
Requires: recoll = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Recoll is a personal full text search tool for Unix/Linux.
This package provides the kio-slave
%prep
%setup -q -n %{rname}-%{version}
%build
cd kde/kioslave/kio_recoll
%cmake_kde4 -d build
%make_jobs
%install
pushd kde/kioslave/kio_recoll
%kde4_makeinstall -C build
%files
%defattr(-,root,root)
%{_libdir}/qt5/plugins/kio_recoll.so
%{_datadir}/kio_recoll/
%{_datadir}/kservices5/*.protocol
%changelog
* Tue Apr 05 2016 Jean-Francois Dockes <jfd@recoll.org> 1.21.6-0
- Partial port to kde5 : works with Dolphin. Need kde4 version for
Konqueror
* Sun Mar 18 2012 Jean-Francois Dockes <jfd@recoll.org> 1.17.0-0
- 1.17.0
* Mon May 02 2011 Jean-Francois Dockes <jfd@recoll.org> 1.16.2-0
- 1.16.2
* Mon May 02 2011 Jean-Francois Dockes <jfd@recoll.org> 1.15.8-0
- 1.15.8
* Sun Mar 06 2011 Jean-Francois Dockes <jfd@recoll.org> 1.15.5-0
- Initial spec file for kio

View File

@ -0,0 +1,123 @@
#
# spec file for package recoll
#
# Copyright (c) 2013 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 &quot;Open Source License&quot; 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/
#
Name: recoll
Version: 1.21.6
Release: 0
Summary: Extended Search
License: GPL-2.0+
Summary: Extended Search
Group: Productivity/Text/Utilities
Url: http://www.lesbonscomptes.com/recoll/
Source: http://www.lesbonscomptes.com/recoll/%{name}-%{version}.tar.gz
BuildRequires: aspell-devel
%if 0%{?suse_version} > 1320
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5WebKit)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
%else
BuildRequires: libQtWebKit-devel
BuildRequires: libqt4-devel
%endif
BuildRequires: bison
BuildRequires: libxapian-devel
BuildRequires: python-devel
BuildRequires: update-desktop-files
# Recommends for the helpers.
Recommends: antiword
Recommends: poppler-tools
Recommends: libwpd-tools
Recommends: libxslt
Recommends: catdoc
Recommends: djvulibre
Recommends: python-mutagen
Recommends: exiftool
Recommends: perl-Image-ExifTool
Recommends: python-base
Recommends: unrar
Recommends: python-rarfile
Recommends: python-PyCHM
Recommends: unrtf
Recommends: pstotext
# Default requires for recoll itself
Requires: sed
Requires: awk
Requires: aspell
Requires: python
Suggests: kio_recoll
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Recoll is a personal full text search tool for Unix/Linux.
It is based on the very strong Xapian back-end, for which it provides a feature-rich yet easy to use front-end with a QT graphical interface.
Recoll is free, open source, and licensed under the GPL. The current version is 1.12.0 .
Features:
* Easy installation, few dependencies. No database daemon, web server, desktop environment or exotic language necessary.
* Will run on most unix-based systems
* Qt-based GUI. Can use either Qt 3 or Qt 4.
* Searches most common document types, emails and their attachments.
* Powerful query facilities, with boolean searches, phrases, proximity, wildcards, filter on file types and directory tree.
* Multi-language and multi-character set with Unicode based internals.
* (more detail)
%prep
%setup -q
%build
%if 0%{?suse_version} > 1320
export QMAKE=qmake-qt5
%endif
%configure --with-inotify
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_libdir}/recoll
%dir %{_datadir}/appdata
%{_bindir}/recoll
%{_bindir}/recollindex
%{_datadir}/recoll
%{_datadir}/applications/recoll-searchgui.desktop
%{_datadir}/appdata/recoll.appdata.xml
%{_datadir}/icons/hicolor
%{_datadir}/pixmaps/recoll.png
%{_libdir}/recoll/librecoll.so.%{version}
%{_libdir}/python2.7/site-packages/recoll
%{_libdir}/python2.7/site-packages/Recoll-1.0-py2.7.egg-info
%{_mandir}/man1/recoll.1.gz
%{_mandir}/man1/recollq.1.gz
%{_mandir}/man1/recollindex.1.gz
%{_mandir}/man5/recoll.conf.5.gz
%changelog
* Tue Apr 05 2016 Jean-Francois Dockes <jfd@recoll.org> 1.21.6-0
- Recoll 1.21.6, esp. for the kde5 kio