strigi-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. Name: strigi
  2. Version: 0.7.2
  3. Release: 3%{?_dist_release}
  4. Summary: A desktop search program for KDE
  5. Group: Applications/Productivity
  6. License: LGPL
  7. URL: http://strigi.sourceforge.net/
  8. Source0: strigi-%{version}.tar.bz2
  9. Source1: strigiclient.desktop
  10. Source2: strigi-daemon.desktop
  11. Patch0: strigi-0.6.2-multilib.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: cmake >= 2.4.5
  14. BuildRequires: exiv2-devel >= 0.12
  15. BuildRequires: clucene-core-devel
  16. BuildRequires: qt4-devel
  17. BuildRequires: dbus-devel
  18. BuildRequires: expat-devel
  19. BuildRequires: libxml2-devel
  20. BuildRequires: bzip2-devel
  21. BuildRequires: zlib-devel
  22. BuildRequires: gamin-devel
  23. BuildRequires: desktop-file-utils
  24. %description
  25. Strigi is a fast and light desktop search engine. It can handle a large range
  26. of file formats such as emails, office documents, media files, and file
  27. archives. It can index files that are embedded in other files. This means email
  28. attachments and files in zip files are searchable as if they were normal files
  29. on your harddisk.
  30. Strigi is normally run as a background daemon that can be accessed by many
  31. other programs at once. In addition to the daemon, Strigi comes with powerful
  32. replacements for the popular unix commands 'find' and 'grep'. These are called
  33. 'deepfind' and 'deepgrep' and can search inside files just like the strigi
  34. daemon can.
  35. %package libs
  36. Summary: Strigi libraries
  37. Group: System Environment/Libraries
  38. %description libs
  39. Strigi search engine libraries
  40. %package devel
  41. Summary: Development files for the strigi desktop search engine
  42. Group: Development/Libraries
  43. Requires: %{name}-libs = %{version}-%{release}
  44. Requires: pkgconfig
  45. %description devel
  46. Development files for the strigi desktop search engine
  47. %prep
  48. %setup -q
  49. %patch0 -p1 -b .multilibs
  50. %build
  51. mkdir build
  52. cd build
  53. export CFLAGS="%{optflags}"
  54. export CXXFLAGS="%{optflags}"
  55. export FFLAGS="%{optflags}"
  56. %ifarch x86_64 ppc64
  57. %define lib_suffix 64
  58. %else
  59. %define lib_suffix %{nil}
  60. %endif
  61. cmake \
  62. -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  63. -DLIB_DESTINATION=%{_libdir} \
  64. -DLIB_SUFFIX=%{lib_suffix} \
  65. -DENABLE_EXPAT:BOOL=ON \
  66. -DENABLE_INOTIFY:BOOL=ON \
  67. -DENABLE_DBUS:BOOL=ON \
  68. -DENABLE_FAM:BOOL=ON \
  69. ..
  70. make VERBOSE=1 %{?_smp_mflags}
  71. %install
  72. rm -rf %{buildroot}
  73. cd build
  74. make DESTDIR=%{buildroot} install
  75. desktop-file-install \
  76. --vendor="" \
  77. --dir=%{buildroot}%{_datadir}/applications \
  78. %{SOURCE1}
  79. # Add an autostart desktop file for the strigi daemon
  80. mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
  81. cp -pr %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/autostart/
  82. find %{buildroot}%{_libdir} -type f -name "*.so*" -exec chmod 755 {} ';'
  83. %clean
  84. rm -rf %{buildroot}
  85. %post libs -p /sbin/ldconfig
  86. %postun libs -p /sbin/ldconfig
  87. %files
  88. %defattr(-,root,root,-)
  89. %doc AUTHORS COPYING ChangeLog README TODO
  90. %{_bindir}/*
  91. %{_datadir}/applications/strigiclient.desktop
  92. %{_sysconfdir}/xdg/autostart/strigi-daemon.desktop
  93. %{_datadir}/strigi
  94. %{_datadir}/dbus-1/services/*
  95. %files libs
  96. %defattr(-,root,root,-)
  97. %{_libdir}/*.so.*
  98. %{_libdir}/strigi
  99. %exclude %{_libdir}/strigi/*.cmake
  100. %files devel
  101. %defattr(-,root,root,-)
  102. %{_libdir}/*.so
  103. %{_libdir}/pkgconfig/libstream*.pc
  104. %{_libdir}/strigi/*.cmake
  105. %{_includedir}/strigi
  106. %changelog
  107. * Wed May 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.2-3
  108. - rebuilt with exiv2-0.19
  109. * Sun Apr 11 2010 NAKAMURA Kenta <kenta@vinelinux.org> 0.7.2-2
  110. - rebuilt to support strigiclient (x86_64)
  111. * Fri Feb 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.2-1
  112. - new upstream release
  113. - built with new toolchain
  114. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.0-1
  115. - new upstream release
  116. * Mon Apr 13 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.6.4-2
  117. - rebuild with exiv2-0.18.1-1
  118. * Tue Feb 17 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.6.4-1
  119. - new upstream release
  120. - update Patch0 and delete Patch1
  121. * Wed Jan 21 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.11-2
  122. - add Patch0 and Patch1
  123. * Sun Dec 7 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.11-1
  124. - new upstream release
  125. * Tue Aug 5 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.10-1
  126. - new upstream release
  127. * Sun May 4 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.9-1
  128. - new upstream release
  129. * Wed Nov 21 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.7-0vl1
  130. - new upstream release
  131. * Thu Sep 6 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.5-0vl1
  132. - new upstream release
  133. * Thu Aug 16 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.4-0vl1
  134. - new upstream release
  135. * Thu Jun 28 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.1-5vl2
  136. - rebuild with qt4-4.3.0-0vl1
  137. * Sun May 20 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.5.1-5vl1
  138. - initial release for VineSeed
  139. * Wed May 16 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-5
  140. - Split out a strigi-libs subpackage as suggested in BZ#223586
  141. _ Include a strigidaemon autostart desktop file
  142. * Sat May 05 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-4
  143. - Add dbus-devel BR.
  144. * Sat May 05 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-3
  145. - Misc. fixes from package review
  146. * Fri May 04 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-2
  147. - Updates from reviews:
  148. - Have the -devel subpackage require pkgconfig
  149. - Add a versioned dependency on cmake and remove dbus-qt buildrequire
  150. * Fri May 04 2007 Deji Akingunola <dakingun@gmail.com> - 0.5.1-1
  151. - New release
  152. * Wed May 02 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.11-3
  153. - Allow building on FC6
  154. * Thu Feb 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.11-2
  155. - Assorted fixed arising from reviews
  156. * Wed Jan 17 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.11-1
  157. - Initial packaging for Fedora Extras