libfm-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. Name: libfm
  2. Summary: A glib/gio-based lib used to develop file managers
  3. Summary(ja): ファイルマネージャー開発に用いられる glib/gio ベースのライブラリー
  4. Version: 1.2.4
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://sourceforge.net/projects/pcmanfm/
  9. Source0: %{name}-%{version}.tar.xz
  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 gtk-utils
  50. Summary: GTK+ related utility package for %{name}
  51. Group: User Interface/Desktops
  52. Requires: %{name}-gtk%{?isa} = %{version}-%{release}
  53. Obsoletes: lxshortcut < 0.1.3
  54. Provides: lxshortcut = %{version}-%{release}
  55. Provides: lxshortcut%{?_isa} = %{version}-%{release}
  56. %description gtk-utils
  57. This package contains some GTK+ related utility files for
  58. %{name}.
  59. %package devel
  60. Summary: Development files for %{name}
  61. Summary(ja): %{name} の開発ファイル
  62. Group: Development/Libraries
  63. Requires: %{name} = %{version}-%{release}
  64. %description devel
  65. The %{name}-devel package contains libraries and header files for
  66. developing applications that use %{name}.
  67. %package gtk-devel
  68. Summary: Development files for %{name}-gtk
  69. Summary(ja): %{name}-gtk の開発ファイル
  70. Group: Development/Libraries
  71. Requires: %{name}-gtk = %{version}-%{release}
  72. Requires: %{name}-devel = %{version}-%{release}
  73. %description gtk-devel
  74. The %{name}-devel package contains libraries and header files for
  75. developing applications that use %{name}-gtk.
  76. %package devel-docs
  77. Summary: Development documation for %{name}
  78. Summary(ja): %{name} の開発ドキュメント
  79. Group: Development/Libraries
  80. %description devel-docs
  81. This package containg development documentation files for %{name}.
  82. %prep
  83. %setup -qn libfm-%{version}
  84. %patch0 -p1
  85. # treak rpath
  86. sed -i.libdir_syssearch -e \
  87. '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \
  88. configure
  89. %build
  90. %configure --enable-static=no --enable-udisks --enable-gtk-doc
  91. make -C po -j1 GMSGFMT="msgfmt --statistics"
  92. make %{?_smp_mflags}
  93. %install
  94. rm -rf $RPM_BUILD_ROOT
  95. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  96. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  97. rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libfm-gtk3.pc
  98. %find_lang %{name}
  99. echo '%%defattr(-,root,root,-)' > base-header.files
  100. echo '%%defattr(-,root,root,-)' > gtk-header.files
  101. for f in $RPM_BUILD_ROOT%{_includedir}/%name/%name/*.h
  102. do
  103. bf=$(basename $f)
  104. for dir in base job
  105. do
  106. if [ -f src/$dir/$bf ]
  107. then
  108. echo %_includedir/%name/%name/$bf >> base-header.files
  109. fi
  110. done
  111. for dir in gtk
  112. do
  113. if [ -f src/$dir/$bf ]
  114. then
  115. echo %_includedir/%name/%name/$bf >> gtk-header.files
  116. fi
  117. done
  118. done
  119. /usr/lib/rpm/check-rpaths
  120. %check
  121. desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
  122. %clean
  123. rm -fr %{buildroot}
  124. %pre devel
  125. # Directory -> symlink
  126. if [ -d %{_includedir}/libfm ] ; then
  127. rm -rf %{_includedir}/libfm
  128. fi
  129. %post
  130. /sbin/ldconfig
  131. update-mime-database %{_datadir}/mime &> /dev/null || :
  132. %postun
  133. /sbin/ldconfig
  134. update-mime-database %{_datadir}/mime &> /dev/null || :
  135. %post gtk -p /sbin/ldconfig
  136. %postun gtk -p /sbin/ldconfig
  137. %files -f %{name}.lang
  138. %defattr(-,root,root,-)
  139. %doc AUTHORS ChangeLog COPYING NEWS README
  140. %dir %{_sysconfdir}/xdg/libfm/
  141. %config(noreplace) %{_sysconfdir}/xdg/libfm/libfm.conf
  142. %{_libdir}/%{name}.so.4*
  143. %{_libdir}/%{name}-extra.so.4*
  144. %dir %{_libdir}/libfm
  145. %dir %{_libdir}/libfm/modules
  146. %{_libdir}/libfm/modules/*
  147. %{_datadir}/mime/packages/libfm.xml
  148. %files gtk
  149. %defattr(-,root,root,-)
  150. %{_libdir}/%{name}-gtk.so.*
  151. %{_datadir}/libfm/
  152. %{_datadir}/applications/libfm-pref-apps.desktop
  153. %{_mandir}/man1/libfm-pref-apps.1.gz
  154. %files gtk-utils
  155. %defattr(-,root,root,-)
  156. %{_mandir}/man1/libfm-pref-apps.1.*
  157. %{_mandir}/man1/lxshortcut.1.*
  158. %{_bindir}/libfm-pref-apps
  159. %{_bindir}/lxshortcut
  160. %{_datadir}/applications/libfm-pref-apps.desktop
  161. %{_datadir}/applications/lxshortcut.desktop
  162. %files devel -f base-header.files
  163. %defattr(-,root,root,-)
  164. %doc TODO
  165. %{_includedir}/libfm
  166. %dir %{_includedir}/libfm-1.0/
  167. %{_includedir}/libfm-1.0/*
  168. %{_libdir}/%{name}.so
  169. %{_libdir}/%{name}-extra.so
  170. %{_libdir}/pkgconfig/libfm.pc
  171. %{_libdir}/pkgconfig/libfm-extra.pc
  172. %files gtk-devel -f gtk-header.files
  173. %defattr(-,root,root,-)
  174. %{_includedir}/libfm-1.0/fm-gtk.h
  175. %{_libdir}/%{name}-gtk.so
  176. %{_libdir}/pkgconfig/libfm-gtk.pc
  177. %files devel-docs
  178. %defattr(-,root,root,-)
  179. %dir %{_datadir}/gtk-doc
  180. %dir %{_datadir}/gtk-doc/html
  181. %{_datadir}/gtk-doc/html/%{name}
  182. %changelog
  183. * Wed Apr 20 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.4-1
  184. - new upstream release
  185. * Sat Sep 27 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.2.1-1
  186. - new upstream release
  187. - changed archive type gz to xz
  188. - added subpackage -gtk-utils
  189. - added Obsoletes: lxshortcut < 0.1.3, Provides: lxshortcut
  190. * Sun Sep 15 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.2.2-1
  191. - new upstream release
  192. * Sat Nov 17 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.0-2
  193. - rebuilt with menu-cache-0.4.1
  194. * Sat Nov 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1
  195. - new upstream release
  196. - recreated patch0
  197. - stopped autoreconf --force --install and intltoolize --force
  198. - added %%configure option --enable-gtk-doc
  199. - runnning desktop-file-validate in %%check
  200. * Sat Sep 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-1
  201. - new upstream release
  202. - run autoreconf --force --install and intltoolize --force
  203. - aded BuildRequires: vala
  204. * Tue Aug 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  205. - new upstream release
  206. - added BuildRequires: dbus-glib-devel
  207. - changed BuildRequires: glib2-devel >= 2.24.0 to 2.26.0
  208. - fixed BuildRequires: udisks to udisks-devel
  209. - added %%configure option --enable-udisks (experimental)
  210. * Tue Jul 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0rc1-1
  211. - new upstream release
  212. * Sun Feb 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.17
  213. - initial build for VineSeed
  214. * Sat Jan 30 2010 Oliver Burger <rpm@mandrivauser.de> 1.2-0.1git20100129.1mud2010.0
  215. - initial package for Mandriva Linux