1 %define version @VERSION@
6 Summary: PhysicsFS file abstraction layer for games
11 Copyright: zlib license
12 Group: System Environment/Libraries
13 URL: http://www.icculus/physfs/
14 Source: physfs-%{version}.tar.gz
15 BuildRoot: %{_tmppath}/%{name}-%{version}
16 BuildRequires: doxygen, readline-devel, ncurses-devel
17 Requires: readline, ncurses, zlib
20 PhysicsFS is a library to provide abstract access to various archives.
21 It is intended for use in video games, and the design was somewhat inspired
22 by Quake 3's file subsystem. The programmer defines a "write directory" on
23 the physical filesystem. No file writing done through the PhysicsFS API can
24 leave that write directory, for security. For example, an embedded scripting
25 language cannot write outside of this path if it uses PhysFS for all of its
26 I/O, which means that untrusted scripts can run more safely. Symbolic links
27 can be disabled as well, for added safety. For file reading, the programmer
28 lists directories and archives that form a "search path". Once the search
29 path is defined, it becomes a single, transparent hierarchical filesystem.
30 This makes for easy access to ZIP files in the same way as you access a file
31 directly on the disk, and it makes it easy to ship a new archive that will
32 override a previous archive on a per-file basis. Finally, PhysicsFS gives
33 you platform-abstracted means to determine if CD-ROMs are available, the
34 user's home directory, where in the real filesystem your program is running,
38 Summary: Development headers, libraries, and documentation for PhysicsFS
39 Group: Development/Libraries
40 Requires: %{name} = %{version}
43 PhysicsFS is a library to provide abstract access to various archives.
44 This package contains the development headers, libraries, and documentaion to
45 build programs using PhysicsFS.
49 export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}";
50 ./configure --prefix=/usr
53 export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}";
59 [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
60 make DESTDIR=${RPM_BUILD_ROOT} install
63 [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
65 %post -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
70 %doc CHANGELOG.txt CREDITS.txt INSTALL.txt LICENSE.txt TODO.txt
71 %{_bindir}/test_physfs
78 %{_includedir}/physfs.h
81 * Sun Mar 11 2007 Ryan C. Gordon <icculus@icculus.org>
82 - Updated filenames in documents.
84 * Thu Dec 18 2002 Edward Rudd <eddie@omegaware.com>
85 - added zlib_license_change.txt to documents
87 * Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com>
88 - added doxygen to build requirements
90 * Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com>
91 - updated to release 0.17
93 * Tue May 15 2002 Edward Rudd <eddie@omegaware.com>
94 - updated to latest CVS and modified spec file to use
95 the autoconf/automake support in the latest CVS
97 * Tue Apr 30 2002 Edward Rudd <eddie@omegaware.com>