strigi-vl.spec 5.8 KB

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