libfm-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. Name: libfm
  2. Summary: A glib/gio-based lib used to develop file managers
  3. Summary(ja): ファイルマネージャー開発に用いられる glib/gio ベースのライブラリー
  4. Version: 1.1.0
  5. Release: 2%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://sourceforge.net/projects/pcmanfm/
  9. Source0: %{name}-%{version}.tar.gz
  10. Patch0: libfm_customize.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: autoconf automake
  13. BuildRequires: dbus-glib-devel
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: fdupes
  16. BuildRequires: gettext
  17. BuildRequires: gvfs-devel
  18. BuildRequires: gtk-doc
  19. BuildRequires: gtk2-devel >= 2.16.0
  20. BuildRequires: glib2-devel >= 2.26.0
  21. BuildRequires: intltool >= 0.40
  22. BuildRequires: menu-cache-devel >= 0.3.2
  23. BuildRequires: pango-devel
  24. BuildRequires: perl-XML-Parser
  25. BuildRequires: pkgconfig
  26. BuildRequires: udisks-devel
  27. BuildRequires: vala
  28. Requires(post): /sbin/ldconfig
  29. Requires(postun): /sbin/ldconfig
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. Packager: kudoh
  33. %description
  34. A glib/gio-based lib used to develop file managers providing some
  35. file management utilities and related-widgets missing in gtk+/glib.
  36. %package gtk
  37. Summary: File manager-related GTK+ widgets of %{name}
  38. Summary(ja): ファイルマネージャーに関連する %{name} の GTK+ ウィジェット
  39. Group: System Environment/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. Requires: gvfs
  42. %description gtk
  43. libfm is a GIO-based library used to develop file manager-like programs. It is
  44. developed as the core of next generation PCManFM and takes care of all file-
  45. related operations such as copy & paste, drag & drop, file associations or
  46. thumbnail support. By utilizing glib/gio and gvfs, libfm can access remote
  47. file systems supported by gvfs.
  48. This package provides useful file manager-related GTK+ widgets.
  49. %package devel
  50. Summary: Development files for %{name}
  51. Summary(ja): %{name} の開発ファイル
  52. Group: Development/Libraries
  53. Requires: %{name} = %{version}-%{release}
  54. %description devel
  55. The %{name}-devel package contains libraries and header files for
  56. developing applications that use %{name}.
  57. %package gtk-devel
  58. Summary: Development files for %{name}-gtk
  59. Summary(ja): %{name}-gtk の開発ファイル
  60. Group: Development/Libraries
  61. Requires: %{name}-gtk = %{version}-%{release}
  62. Requires: %{name}-devel = %{version}-%{release}
  63. %description gtk-devel
  64. The %{name}-devel package contains libraries and header files for
  65. developing applications that use %{name}-gtk.
  66. %package devel-docs
  67. Summary: Development documation for %{name}
  68. Summary(ja): %{name} の開発ドキュメント
  69. Group: Development/Libraries
  70. %description devel-docs
  71. This package containg development documentation files for %{name}.
  72. %prep
  73. %setup -qn libfm-%{version}
  74. %patch0 -p1
  75. # treak rpath
  76. sed -i.libdir_syssearch -e \
  77. '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \
  78. configure
  79. %build
  80. %configure --enable-static=no --enable-udisks --enable-gtk-doc
  81. make -C po -j1 GMSGFMT="msgfmt --statistics"
  82. make %{?_smp_mflags}
  83. %install
  84. rm -rf $RPM_BUILD_ROOT
  85. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  86. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  87. rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libfm-gtk3.pc
  88. %find_lang %{name}
  89. echo '%%defattr(-,root,root,-)' > base-header.files
  90. echo '%%defattr(-,root,root,-)' > gtk-header.files
  91. for f in $RPM_BUILD_ROOT%{_includedir}/%name/%name/*.h
  92. do
  93. bf=$(basename $f)
  94. for dir in base job
  95. do
  96. if [ -f src/$dir/$bf ]
  97. then
  98. echo %_includedir/%name/%name/$bf >> base-header.files
  99. fi
  100. done
  101. for dir in gtk
  102. do
  103. if [ -f src/$dir/$bf ]
  104. then
  105. echo %_includedir/%name/%name/$bf >> gtk-header.files
  106. fi
  107. done
  108. done
  109. /usr/lib/rpm/check-rpaths
  110. %check
  111. desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
  112. %clean
  113. rm -fr %{buildroot}
  114. %pre devel
  115. # Directory -> symlink
  116. if [ -d %{_includedir}/libfm ] ; then
  117. rm -rf %{_includedir}/libfm
  118. fi
  119. %post
  120. /sbin/ldconfig
  121. update-mime-database %{_datadir}/mime &> /dev/null || :
  122. %postun
  123. /sbin/ldconfig
  124. update-mime-database %{_datadir}/mime &> /dev/null || :
  125. %post gtk -p /sbin/ldconfig
  126. %postun gtk -p /sbin/ldconfig
  127. %files -f %{name}.lang
  128. %defattr(-,root,root,-)
  129. %doc AUTHORS ChangeLog COPYING NEWS README
  130. %dir %{_sysconfdir}/xdg/libfm/
  131. %config(noreplace) %{_sysconfdir}/xdg/libfm/pref-apps.conf
  132. %config(noreplace) %{_sysconfdir}/xdg/libfm/libfm.conf
  133. %{_libdir}/%{name}.so.*
  134. %{_datadir}/mime/packages/libfm.xml
  135. %files gtk
  136. %defattr(-,root,root,-)
  137. %{_bindir}/libfm-pref-apps
  138. %{_libdir}/%{name}-gtk.so.*
  139. %{_datadir}/libfm/
  140. %{_datadir}/applications/libfm-pref-apps.desktop
  141. %{_mandir}/man1/libfm-pref-apps.1.gz
  142. %files devel -f base-header.files
  143. %defattr(-,root,root,-)
  144. %doc TODO
  145. %dir %{_includedir}/libfm/
  146. #%dir %{_includedir}/libfm-1.0/
  147. %{_includedir}/libfm-1.0/
  148. %{_libdir}/%{name}.so
  149. %{_libdir}/pkgconfig/libfm.pc
  150. %files gtk-devel -f gtk-header.files
  151. %defattr(-,root,root,-)
  152. %{_libdir}/%{name}-gtk.so
  153. %{_libdir}/pkgconfig/libfm-gtk.pc
  154. #%{_libdir}/pkgconfig/libfm-gtk3.pc
  155. %files devel-docs
  156. %defattr(-,root,root,-)
  157. %dir %{_datadir}/gtk-doc
  158. %dir %{_datadir}/gtk-doc/html
  159. %{_datadir}/gtk-doc/html/%{name}
  160. %changelog
  161. * Sat Nov 17 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.0-2
  162. - rebuilt with menu-cache-0.4.1
  163. * Sat Nov 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1
  164. - new upstream release
  165. - recreated patch0
  166. - stopped autoreconf --force --install and intltoolize --force
  167. - added %%configure option --enable-gtk-doc
  168. - runnning desktop-file-validate in %%check
  169. * Sat Sep 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-1
  170. - new upstream release
  171. - run autoreconf --force --install and intltoolize --force
  172. - aded BuildRequires: vala
  173. * Tue Aug 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  174. - new upstream release
  175. - added BuildRequires: dbus-glib-devel
  176. - changed BuildRequires: glib2-devel >= 2.24.0 to 2.26.0
  177. - fixed BuildRequires: udisks to udisks-devel
  178. - added %%configure option --enable-udisks (experimental)
  179. * Tue Jul 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0rc1-1
  180. - new upstream release
  181. * Sun Feb 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.17
  182. - initial build for VineSeed
  183. * Sat Jan 30 2010 Oliver Burger <rpm@mandrivauser.de> 1.2-0.1git20100129.1mud2010.0
  184. - initial package for Mandriva Linux