libfm-vl.spec 5.2 KB

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