davfs2-vl.spec 4.8 KB

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