-
Notifications
You must be signed in to change notification settings - Fork 0
/
SFEavfs.spec
78 lines (65 loc) · 2.04 KB
/
SFEavfs.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# Copyright 2007 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
%include Solaris.inc
Name: SFEavfs
Summary: Library for accessing virtual files (compressed, archived, remote, etc)
Version: 0.9.7
Source: %{sf_download}/avf/avfs-%{version}.tar.bz2
SUNW_BaseDir: %{_basedir}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
%package devel
Summary: %{summary} - development files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %name
%prep
%setup -q -n avfs-%version
%build
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
export CFLAGS="%optflags"
export LDFLAGS="%_ldflags"
export EMACS='no'
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--enable-library \
--disable-preload \
--enable-static=no \
--with-ssl=/usr/sfw
make -j$CPUS
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm ${RPM_BUILD_ROOT}%{_libdir}/libavfs.la
rm ${RPM_BUILD_ROOT}%{_bindir}/{dav,ftp}pass
rmdir ${RPM_BUILD_ROOT}%{_sbindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/avfs-config
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, bin) %{_libdir}/avfs
%{_libdir}/libavfs.so*
%{_libdir}/avfs/*
%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/avfs.h
%{_includedir}/virtual.h
%changelog
* Thu Mar 29 2007 - daymobrew@users.sourceforge.net
- Change sourceforge download mirror to one that is available.
* Wed Mar 28 2007 - Eric Boutilier
- Add EMACS='no' to make non-creation of /usr/etc predictable
* Tue Mar 20 2007 - daymobrew@users.sourceforge.net
- Remove from %install the code that removes the non-existant /usr/etc dir.
* Mon Mar 12 2007 - Eric Boutilier
- Initial spec