File beagle.spec of Package beagle
#
# spec file for package beagle (Version 0.3.9)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: beagle
BuildRequires: art-sharp2 avahi-mono chmlib-devel desktop-data dos2unix epiphany-devel evolution-sharp fdupes gconf-sharp2 glade-sharp2 gmime-sharp gnome-sharp2 gsf-sharp intltool librsvg-devel mono-basic mono-data-sqlite mono-devel monodoc-core ndesk-dbus-glib-devel perl-XML-Parser shared-mime-info sqlite-devel taglib-sharp tango-icon-theme unzip update-desktop-files wv-devel xorg-x11-devel xorg-x11-libs zip
%ifnarch s390 s390x
BuildRequires: banshee-1-devel
BuildRequires: taglib-sharp-devel
%endif
%define prefix /usr
%define sysconfdir /etc/
License: Apache Software License .. ; MIT License (or similar)
Group: Productivity/Other
Version: 0.3.9
Release: 9.<RELEASE11>
Summary: Desktop Search Application
Url: http://beagle-project.org
Source: %{name}-%{version}.tar.bz2
Source1: system-search.png
# PATCH-FIX-OPENSUSE beagle-firefox-makefile.patch -- Install Firefox extension in the right spot for suse
Patch1: beagle-firefox-makefile.patch
# PATCH-FIX-UPSTREAM beagle-log-level.patch bgo582353 joeshaw@novell.com -- Turn down the default log verbosity
Patch3: beagle-log-level-warn.patch
# PATCH-FIX-OPENSUSE fix-desktop-files.diff bnc360676 maw@novell.com -- Should be removed when bug is fixed; this is just a bad rpmlint check
Patch7: fix-desktop-files.diff
# PATCH-FEATURE-OPENSUSE beagle-help-path.patch bnc310895 joeshaw@novell.com -- Search language bundle paths
Patch9: beagle-help-path.patch
# PATCH-FEATURE-UPSTREAM beagle-scale-results.patch bgo582354 -- Scale number of results based on window size
Patch10: beagle-scale-results.patch
# PATCH-FIX-UPSTREAM beagle-epiphany-version.patch maw@novell.com
Patch11: beagle-epiphany-version.patch
# PATCH-FEATURE-UPSTREAM beagle-banshee-support.patch bgo582356 abockover@novell.com -- Add BansheeQueryable support for indexing the Banshee collection
Patch12: beagle-banshee-support.patch
# PATCH-FEATURE-UPSTREAM beagle-fix-scale-results.patch bgo582354 -- This is a follow-up of beagle-scale-results.patch
Patch14: beagle-fix-scale-results.patch
# PATCH-FEATURE-UPSTREAM beagle-propose-autostart.patch fate305296 bgo588965 vuntz@novell.com -- Propose to autostart the deamon on login when it's not active, instead of just starting it now
Patch15: beagle-propose-autostart.patch
# PATCH-FIX-UPSTREAM beagle-0.3.8-fx35.patch bjorn.lie@gmail.com -- make beagle-firefox compatible with Firefox 3.5, fixed in git
Patch16: beagle-0.3.8-fx35.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: /usr/sbin/groupadd /usr/sbin/useradd /bin/rm
Requires: mono-core >= 1.1.13.5
Requires: mono-web mono-data-sqlite
Requires: wv glib-sharp2 gtk-sharp2
Requires: gmime-sharp >= 2.2.1 gsf-sharp >= 0.6
Requires: shared-mime-info desktop-data
Requires: /usr/bin/pdftotext
Requires: %{name}-lang = %{version}
Recommends: cron
%description
Beagle is a search tool that ransacks your personal information space
to find whatever you might be looking for. Beagle is a Linux
desktop-independent service which transparently and unobtrusively
indexes your data in real-time.
Beagle supports many different data sources and file formats,
including: * Documents
* E-mails
* Web browsing history
* IM and IRC conversations
* RSS Feeds
* Images
* Videos
* Music files
* Archives and their contents
* Applications
* ... and more.
%package -n beagle-gui
License: Apache Software License .. ; MIT License (or similar)
#'
Summary: Graphical User Interface for the Desktop Search Application Beagle
Group: Productivity/Other
Requires: gconf-sharp2 glade-sharp2 glib-sharp2 gtk-sharp2
%description -n beagle-gui
Beagle is a search tool that ransacks your personal information space
to find whatever you are looking for. This package contains the
graphical user interface.
%package -n beagle-evolution
License: Apache Software License .. ; MIT License (or similar)
Summary: Evolution Plugin for the Desktop search application beagle
Group: Productivity/Other
Requires: evolution-sharp >= 0.9.1
%description -n beagle-evolution
Beagle is a search tool that ransacks your personal information space
to find whatever you are looking for. This plugin contains Evolution
support for beagle.
%package -n beagle-firefox
License: Apache Software License .. ; MIT License (or similar)
Summary: Firefox Plugin for the Desktop search application beagle
Group: Productivity/Other
Requires: MozillaFirefox
%description -n beagle-firefox
Beagle is a search tool that ransacks your personal information space
to find whatever you are looking for. This package contains a Plugin
for using Beagle in Firefox.
%package -n beagle-epiphany
License: Apache Software License .. ; MIT License (or similar)
Summary: Epiphany Plugin for the Desktop search application beagle
Group: Productivity/Other
Requires: epiphany
%description -n beagle-epiphany
Beagle is a search tool that ransacks your personal information space
to find whatever you are looking for. This package contains a Plugin
for using Beagle in Epiphany.
%package -n beagle-google
License: Apache Software License .. ; MIT License (or similar)
Summary: GMail Plugin for the Desktop search application beagle
Group: Productivity/Other
%description -n beagle-google
Beagle is a search tool that ransacks your personal information space
to find whatever you are looking for. This plugin contains GMail
support for beagle.
%package -n beagle-thunderbird
License: Apache Software License .. ; MIT License (or similar)
Summary: Thunderbird plugin for the Desktop search application Beagle
Group: Productivity/Other
Requires: MozillaThunderbird
%description -n beagle-thunderbird
Beagle is a search tool that ransacks your personal information space
to find whatever you are looking for. This package contains a Plugin
for using Beagle in Thunderbird.
%package devel
License: Apache Software License .. ; MIT License (or similar)
Summary: Desktop Search Application
Group: Development/Languages/Mono
Requires: beagle
%description devel
Beagle is a search tool that ransacks your personal information space
to find whatever you might be looking for. Beagle is a Linux
desktop-independent service which transparently and unobtrusively
indexes your data in real-time.
Beagle supports many different data sources and file formats,
including: * Documents
* E-mails
* Web browsing history
* IM and IRC conversations
* RSS Feeds
* Images
* Videos
* Music files
* Archives and their contents
* Applications
* ... and more.
%lang_package
%prep
%setup -q
%patch1
%patch3
%patch7
%patch9
%patch10
%patch11 -p2
%ifnarch s390 s390x
%patch12
%endif
%patch14 -p1
%patch15 -p1
%patch16 -p1
%build
intltoolize --copy --force --automake
libtoolize -f
aclocal -I .
autoheader
autoconf
automake --add-missing
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fstack-protector"
%configure --disable-static --with-pic \
--mandir=%prefix/share/man \
--sysconfdir=%sysconfdir \
--datadir=%prefix/share \
--localstatedir=/var \
--disable-schemas-install \
--libexecdir=/usr/lib/beagle \
%if 0
--enable-epiphany-extension \
--enable-epiphany-extension-install \
%endif
--enable-thunderbird \
--enable-avahi \
--disable-libbeagle \
--disable-python
%__make
%install
%makeinstall
# This is highly gross.
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
cp %{S:1} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/beagle-system-search.png
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}
# See https://features.opensuse.org/305296
rm $RPM_BUILD_ROOT%{sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
rm $RPM_BUILD_ROOT%{sysconfdir}/xdg/autostart/beagled-autostart.desktop
#rm $RPM_BUILD_ROOT%{prefix}/%{_lib}/epiphany/*/extensions/*.*a
rm $RPM_BUILD_ROOT%{prefix}/%{_lib}/beagle/*.*a
mkdir -p $RPM_BUILD_ROOT/var/cache/beagle/indexes
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{fda00e13-8c62-4f63-9d19-d168115b11ca}
unzip -o $RPM_BUILD_ROOT%{prefix}/%{_lib}/browser-extensions/firefox/beagle.xpi -d $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{fda00e13-8c62-4f63-9d19-d168115b11ca}
rm $RPM_BUILD_ROOT%{prefix}/%{_lib}/browser-extensions/firefox/beagle.xpi
rm $RPM_BUILD_ROOT%{sysconfdir}/beagle/crawl-rules/crawl-windows
%suse_update_desktop_file -N "Search Settings" -r beagle-settings Settings Utility Filesystem X-SuSE-ControlCenter-System
%suse_update_desktop_file -G "" beagle-search
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# Remove if moving to icon theme icon or when openSUSE 11.0 is EOL
if [ -d /usr/share/pixmaps/beagle-system-search.png ] ; then
rm -rf /usr/share/pixmaps/beagle-system-search.png
fi
/usr/sbin/groupadd -r beagleindex 2> /dev/null || :
/usr/sbin/useradd -r -o -s /bin/bash -c "User for Beagle indexing" -d /var/cache/beagle -g beagleindex beagleindex 2> /dev/null || :
%files
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING
%{prefix}/bin/beagle-config
%{prefix}/bin/beagled
%{prefix}/bin/beagle-doc-extractor
%{prefix}/bin/beagle-extract-content
%{prefix}/bin/beagle-index-info
%{prefix}/bin/beagle-info
%{prefix}/bin/beagle-ping
%{prefix}/bin/beagle-query
%{prefix}/bin/beagle-shutdown
%{prefix}/bin/beagle-static-query
%{prefix}/bin/beagle-status
%{prefix}/bin/blocate
%{prefix}/sbin/*
%{prefix}/%_lib/beagle/BeagleDaemonLib.dll*
%{prefix}/%_lib/beagle/BeagleDaemonPlugins.dll*
%{prefix}/%_lib/beagle/Beagle.dll*
%{prefix}/%_lib/beagle/Util.dll*
%{prefix}/%_lib/beagle/BeagleDaemon.exe*
%{prefix}/%_lib/beagle/BuildIndex.exe*
%{prefix}/%_lib/beagle/Config.exe*
%{prefix}/%_lib/beagle/DocExtractor.exe*
%{prefix}/%_lib/beagle/DumpIndex.exe*
%{prefix}/%_lib/beagle/ExtractContent.exe*
%{prefix}/%_lib/beagle/IndexHelper.exe*
%{prefix}/%_lib/beagle/Info.exe*
%{prefix}/%_lib/beagle/ManageIndex.exe*
%{prefix}/%_lib/beagle/Query.exe*
%{prefix}/%_lib/beagle/RemovableIndex.exe*
%{prefix}/%_lib/beagle/StaticQuery.exe*
%{prefix}/%_lib/beagle/Shutdown.exe*
%{prefix}/%_lib/beagle/beagled-index-helper
%{prefix}/%_lib/beagle/libbeagleglue*
%{prefix}/%_lib/beagle/keygrabber.py
%{prefix}/%_lib/beagle/Filters/*
%{prefix}/share/beagle
%{prefix}/share/man/man1/*.1.gz
%{prefix}/share/man/man8/*.8.gz
%{prefix}/share/pixmaps/*.png
%dir %{sysconfdir}/beagle
%dir %{sysconfdir}/beagle/config-files
%dir %{sysconfdir}/beagle/crawl-rules
%{sysconfdir}/beagle/external-filters.xml.sample
%config %{sysconfdir}/beagle/blocate.conf
%config %{sysconfdir}/beagle/query-mapping.xml
%config %{sysconfdir}/beagle/crawl-rules/crawl-applications
%config %{sysconfdir}/beagle/crawl-rules/crawl-documentation
%config %{sysconfdir}/beagle/crawl-rules/crawl-executables
%config %{sysconfdir}/beagle/crawl-rules/crawl-manpages
%config %{sysconfdir}/beagle/crawl-rules/crawl-monodoc
%config %{sysconfdir}/beagle/config-files/*.xml
%{sysconfdir}/cron.daily/beagle-crawl-system
%attr(-,beagleindex,beagleindex) /var/cache/beagle
%attr(-,beagleindex,beagleindex) /var/cache/beagle/indexes
%dir %{prefix}/%_lib/beagle
%dir %{prefix}/%_lib/beagle/Backends
%dir %{prefix}/%_lib/beagle/Filters
%files lang -f %{name}.lang
%files -n beagle-gui
%defattr(-, root, root)
%dir %{prefix}/%_lib/beagle
%{prefix}/bin/beagle-imlogviewer
%{prefix}/bin/beagle-search
%{prefix}/bin/beagle-settings
%{prefix}/%_lib/beagle/UiUtil.dll*
%{prefix}/%_lib/beagle/ImLogViewer.exe*
%{prefix}/%_lib/beagle/Beagle.Search.exe*
%{prefix}/%_lib/beagle/Settings.exe*
%{prefix}/%_lib/beagle/libbeagleuiglue*
%{prefix}/share/applications/*.desktop
%{prefix}/share/man/man8/beagle-imlogviewer.8.gz
%ifnarch s390 s390x
%{prefix}/%_lib/beagle/Backends/Banshee.CollectionIndexer.dll*
%{prefix}/%_lib/beagle/Backends/BansheeBackends.dll*
%endif
%files -n beagle-evolution
%defattr(-, root, root)
%{prefix}/%_lib/beagle/Backends/EvolutionBackends.dll*
%files -n beagle-firefox
%defattr(-, root, root)
%dir %{_datadir}/mozilla/
%dir %{_datadir}/mozilla/extensions
%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
%if 0
# Note: remove the "if 0" in configure too when removing this one
%files -n beagle-epiphany
%defattr(-, root, root)
%{prefix}/%_lib/epiphany
%endif
%files -n beagle-google
%defattr(-, root, root)
%{prefix}/%_lib/beagle/Backends/GoogleBackends.dll*
%files -n beagle-thunderbird
%defattr(-, root, root)
%{prefix}/%_lib/beagle/Backends/ThunderbirdBackends.dll*
%files devel
%defattr(-, root, root)
%{prefix}/%_lib/pkgconfig/*.pc
%{prefix}/lib/monodoc/sources/beagle-docs.*
%changelog