Name: physfs Version: 2.0.1 Release: 1ark Summary: A library to provide abstract access to various archives URL: http://icculus.org/physfs/ Source: http://icculus.org/physfs/downloads/%name-%version.tar.gz Patch: physfs-2.0.1-systemdirs.patch License: BSD-like Group: System Environment/Libraries BuildRoot: %_tmppath/%name-root %description PhysicsFS is a library to provide abstract access to various archives. It is intended for use in video games, and the design was somewhat inspired by Quake 3's file subsystem. The programmer defines a "write directory" on the physical filesystem. No file writing done through the PhysicsFS API can leave that write directory, for security. For example, an embedded scripting language cannot write outside of this path if it uses PhysFS for all of its I/O, which means that untrusted scripts can run more safely. Symbolic links can be disabled as well, for added safety. For file reading, the programmer lists directories and archives that form a "search path". Once the search path is defined, it becomes a single, transparent hierarchical filesystem. This makes for easy access to ZIP files in the same way as you access a file directly on the disk, and it makes it easy to ship a new archive that will override a previous archive on a per-file basis. Finally, PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are available, the user's home directory, where in the real filesystem your program is running, etc. %package devel Summary: Development files for %name Group: Development/Libraries Requires: %name = %version-%release %description devel Development files (Headers etc.) for %name. %package static Summary: Static libraries for linking to %name Group: Development/Libraries Requires: %name-devel = %version-%release %description static Static libraries for linking to %name. Install this package if you wish to develop or compile applications using %name statically (users of the resulting binary won't need %name installed with static linking). %prep %setup %patch -p1 -b .systemdirs~ %cmake -DCMAKE_BUILD_WX_TEST:BOOL=OFF . %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" %if "%_lib" != "lib" cd $RPM_BUILD_ROOT%_prefix mv lib %_lib %endif %files %defattr(-,root,root) %_libdir/*.so* %_bindir/* %files devel %defattr(-,root,root) %_includedir/* %files static %defattr(-,root,root) %_libdir/*.a %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name-%version %changelog * Tue Jun 1 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.0.1-1ark - 2.0.1 - Don't break things for applications that go where they belong, e.g. /usr/bin, /usr/local/bin * Fri Oct 07 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 1.0.1-1ark - initial RPM