-
Notifications
You must be signed in to change notification settings - Fork 0
/
plfs.spec
206 lines (182 loc) · 6.06 KB
/
plfs.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
%define debug_package %{nil}
%define _release 1
Name: plfs
Summary: plfs - Parallel Log Structured File System
Version: 2.0.2
Release: %{_release}%{?dist}
License: LANS LLC
Group: System Environment/Filesystems
Source: plfs-%{version}.tar.gz
URL: http://institutes.lanl.gov/plfs
BuildRoot: %{_tmppath}/plfs-%{version}-root
%if 0%{?suse_version}
Requires: fuse, libfuse2
%else
Requires: fuse, fuse-libs
%endif
Requires: plfs-lib
BuildRequires: fuse-devel, pkgconfig
%description
Parallel Log Structured File System
transparent filesystem middleware layer intended to speed up
small N to 1 strided write patterns to a parallel file system.
%package lib
Summary: plfs - Parallel Log Structured File System library
Group: System Environment/Filesystems
%description lib
Parallel Log Structured File System library
transparent filesystem middleware layer intended to speed up
small N to 1 strided write patterns to a parallel file system.
%prep
%{__rm} -rf %{buildroot}
%setup -q -n plfs-%{version}
%build
./configure --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{_sbindir} --includedir=%{_includedir} --sysconfdir=/etc
%{__make}
%install
%{__mkdir_p} %{buildroot}{%{_sbindir},%{_libdir}}
%{__mkdir_p} %{buildroot}%{_includedir}/plfs
%{__mkdir_p} %{buildroot}%{_initrddir}
%{__mkdir_p} %{buildroot}/etc/sysconfig
%{__mkdir_p} %{buildroot}/etc/plfs
%if 0%{?suse_version}
%{__install} -m 0755 fuse/plfs.init.suse %{buildroot}%{_initrddir}/plfs
%else
%{__install} -m 0755 fuse/plfs.init %{buildroot}%{_initrddir}/plfs
%endif
%{__install} -m 0644 fuse/plfs.sysconfig %{buildroot}/etc/sysconfig/plfs
%{__install} -m 0644 plfsrc.example %{buildroot}/etc/plfsrc
%{__make} install DESTDIR=$RPM_BUILD_ROOT
cp -a src/COPYRIGHT.h .
%clean
if [ %{buildroot} != "/" ]; then
%{__rm} -rf %{buildroot}
fi
%post
if [ "$1" = "1" ]; then
if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --add plfs
fi
mkdir -p /tmp/plfs /tmp/.plfs_store
fi
%preun
if [ "$1" = "0" ]; then
/sbin/service plfs stop
if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --del plfs
fi
rmdir /tmp/plfs /tmp/.plfs_store
fi
%files
%defattr(-,root,root,0755)
%{_sbindir}/plfs
%config %{_initrddir}/plfs
%config(noreplace) /etc/sysconfig/plfs
%config(noreplace) /etc/plfsrc
%{_sbindir}/plfs_check_config
%{_sbindir}/plfs_flatten_index
%{_sbindir}/plfs_map
%{_sbindir}/plfs_recover
%{_sbindir}/plfs_query
%{_sbindir}/plfs_version
%{_mandir}/man1/plfs.1.gz
%{_mandir}/man1/plfs_check_config.1.gz
%{_mandir}/man1/plfs_flatten_index.1.gz
%{_mandir}/man1/plfs_map.1.gz
%{_mandir}/man1/plfs_recover.1.gz
%{_mandir}/man1/plfs_query.1.gz
%{_mandir}/man1/plfs_version.1.gz
%{_mandir}/man5/plfsrc.5.gz
%{_mandir}/man7/plfs.7.gz
%files lib
%defattr(-,root,root,0755)
%{_libdir}/libplfs.a
%{_libdir}/libplfs.la
%{_libdir}/libplfs.so
%{_libdir}/libplfs.so.0
%{_libdir}/libplfs.so.0.0.0
%defattr(-,root,root,0644)
%{_includedir}/plfs/COPYRIGHT.h
%{_includedir}/plfs/plfs_internal.h
%{_includedir}/plfs/Util.h
%{_includedir}/plfs.h
%config /etc/plfs/VERSION
%config /etc/plfs/VERSION.LAYOUT
%doc COPYRIGHT.h
%{_mandir}/man3/is_plfs_file.3.gz
%{_mandir}/man3/plfs.3.gz
%{_mandir}/man3/plfs_access.3.gz
%{_mandir}/man3/plfs_buildtime.3.gz
%{_mandir}/man3/plfs_chmod.3.gz
%{_mandir}/man3/plfs_chown.3.gz
%{_mandir}/man3/plfs_close.3.gz
%{_mandir}/man3/plfs_create.3.gz
%{_mandir}/man3/plfs_debug.3.gz
%{_mandir}/man3/plfs_dump_config.3.gz
%{_mandir}/man3/plfs_dump_index.3.gz
%{_mandir}/man3/plfs_flatten_index.3.gz
%{_mandir}/man3/plfs_get_attr.3.gz
%{_mandir}/man3/plfs_index_stream.3.gz
%{_mandir}/man3/plfs_link.3.gz
%{_mandir}/man3/plfs_merge_indexes.3.gz
%{_mandir}/man3/plfs_mkdir.3.gz
%{_mandir}/man3/plfs_mode.3.gz
%{_mandir}/man3/plfs_open.3.gz
%{_mandir}/man3/plfs_query.3.gz
%{_mandir}/man3/plfs_read.3.gz
%{_mandir}/man3/plfs_readdir.3.gz
%{_mandir}/man3/plfs_readlink.3.gz
%{_mandir}/man3/plfs_rename.3.gz
%{_mandir}/man3/plfs_rmdir.3.gz
%{_mandir}/man3/plfs_serious_error.3.gz
%{_mandir}/man3/plfs_set_mpi.3.gz
%{_mandir}/man3/plfs_stats.3.gz
%{_mandir}/man3/plfs_statvfs.3.gz
%{_mandir}/man3/plfs_symlink.3.gz
%{_mandir}/man3/plfs_sync.3.gz
%{_mandir}/man3/plfs_trunc.3.gz
%{_mandir}/man3/plfs_unlink.3.gz
%{_mandir}/man3/plfs_utime.3.gz
%{_mandir}/man3/plfs_version.3.gz
%{_mandir}/man3/plfs_write.3.gz
%{_mandir}/man3/plfs_wtime.3.gz
%changelog
* Tue May 3 2011 Ben McClelland <[email protected]>
- suse has different dependencies than redhat put in distro specifics
- add plfs_recover, plfs_query, plfs_version and respective man pages
* Sat Jan 29 2011 Ben McClelland <[email protected]>
- Fixed the getattr bug
- fixed ADIO parse conf error
- added global_summary_dir to the plfsrc
- fixed tools/plfs_flatten_index
* Fri Jan 7 2011 Ben McClelland <[email protected]>
- Fixed a bug in rename.
- version 1.1.7
* Wed Jan 5 2011 Ben McClelland <[email protected]>
- Added support for a statfs override in the plfsrc file in response to ticket 35609.
- Bug fix for symbolic links. I swear this is the second time I fixed this bug
- Bug fix in the multiple mount point parsing (unitialized string pointer)
- Added the multiple mount point parsing in plfsrc
- Index flattening in ADIO close for write
- Index broadcast in ADIO open for read
* Thu Jul 29 2010 Ben McClelland <[email protected]>
- switched to configure
- clean up some unnecessary .h files
- plfsrc is the new mapping/config file to try to hide backend from users more
- shared objects available
- VERSION and VERSION.LAYOUT added for compatibility checks
* Mon Jul 26 2010 Ben McClelland <[email protected]>
- combined lib and fuse spec
- version 0.1.6 currently in trunk
* Wed Apr 21 2010 Ben McClelland <[email protected]>
- version 0.5.1 changed from internal versioing: see detailed Changelog in svn
- split out fuse version and library spec
* Fri Aug 21 2009 Ben McClelland <[email protected]> 0.0.1.2-2
- "This version now supports links and it seems more stable" -John
- added Milo's patch to count skips
- Container extra_attempts
* Thu May 14 2009 Ben McClelland <[email protected]> 0.0.1.2-1
- new verion of plfs
- fixed version definition
* Wed Feb 11 2009 Ben McClelland <[email protected]> 0.0.1.0-1
- Initial package version