Initial integration, lots of broken stuff
[supertux.git] / src / unison / physfs-1.1.1 / physfs.spec.in
1 %define version @VERSION@
2 %define release 1
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:      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
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.txt CREDITS.txt INSTALL.txt LICENSE.txt TODO.txt
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 * Sun Mar 11 2007 Ryan C. Gordon <icculus@icculus.org>
82 - Updated filenames in documents.
83
84 * Thu Dec 18 2002 Edward Rudd <eddie@omegaware.com>
85 - added zlib_license_change.txt to documents
86
87 * Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com>
88 - added doxygen to build requirements
89
90 * Wed Jul 10 2002 Edward Rudd <eddie@omegaware.com>
91 - updated to release 0.17
92
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
96
97 * Tue Apr 30 2002 Edward Rudd <eddie@omegaware.com>
98 - Initial spec file
99