Blame SPECS/strigi.spec

ee4fba
%global multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
ee4fba
%if 0%{?fedora} && 0%{?fedora} < 16
ee4fba
%define dt_vendor fedora
ee4fba
# include clucene support
ee4fba
%global clucene 1
ee4fba
%endif
ee4fba
ee4fba
%define snap 20120626
ee4fba
ee4fba
Name:		strigi
ee4fba
Version:	0.7.7
ee4fba
Release:	13.20120626%{?dist}
ee4fba
Summary:	A desktop search program
ee4fba
Group:		Applications/Productivity
ee4fba
License:	LGPLv2+
ee4fba
#URL:           http://strigi.sf.net/
ee4fba
URL:            http://www.vandenoever.info/software/strigi/
ee4fba
#Source0:	http://www.vandenoever.info/software/strigi/strigi-%{version}%{?pre:-%{pre}}.tar.bz2
ee4fba
Source0:	http://rdieter.fedorapeople.org/strigi/strigi-%{version}%{?pre:-%{pre}}.tar.xz
ee4fba
Source1:	strigiclient.desktop
ee4fba
Source2:	strigi-daemon.desktop
ee4fba
Source3:	strigiconfig-multilib.h
ee4fba
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ee4fba
ee4fba
## upstream patches
ee4fba
# strigidaemon
ee4fba
Patch101: 0001-Minor.-Fix-grammar-typo-in-cmake-output.patch
ee4fba
Patch102: 0002-gcc47-fix-unistd.h-header-required-unconditionally-f.patch
ee4fba
Patch103: 0003-Fix-return-value-wrong-type.patch
ee4fba
# libstreamanalizer
ee4fba
Patch201: 0001-Fix-xpm-and-xbm-index.patch
ee4fba
Patch202: 0002-Extract-tracknumber-and-track-count-from-a-value-lik.patch
ee4fba
Patch203: 0003-Fixed-indexing-of-m3u-files.patch
ee4fba
Patch204: 0004-Fix-FLAC-Files-Remove-addtional-db-in-replaygain.patch
ee4fba
Patch205: 0005-Fix-flac-analizer-was-importing-only-one-artist-tag.patch
ee4fba
Patch206: 0006-Fix-non-numeric-genres-in-id3-v2-mp3-are-ignored.patch
ee4fba
Patch207: 0007-Opps-Rmoving-a-wrong-commited-file-id3endanalyzer.cp.patch
ee4fba
Patch208: 0008-fix-parsing-of-genre-field-in-id3v2-tags-and-clean-c.patch
ee4fba
ee4fba
BuildRequires:  bison
ee4fba
BuildRequires:  boost-devel
ee4fba
BuildRequires:  bzip2-devel
ee4fba
BuildRequires:	cmake >= 2.4.5
ee4fba
%if 0%{?clucene:1}
ee4fba
BuildRequires:	clucene-core-devel
ee4fba
%endif
ee4fba
BuildRequires:  desktop-file-utils
ee4fba
BuildRequires:  expat-devel
ee4fba
BuildRequires:  pkgconfig(cppunit)
ee4fba
BuildRequires:  pkgconfig(dbus-1) dbus-x11
ee4fba
BuildRequires:  pkgconfig(exiv2)
ee4fba
BuildRequires:  pkgconfig(gamin)
ee4fba
BuildRequires:  pkgconfig(libxml-2.0)
ee4fba
BuildRequires:  pkgconfig(QtDBus) pkgconfig(QtGui)
ee4fba
BuildRequires:  pkgconfig(zlib)
ee4fba
ee4fba
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ee4fba
ee4fba
%description
ee4fba
Strigi is a fast and light desktop search engine. It can handle a large range
ee4fba
of file formats such as emails, office documents, media files, and file
ee4fba
archives. It can index files that are embedded in other files. This means email
ee4fba
attachments and files in zip files are searchable as if they were normal files
ee4fba
on your harddisk.
ee4fba
ee4fba
Strigi is normally run as a background daemon that can be accessed by many
ee4fba
other programs at once. In addition to the daemon, Strigi comes with powerful
ee4fba
replacements for the popular unix commands 'find' and 'grep'. These are called
ee4fba
'deepfind' and 'deepgrep' and can search inside files just like the strigi
ee4fba
daemon can.
ee4fba
ee4fba
%package	devel
ee4fba
Summary:	Development files for the strigi desktop search engine
ee4fba
Group:		Development/Libraries
ee4fba
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
ee4fba
%description	devel
ee4fba
Development files for the strigi desktop search engine
ee4fba
ee4fba
%package	libs
ee4fba
Summary:	Strigi libraries
ee4fba
Group:		Development/Libraries
ee4fba
%description	libs
ee4fba
Strigi search engine libraries
ee4fba
ee4fba
ee4fba
%prep
ee4fba
%setup -q -n %{name}-%{version}%{?pre:-%{pre}}
ee4fba
ee4fba
pushd strigidaemon
ee4fba
%patch101 -p1
ee4fba
%patch102 -p1
ee4fba
%patch103 -p1
ee4fba
popd
ee4fba
pushd libstreamanalyzer
ee4fba
%patch201 -p1
ee4fba
%patch202 -p1
ee4fba
%patch203 -p1
ee4fba
%patch204 -p1
ee4fba
%patch205 -p1
ee4fba
%patch206 -p1
ee4fba
%patch207 -p1
ee4fba
%patch208 -p1
ee4fba
popd
ee4fba
ee4fba
ee4fba
%build
ee4fba
mkdir -p %{_target_platform}
ee4fba
pushd %{_target_platform}
ee4fba
%{cmake} \
ee4fba
%if ! 0%{?clucene:1}
ee4fba
  -DENABLE_CLUCENE:BOOL=OFF \
ee4fba
  -DENABLE_CLUCENE_NG:BOOL=OFF \
ee4fba
%endif
ee4fba
  -DENABLE_DBUS:BOOL=ON \
ee4fba
  -DENABLE_FAM:BOOL=ON \
ee4fba
  -DENABLE_FFMPEG:BOOL=OFF \
ee4fba
  %{?_cmake_skip_rpath} \
ee4fba
  ..
ee4fba
popd
ee4fba
ee4fba
make %{?_smp_mflags} -C %{_target_platform}
ee4fba
ee4fba
ee4fba
%install
ee4fba
rm -rf %{buildroot}
ee4fba
make install/fast -C %{_target_platform}  DESTDIR=%{buildroot}
ee4fba
ee4fba
desktop-file-install \
ee4fba
  --vendor="%{?dt_vendor}" \
ee4fba
  --dir=%{buildroot}%{_datadir}/applications \
ee4fba
  %{SOURCE1}
ee4fba
ee4fba
# Add an autostart desktop file for the strigi daemon
ee4fba
install -p -m644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/autostart/strigi-daemon.desktop
ee4fba
ee4fba
%ifarch %{multilib_archs}
ee4fba
# multilib: strigiconfig.h
ee4fba
  mv %{buildroot}%{_includedir}/strigi/strigiconfig.h %{buildroot}%{_includedir}/strigi/strigiconfig-%{__isa_bits}.h
ee4fba
  install -p -m644 -D %{SOURCE3} %{buildroot}%{_includedir}/strigi/strigiconfig-multilib.h
ee4fba
  ln -sf strigiconfig-multilib.h %{buildroot}%{_includedir}/strigi/strigiconfig.h
ee4fba
%endif
ee4fba
ee4fba
%clean
ee4fba
rm -rf %{buildroot}
ee4fba
ee4fba
ee4fba
%post libs -p /sbin/ldconfig
ee4fba
ee4fba
%postun libs -p /sbin/ldconfig
ee4fba
ee4fba
ee4fba
%files
ee4fba
%defattr(-,root,root,-)
ee4fba
%doc AUTHORS COPYING ChangeLog
ee4fba
%{_bindir}/*
ee4fba
%{_datadir}/applications/*strigiclient.desktop
ee4fba
%{_datadir}/dbus-1/services/*.service
ee4fba
%{_sysconfdir}/xdg/autostart/strigi-daemon.desktop
ee4fba
%if 0%{?clucene}
ee4fba
%{_libdir}/strigi/strigiindex_clucene.so
ee4fba
%endif
ee4fba
ee4fba
%files devel
ee4fba
%defattr(-,root,root,-)
ee4fba
%{_libdir}/lib*.so
ee4fba
%{_libdir}/pkgconfig/libstreamanalyzer.pc
ee4fba
%{_libdir}/pkgconfig/libstreams.pc
ee4fba
%{_libdir}/strigi/StrigiConfig.cmake
ee4fba
%{_libdir}/libsearchclient/
ee4fba
%{_libdir}/libstreamanalyzer/
ee4fba
%{_libdir}/libstreams/
ee4fba
%{_includedir}/strigi/
ee4fba
ee4fba
%files libs
ee4fba
%defattr(-,root,root,-)
ee4fba
%{_datadir}/strigi/
ee4fba
%{_libdir}/libsearchclient.so.0*
ee4fba
%{_libdir}/libstreamanalyzer.so.0*
ee4fba
%{_libdir}/libstreams.so.0*
ee4fba
%{_libdir}/libstrigihtmlgui.so.0*
ee4fba
%{_libdir}/libstrigiqtdbusclient.so.0*
ee4fba
%dir %{_libdir}/strigi/
ee4fba
%{_libdir}/strigi/strigiea_*.so
ee4fba
%{_libdir}/strigi/strigila_*.so
ee4fba
%{_libdir}/strigi/strigita_*.so
ee4fba
ee4fba
ee4fba
%changelog
ee4fba
* Wed Sep 06 2017 Jan Grulich <jgrulich@redhat.com> - 0.7.7-13.20120626
ee4fba
- Rebuild exiv2
ee4fba
  Resolves: bz#1488012
ee4fba
ee4fba
* Mon Apr 28 2014 Than Ngo <than@redhat.com> - 0.7.7-12.20120626
ee4fba
- fix typo bug which build failure in kde-workspace
ee4fba
ee4fba
* Mon Mar 17 2014 Than Ngo <than@redhat.com> - 0.7.7-11.20120626
ee4fba
- fix multilib issue
ee4fba
ee4fba
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.7.7-10.20120626
ee4fba
- Mass rebuild 2014-01-24
ee4fba
ee4fba
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.7.7-9.20120626
ee4fba
- Mass rebuild 2013-12-27
ee4fba
ee4fba
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-8.20120626
ee4fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ee4fba
ee4fba
* Mon Jul 30 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.7-7.20120626
ee4fba
- rebuild (boost)
ee4fba
ee4fba
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-6.20120626
ee4fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ee4fba
ee4fba
* Tue Jun 26 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.7-5.20120626
ee4fba
- backport upstream patches (as of 20120626)
ee4fba
ee4fba
* Wed May 02 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.7-4
ee4fba
- rebuild (exiv2)
ee4fba
ee4fba
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-3
ee4fba
- Rebuilt for c++ ABI breakage
ee4fba
ee4fba
* Mon Jan 09 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.7-2
ee4fba
- gcc47 patch
ee4fba
ee4fba
* Mon Jan 09 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.7-1
ee4fba
- 0.7.7
ee4fba
- upstream xpm patch
ee4fba
ee4fba
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.6-4
ee4fba
- Rebuilt for glibc bug#747377
ee4fba
ee4fba
* Mon Oct 17 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.6-3
ee4fba
- Revert commit that breaks parsing of some PDF files
ee4fba
ee4fba
* Fri Oct 14 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.7.6-2
ee4fba
- rebuild (exiv2)
ee4fba
ee4fba
* Tue Oct 04 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.6-1
ee4fba
- 0.7.6
ee4fba
- BR: boost-devel
ee4fba
- pkgconfig-style deps
ee4fba
ee4fba
* Tue Aug 16 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.5-5
ee4fba
- libstreams rpm analyzer fixed upstream
ee4fba
ee4fba
* Sun Aug 07 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.5-4
ee4fba
- enable dbus/fam support
ee4fba
ee4fba
* Sun Aug 07 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.5-3
ee4fba
- explicitly mark convenience libs static
ee4fba
ee4fba
* Fri Aug 05 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.5-2
ee4fba
- rebuild
ee4fba
ee4fba
* Fri Jul 29 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.5-1
ee4fba
- strigi-0.7.5 (#726507)
ee4fba
ee4fba
* Mon Jun 06 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.2-10
ee4fba
- drop clucene support, for now (f16+)
ee4fba
ee4fba
* Thu Jun 02 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.2-9
ee4fba
- move strigiindex_clucene.so to main pkg
ee4fba
- drop .desktop --vendor (f16+)
ee4fba
ee4fba
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
ee4fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ee4fba
ee4fba
* Sat Jan 01 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.7.2-7
ee4fba
- rebuild (exiv2)
ee4fba
ee4fba
* Fri Nov 05 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.7.2-6
ee4fba
- rebuild for new libxml2
ee4fba
ee4fba
* Mon Jul 12 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.2-5
ee4fba
- disable rpmanalyzer support, until crasher(s) fixed (#609541)
ee4fba
- tidy up spec
ee4fba
ee4fba
* Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.2-4
ee4fba
- strigi flac analyser crashes with floating point (arithmetic) exception (kdebug234398)
ee4fba
ee4fba
* Mon May 31 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.2-3
ee4fba
- rebuild (exiv2)
ee4fba
ee4fba
* Fri Feb 12 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.2-2
ee4fba
- %%build: +%%_cmake_skip_rpath
ee4fba
ee4fba
* Fri Feb 12 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.2-1
ee4fba
- strigi-0.7.2
ee4fba
ee4fba
* Mon Jan 11 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.1-1
ee4fba
- strigi-0.7.1
ee4fba
ee4fba
* Sun Jan 03 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.7.0-2 
ee4fba
- rebuild (exiv2)
ee4fba
ee4fba
* Tue Aug 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.7.0-1
ee4fba
- strigi-0.7.0 (final)
ee4fba
ee4fba
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-0.2.RC1
ee4fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ee4fba
ee4fba
* Thu Jul 23 2009 Rex Dieter <rdieter@fedoraproject.org> 0.7-0.1.RC1
ee4fba
- strigi-0.7-RC1
ee4fba
- use %%_isa where appropriate
ee4fba
- %%files: track lib sonames
ee4fba
- strigi-daemon.desktop: +Hidden=true (ie, disable autostart by default)
ee4fba
ee4fba
* Mon Jun 29 2009 Lukáš Tinkl <ltinkl@redhat.com> - 0.6.5-2
ee4fba
- don't start strigi daemon unconditionally (#487322)
ee4fba
ee4fba
* Fri May 29 2009 Lukáš Tinkl <ltinkl@redhat.com> - 0.6.5-1
ee4fba
- Strigi 0.6.5
ee4fba
ee4fba
* Tue Apr 21 2009 Jaroslav Reznik <jreznik@redhat.com> - 0.6.4-4
ee4fba
- fix crash with / char in path (#496620, kde#185551)
ee4fba
ee4fba
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-3
ee4fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ee4fba
ee4fba
* Wed Feb 04 2009 Deji Akingunola <dakingun@gmail.com> - 0.6.4-2
ee4fba
- Add patch to build with gcc-4.4
ee4fba
ee4fba
* Mon Feb 02 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.6.4-1
ee4fba
- strigi-0.6.4
ee4fba
- Summary: s/for KDE//
ee4fba
- *.desktop: validate, remove OnlyShowIn=KDE
ee4fba
- -devel: move *.cmake here
ee4fba
ee4fba
* Mon Jan 12 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.6.3-1
ee4fba
- strigi-0.6.3
ee4fba
ee4fba
* Tue Jan 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.6.2-1
ee4fba
- strigi-0.6.2
ee4fba
- use %%cmake macro
ee4fba
ee4fba
* Thu Dec 18 2008 Rex Dieter <rdieter@fedoraproject.org> - 0.5.11.1-2 
ee4fba
- respin (exiv2)
ee4fba
ee4fba
* Thu Nov 27 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.5.11.1-1
ee4fba
- drop _default_patch_fuzz
ee4fba
- rebase strigi-multilib patch
ee4fba
- No official 0.5.11.1 tarballs were released but we need 0.5.11.1, apply a
ee4fba
  diff between 0.5.11 and 0.5.11.1 svn tags
ee4fba
ee4fba
* Sun Jul 20 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.5.11-1
ee4fba
- Update to 0.5.11
ee4fba
- Drop compile-fix and lucenetest_fix patches (fixed upstream)
ee4fba
ee4fba
* Sat May 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.5.9-2
ee4fba
- Disable 'make test' for now, seems the buildroot cannot find java
ee4fba
ee4fba
* Sat May 03 2008 Deji Akingunola <dakingun@gmail.com> - 0.5.9-1
ee4fba
- Update to 0.5.9 (bugfix release)
ee4fba
ee4fba
* Thu Mar 06 2008 Deji Akingunola <dakingun@gmail.com> - 0.5.8-2
ee4fba
- Use upstream's default build options (disable inotify support, #436096)
ee4fba
ee4fba
* Thu Feb 21 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.5.8-1
ee4fba
- Update to 0.5.8
ee4fba
- Fix LIB_DESTINATION (#433627)
ee4fba
- Drop GCC 4.3 patch (fixed upstream)
ee4fba
ee4fba
* Sat Feb 09 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.5.7-4
ee4fba
- Rebuild for GCC 4.3
ee4fba
ee4fba
* Fri Jan 11 2008 Deji Akingunola <dakingun@gmail.com> - 0.5.7-3
ee4fba
- Fix build failure with gcc-4.3
ee4fba
ee4fba
* Tue Nov 13 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.5.7-2
ee4fba
- Rebuild for new exiv2
ee4fba
ee4fba
* Tue Oct 30 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.7-1
ee4fba
- Update to 0.5.7 release
ee4fba
- Fix multilibs conflict (Bug #343221, patch by Kevin Kofler)
ee4fba
ee4fba
* Sun Sep 09 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.5-2
ee4fba
- Rebuild for BuildID changes
ee4fba
ee4fba
* Sat Aug 11 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.5-1
ee4fba
- Update to 0.5.5 release
ee4fba
ee4fba
* Mon Aug 06 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.4-1
ee4fba
- Update to 0.5.4 proper
ee4fba
- License tag update
ee4fba
ee4fba
* Sun Jul 29 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.4-0.1.svn20070729
ee4fba
- New KDE SVN snapshot version for KDE 4.0 beta 1 (bz#20015)
ee4fba
ee4fba
* Wed May 16 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-5
ee4fba
- Split out a strigi-libs subpackage as suggested in BZ#223586
ee4fba
_ Include a strigidaemon autostart desktop file
ee4fba
ee4fba
* Sat May 05 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-4
ee4fba
- Add dbus-devel BR.
ee4fba
ee4fba
* Sat May 05 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-3
ee4fba
- Misc. fixes from package review
ee4fba
ee4fba
* Fri May 04 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-2
ee4fba
- Updates from reviews:
ee4fba
-	Have the -devel subpackage require pkgconfig
ee4fba
-	Add a versioned dependency on cmake and remove dbus-qt buildrequire
ee4fba
ee4fba
* Fri May 04 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-1
ee4fba
- New release
ee4fba
ee4fba
* Wed May 02 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.11-3
ee4fba
- Allow building on FC6
ee4fba
ee4fba
* Thu Feb 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.11-2
ee4fba
- Assorted fixed arising from reviews
ee4fba
ee4fba
* Wed Jan 17 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.11-1
ee4fba
- Initial packaging for Fedora Extras