328
|
1 |
%define version 0.1.7
|
|
2 |
%define release 2
|
|
3 |
%define name physfs
|
|
4 |
%define prefix /usr
|
|
5 |
|
|
6 |
Summary: PhysicsFS file abstraction layer for games
|
|
7 |
Name: %{name}
|
|
8 |
Version: %{version}
|
|
9 |
Release: %{release}
|
|
10 |
Prefix: %{prefix}
|
|
11 |
Copyright: GNU Lesser General Public License (LGPL)
|
|
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
|
|
18 |
|
|
19 |
%description
|
|
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,
|
|
35 |
etc.
|
|
36 |
|
|
37 |
%package devel
|
|
38 |
Summary: Development headers, libraries, and documentation for PhysicsFS
|
|
39 |
Group: Development/Libraries
|
|
40 |
Requires: %{name} = %{version}
|
|
41 |
|
|
42 |
%description devel
|
|
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.
|
|
46 |
|
|
47 |
%prep
|
|
48 |
%setup
|
|
49 |
export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}";
|
|
50 |
./configure --prefix=/usr
|
|
51 |
|
|
52 |
%build
|
|
53 |
export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}";
|
|
54 |
make
|
|
55 |
# Make doxygen docs
|
|
56 |
doxygen
|
|
57 |
|
|
58 |
%install
|
|
59 |
[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
|
|
60 |
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
61 |
|
|
62 |
%clean
|
|
63 |
[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
|
|
64 |
|
|
65 |
%post -p /sbin/ldconfig
|
|
66 |
%postun -p /sbin/ldconfig
|
|
67 |
|
|
68 |
%files
|
|
69 |
%defattr(-,root,root)
|
|
70 |
%doc CHANGELOG CREDITS INSTALL LICENSE TODO
|
|
71 |
%{_bindir}/test_physfs
|
|
72 |
%{_libdir}/*so.*
|
|
73 |
|
|
74 |
%files devel
|
|
75 |
%defattr(-,root,root)
|
|
76 |
%doc docs/*
|
|
77 |
%{_libdir}/*.so
|
|
78 |
%{_includedir}/physfs.h
|
|
79 |
|
|
80 |
%changelog
|
|
81 |
* Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com>
|
|
82 |
- added doxygen to build requirements
|
|
83 |
|
|
84 |
* Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com>
|
|
85 |
- updated to release 0.17
|
|
86 |
|
|
87 |
* Tue May 15 2002 Edward Rudd <eddie@omegaware.com>
|
|
88 |
- updated to latest CVS and modified spec file to use
|
|
89 |
the autoconf/automake support in the latest CVS
|
|
90 |
|
|
91 |
* Tue Apr 30 2002 Edward Rudd <eddie@omegaware.com>
|
|
92 |
- Initial spec file
|