source: projects/specs/trunk/d/davfs2/davfs2-vl.spec @ 9198

Revision 9198, 4.2 KB checked in by inagaki, 9 years ago (diff)

2014-12-31 Ryoichi INAGAKI <ryo1@…>

  • cadaver, davfs2: updated spec
  • libconfuse, libotr: updated
  • python-ldap: rebuilt


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