libphysfs/libphysfs.spec

89 lines
4.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: libphysfs
Version: 3.2.0
Release: 1mamba
Summary: A library to provide abstract access to various archives for use in video games
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://icculus.org/physfs/
Source: https://github.com/icculus/physfs.git/release-%{version}/physfs-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libreadline-devel
## AUTOBUILDREQ-END
%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: A library to provide abstract access to various archives for use in video games
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
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.
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q -n physfs-%{version}
%build
%cmake
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libphysfs.so.*
%doc LICENSE.txt
%files devel
%defattr(-,root,root)
%{_bindir}/test_physfs
%{_includedir}/physfs.h
%{_libdir}/libphysfs.a
%{_libdir}/libphysfs.so
%{_libdir}/pkgconfig/physfs.pc
%dir %{_libdir}/cmake/PhysFS
%{_libdir}/cmake/PhysFS/PhysFSConfig*.cmake
%doc README.txt
%changelog
* Fri Oct 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.0-1mamba
- update to 3.2.0
* Sun May 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.2-2mamba
- rebuilt with debug package
* Sun Mar 24 2019 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Tue Nov 21 2017 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
- automatic update by autodist
* Sat Oct 21 2017 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
- automatic update by autodist
* Sat Dec 01 2012 Automatic Build System <autodist@mambasoft.it> 2.0.3-1mamba
- update to 2.0.3
* Sat Feb 19 2011 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
- automatic update by autodist
* Sat Apr 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- automatic update by autodist
* Thu Dec 06 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- package created by autospec