]>
Commit | Line | Data |
---|---|---|
c617ed92 | 1 | Summary: PhysicsFS file abstraction layer for games |
2 | Name: physfs | |
3 | Version: 0.1.8 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://www.icculus.org/physfs/downloads/%{name}-%{version}.tar.gz | |
8 | URL: http://www.icculus.org/physfs/ | |
9 | BuildRequires: doxygen | |
10 | BuildRequires: ncurses-devel | |
11 | BuildRequires: readline-devel | |
12 | BuildRequires: zlib-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | PhysicsFS is a library to provide abstract access to various archives. | |
17 | It is intended for use in video games, and the design was somewhat inspired | |
18 | by Quake 3's file subsystem. The programmer defines a "write directory" on | |
19 | the physical filesystem. No file writing done through the PhysicsFS API can | |
20 | leave that write directory, for security. For example, an embedded scripting | |
21 | language cannot write outside of this path if it uses PhysFS for all of its | |
22 | I/O, which means that untrusted scripts can run more safely. Symbolic links | |
23 | can be disabled as well, for added safety. For file reading, the programmer | |
24 | lists directories and archives that form a "search path". Once the search | |
25 | path is defined, it becomes a single, transparent hierarchical filesystem. | |
26 | This makes for easy access to ZIP files in the same way as you access a file | |
27 | directly on the disk, and it makes it easy to ship a new archive that will | |
28 | override a previous archive on a per-file basis. Finally, PhysicsFS gives | |
29 | you platform-abstracted means to determine if CD-ROMs are available, the | |
30 | user's home directory, where in the real filesystem your program is running, | |
31 | etc. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for PhysicsFS development | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version} | |
37 | ||
38 | %description devel | |
39 | PhysicsFS is a library to provide abstract access to various archives. | |
40 | This package contains the development headers, libraries, and documentaion to | |
41 | build programs using PhysicsFS. | |
42 | ||
43 | %package static | |
44 | Summary: Static libraries for PhysicsFS development | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version} | |
47 | ||
48 | %description static | |
49 | PhysicsFS is a library to provide abstract access to various archives. | |
50 | This package contains the static libraries to build programs using PhysicsFS. | |
51 | ||
52 | %package programs | |
53 | Summary: Program for testing PhysicsFS archives | |
54 | Group: Development/Libraries | |
55 | ||
56 | %description programs | |
57 | PhysicsFS is a library to provide abstract access to various archives. | |
58 | This package contains the programs using for PhysicsFS archives testing. | |
59 | ||
60 | %prep | |
61 | %setup | |
62 | ||
63 | %build | |
64 | %configure | |
65 | %{__make} | |
66 | ||
67 | doxygen | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | install -d $RPM_BUILD_ROOT%{_mandir}/man3 | |
72 | ||
73 | make install DESTDIR=${RPM_BUILD_ROOT} | |
74 | ||
75 | install docs/man/man3/{PHYS*,phys*} $RPM_BUILD_ROOT%{_mandir}/man3 | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc CHANGELOG CREDITS | |
86 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %doc docs/html | |
91 | %{_libdir}/lib*.la | |
92 | %{_libdir}/lib*.so | |
93 | %{_includedir}/physfs.h | |
94 | %{_mandir}/man3/* | |
95 | ||
96 | %files static | |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/lib*.a | |
99 | ||
100 | %files programs | |
101 | %defattr(644,root,root,755) | |
102 | %{_bindir}/test_physfs |