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