author | Ryan C. Gordon <icculus@icculus.org> |
Fri, 22 Nov 2002 06:24:10 +0000 | |
changeset 504 | 3420d82f9b01 |
parent 388 | bd348108337d |
child 576 | 5da65f8e9a50 |
permissions | -rw-r--r-- |
388
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
1 |
%define version @VERSION@ |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
2 |
%define release 1 |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
3 |
%define name physfs |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
4 |
%define prefix /usr |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
5 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
6 |
Summary: PhysicsFS file abstraction layer for games |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
7 |
Name: %{name} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
8 |
Version: %{version} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
9 |
Release: %{release} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
10 |
Prefix: %{prefix} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
11 |
Copyright: GNU Lesser General Public License (LGPL) |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
12 |
Group: System Environment/Libraries |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
13 |
URL: http://www.icculus/physfs/ |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
14 |
Source: physfs-%{version}.tar.gz |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
15 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
16 |
BuildRequires: doxygen, readline-devel, ncurses-devel |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
17 |
Requires: readline, ncurses, zlib |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
18 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
19 |
%description |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
20 |
PhysicsFS is a library to provide abstract access to various archives. |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
21 |
It is intended for use in video games, and the design was somewhat inspired |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
22 |
by Quake 3's file subsystem. The programmer defines a "write directory" on |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
23 |
the physical filesystem. No file writing done through the PhysicsFS API can |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
24 |
leave that write directory, for security. For example, an embedded scripting |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
25 |
language cannot write outside of this path if it uses PhysFS for all of its |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
26 |
I/O, which means that untrusted scripts can run more safely. Symbolic links |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
27 |
can be disabled as well, for added safety. For file reading, the programmer |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
28 |
lists directories and archives that form a "search path". Once the search |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
29 |
path is defined, it becomes a single, transparent hierarchical filesystem. |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
30 |
This makes for easy access to ZIP files in the same way as you access a file |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
31 |
directly on the disk, and it makes it easy to ship a new archive that will |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
32 |
override a previous archive on a per-file basis. Finally, PhysicsFS gives |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
33 |
you platform-abstracted means to determine if CD-ROMs are available, the |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
34 |
user's home directory, where in the real filesystem your program is running, |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
35 |
etc. |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
36 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
37 |
%package devel |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
38 |
Summary: Development headers, libraries, and documentation for PhysicsFS |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
39 |
Group: Development/Libraries |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
40 |
Requires: %{name} = %{version} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
41 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
42 |
%description devel |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
43 |
PhysicsFS is a library to provide abstract access to various archives. |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
44 |
This package contains the development headers, libraries, and documentaion to |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
45 |
build programs using PhysicsFS. |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
46 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
47 |
%prep |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
48 |
%setup |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
49 |
export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}"; |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
50 |
./configure --prefix=/usr |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
51 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
52 |
%build |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
53 |
export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}"; |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
54 |
make |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
55 |
# Make doxygen docs |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
56 |
doxygen |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
57 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
58 |
%install |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
59 |
[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
60 |
make DESTDIR=${RPM_BUILD_ROOT} install |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
61 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
62 |
%clean |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
63 |
[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT} |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
64 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
65 |
%post -p /sbin/ldconfig |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
66 |
%postun -p /sbin/ldconfig |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
67 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
68 |
%files |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
69 |
%defattr(-,root,root) |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
70 |
%doc CHANGELOG CREDITS INSTALL LICENSE TODO |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
71 |
%{_bindir}/test_physfs |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
72 |
%{_libdir}/*so.* |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
73 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
74 |
%files devel |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
75 |
%defattr(-,root,root) |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
76 |
%doc docs/* |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
77 |
%{_libdir}/*.so |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
78 |
%{_includedir}/physfs.h |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
79 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
80 |
%changelog |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
81 |
* Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com> |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
82 |
- added doxygen to build requirements |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
83 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
84 |
* Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com> |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
85 |
- updated to release 0.17 |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
86 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
87 |
* Tue May 15 2002 Edward Rudd <eddie@omegaware.com> |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
88 |
- updated to latest CVS and modified spec file to use |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
89 |
the autoconf/automake support in the latest CVS |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
90 |
|
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
91 |
* Tue Apr 30 2002 Edward Rudd <eddie@omegaware.com> |
bd348108337d
Renamed/patched from physfs.spec
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
92 |
- Initial spec file |