davfs2-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Name: davfs2
  2. Version: 1.4.5
  3. Release: 2%{?_dist_release}
  4. Summary: A filesystem driver for WebDAV
  5. Summary(ja): WebDAV 用のファイルシステムドライバ
  6. Group: System Environment/Base
  7. License: GPLv2+
  8. URL: http://savannah.nongnu.org/projects/davfs2
  9. Source0: http://download.savannah.gnu.org/releases/davfs2/davfs2-1.4.5.tar.gz
  10. Patch1: davfs2-1.4.5-sys_stat_h.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: gettext
  13. BuildRequires: neon-devel
  14. BuildRequires: krb5-devel
  15. Requires(pre): shadow-utils
  16. %define cachedir /var/cache/davfs2
  17. %define piddir /var/run/mount.davfs
  18. %define username davfs2
  19. %define groupname %{username}
  20. %description
  21. davfs2 is a Linux file system driver that allows you to mount a WebDAV server
  22. as a disk drive.
  23. %prep
  24. %setup -q
  25. %patch1 -p1 -b .sys_stat_h
  26. %build
  27. %configure
  28. make
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. make install DESTDIR=$RPM_BUILD_ROOT
  32. %find_lang %{name}
  33. # Create directories used by mount.davfs
  34. install -d $RPM_BUILD_ROOT%{cachedir} $RPM_BUILD_ROOT%{piddir}
  35. # Fix symlinks
  36. ln -sf ../usr/sbin/mount.davfs $RPM_BUILD_ROOT/sbin/mount.davfs
  37. ln -sf ../usr/sbin/umount.davfs $RPM_BUILD_ROOT/sbin/umount.davfs
  38. # Don't need this - we'll do our own doc install, thanks
  39. rm -rf $RPM_BUILD_ROOT/usr/share/doc/davfs2
  40. # Remove duplicate files. (Why is it installing these in the first place?)
  41. rm -rf $RPM_BUILD_ROOT/usr/share/davfs2 # same files in /etc/davfs2
  42. # Remove suid bit, to work around a problem with brp-strip on suid binaries
  43. chmod 0755 $RPM_BUILD_ROOT/%{_sbindir}/mount.davfs
  44. # UTF8ify translated man pages
  45. find $RPM_BUILD_ROOT/%{_mandir}/{de,es} -name "*.[58].gz" | while read m; do
  46. gzip -dc $m | iconv -f "ISO8859-15" -t "UTF-8" - -o - | gzip -c9 > $m.utf8
  47. mv -f $m.utf8 $m
  48. done
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT
  51. %pre
  52. getent group %{groupname} >/dev/null || groupadd -r %{groupname}
  53. getent passwd %{username} >/dev/null || \
  54. useradd -r -g %{groupname} -d %{cachedir} -s /sbin/nologin \
  55. -c "User account for %{name}" %{username}
  56. exit 0
  57. %files -f %{name}.lang
  58. %defattr(-,root,root,-)
  59. # Docs
  60. %doc AUTHORS BUGS COPYING ChangeLog FAQ INSTALL NEWS README README.translators THANKS TODO
  61. %{_mandir}/man5/*.gz
  62. %{_mandir}/man8/*.gz
  63. # localized man pages
  64. %{_mandir}/*/man5/*.gz
  65. %{_mandir}/*/man8/*.gz
  66. # Configfiles etc.
  67. %config(noreplace) %{_sysconfdir}/davfs2/davfs2.conf
  68. %config(noreplace) %{_sysconfdir}/davfs2/secrets
  69. %dir %{_sysconfdir}/davfs2/certs/private/
  70. %dir %{_sysconfdir}/davfs2/certs/
  71. %dir %{_sysconfdir}/davfs2/
  72. # Binaries
  73. %{_sbindir}/umount.davfs
  74. # re-apply suid bit to mount.davfs
  75. %attr (4755,root,root) %{_sbindir}/mount.davfs
  76. # symlinks to files in %{_sbindir}
  77. /sbin/mount.davfs
  78. /sbin/umount.davfs
  79. # Extra dirs needed by mount.davfs
  80. %dir %attr(00775,root,%{groupname}) %{cachedir}
  81. %dir %attr(01775,root,%{groupname}) %{piddir}
  82. %changelog
  83. * Sun Apr 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.5-2
  84. - rebuild with krb5-1.8.2
  85. - add BR: krb5-devel
  86. * Wed Jan 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.5-1
  87. - initial build for Vine Linux
  88. * Mon Feb 15 2010 Will Woods <wwoods@redhat.com> - 1.4.5-2
  89. - Add davfs2-1.4.5-sys_stat_h.patch to fix building on F13
  90. * Wed Jan 13 2010 Will Woods <wwoods@redhat.com> - 1.4.5-1
  91. - New upstream release (fixes rebuild failure, see bug 538913)
  92. - NOTE: 1.4.x has different config file syntax. Read the NEWS file!
  93. * Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> - 1.3.3-5
  94. - bump
  95. * Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> - 1.3.3-4
  96. - Rebuilt with new fuse
  97. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-3
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  99. * Wed Mar 11 2009 Will Woods <wwoods@redhat.com> - 1.3.3-2
  100. - Passed package review (#488858)
  101. - Ensure that package owns /etc/davfs2 and /etc/davfs2/certs
  102. * Mon Mar 02 2009 Will Woods <wwoods@redhat.com> - 1.3.3-1
  103. - Initial packaging
  104. - Fix open() with O_CREAT and no mode