## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 20; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %if 0%{?fedora} %bcond_without mingw %else %bcond_with mingw %endif %global common_description %{expand: 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.} Name: physfs Version: 3.0.2 Release: %autorelease License: Zlib Summary: Library to provide abstract access to various archives URL: https://www.icculus.org/physfs/ Source0: https://www.icculus.org/physfs/downloads/physfs-%{version}.tar.bz2 BuildRequires: gcc-c++ BuildRequires: doxygen, readline-devel, libtool, cmake # Only needed to build a test program. # BuildRequires: wxGTK-devel Provides: bundled(lzma-sdk457) %if %{with mingw} BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-binutils BuildRequires: mingw32-gettext BuildRequires: mingw32-win-iconv BuildRequires: mingw32-zlib BuildRequires: mingw32-readline BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-binutils BuildRequires: mingw64-gettext BuildRequires: mingw64-win-iconv BuildRequires: mingw64-zlib BuildRequires: mingw64-readline %endif %description %{common_description} %package devel Summary: Development libraries and headers for physfs Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the libraries and headers necessary for developing packages with physfs functionality. %if %{with mingw} # Win32 %package -n mingw32-physfs Summary: MinGW compiled physfs library for the Win32 target %description -n mingw32-physfs %{common_description} %package -n mingw32-physfs-static Summary: Static version of the MinGW Win32 compiled physfs library Requires: mingw32-physfs = %{version}-%{release} %description -n mingw32-physfs-static Static version of the MinGW Win32 compiled physfs library. # Win64 %package -n mingw64-physfs Summary: MinGW compiled physfs library for the Win64 target %description -n mingw64-physfs %{common_description} %package -n mingw64-physfs-static Summary: Static version of the MinGW Win64 compiled physfs library Requires: mingw64-physfs = %{version}-%{release} %description -n mingw64-physfs-static Static version of the MinGW Win64 compiled physfs library. %endif # %%{with mingw} %{?mingw_debug_package} %prep %autosetup -p1 %build %cmake %cmake_build doxygen %{_vpath_builddir}/Doxyfile %if %{with mingw} %mingw_cmake -DPHYSFS_BUILD_TEST=OFF -DPHYSFS_BUILD_WX_TEST=OFF %mingw_make_build %endif # %%{with mingw} %install %cmake_install rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 install -m0644 %{_vpath_builddir}/docs/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 # Handle man page conflicts (bz #183705) mv $RPM_BUILD_ROOT%{_mandir}/man3/author.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-author.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/deprecated.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-deprecated.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/description.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-description.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/extension.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-extension.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/major.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-major.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/minor.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-minor.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/patch.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-patch.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/url.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-url.3 mv $RPM_BUILD_ROOT%{_mandir}/man3/remove.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-remove.3 # Rename poorly named manpages for i in Deinit Free Init Malloc Realloc opaque; do mv $RPM_BUILD_ROOT%{_mandir}/man3/$i.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-$i.3 done # Fix multilib conflicts touch -r LICENSE.txt %{_vpath_builddir}/docs/html/* touch -r LICENSE.txt %{_vpath_builddir}/docs/latex/* # Get rid of static library. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a %if %{with mingw} %mingw_make_install %endif # %%{with mingw} %{?mingw_debug_install_post} %files %license LICENSE.txt %doc docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt %{_libdir}/*.so.* %files devel %doc %{_vpath_builddir}/docs/html/ %{_bindir}/test_physfs %{_includedir}/physfs.h %{_libdir}/*.so %{_libdir}/pkgconfig/physfs.pc %{_mandir}/man3/* %if %{with mingw} # Win32 %files -n mingw32-physfs %license LICENSE.txt %{mingw32_bindir}/libphysfs.dll %{mingw32_includedir}/physfs.h %{mingw32_libdir}/libphysfs.dll.a %{mingw32_libdir}/pkgconfig/physfs.pc %files -n mingw32-physfs-static %{mingw32_libdir}/libphysfs.a # Win64 %files -n mingw64-physfs %license LICENSE.txt %{mingw64_bindir}/libphysfs.dll %{mingw64_includedir}/physfs.h %{mingw64_libdir}/libphysfs.dll.a %{mingw64_libdir}/pkgconfig/physfs.pc %files -n mingw64-physfs-static %{mingw64_libdir}/libphysfs.a %endif # %%{with mingw} %changelog ## START: Generated by rpmautospec * Fri Oct 25 2024 Peter Lemenkov - 3.0.2-20 - Merge MinGW 32/64 packages * Fri Oct 25 2024 Peter Lemenkov - 3.0.2-19 - Split-off common description (MinGW prepare) * Fri Oct 25 2024 Peter Lemenkov - 3.0.2-18 - Modernize spec-file * Fri Jul 19 2024 Fedora Release Engineering - 3.0.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 3.0.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 3.0.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.0.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 3.0.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 3.0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 3.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 3.0.2-8 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 3.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Aug 10 2020 Tom Callaway - 3.0.2-6 - fix FTBFS, use new cmake macros * Sat Aug 01 2020 Fedora Release Engineering - 3.0.2-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 3.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 3.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 3.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Mar 19 2019 Tom Callaway - 3.0.2-1 - update to 3.0.2 * Sun Feb 17 2019 Igor Gnatenko - 3.0.1-6 - Rebuild for readline 8.0 * Sat Feb 02 2019 Fedora Release Engineering - 3.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 5 2018 Tom Callaway - 3.0.1-4 - apply upstream fix for dir handling - rename "deprecated" man page to avoid conflict * Fri Jul 13 2018 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 3.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Nov 17 2017 Tom Callaway - 3.0.1-1 - update to 3.0.1 * Tue Oct 24 2017 Tom Callaway - 3.0.0-2 - rename "remove" man page to avoid conflict (bz1505935) * Thu Sep 28 2017 Tom Callaway - 3.0.0-1 - update to 3.0.0 * Thu Aug 03 2017 Fedora Release Engineering - 2.0.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 13 2017 Tom Callaway - 2.0.3-9 - fix zlib zip unpacking issue caused by improper zstream copying method Thanks to Andrei Karas * Sat Feb 11 2017 Fedora Release Engineering - 2.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 12 2017 Igor Gnatenko - 2.0.3-7 - Rebuild for readline 7.x * Thu Feb 04 2016 Fedora Release Engineering - 2.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 2.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 22 2013 Tom Callaway - 2.0.3-1 - update to 2.0.3 * Thu Feb 14 2013 Fedora Release Engineering - 2.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 2.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Dec 9 2011 Tom Callaway - 2.0.2-1 - update to 2.0.2 * Wed Feb 09 2011 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Aug 20 2009 Tom "spot" Callaway - 1.0.2-2 - fix soname to match 1.0.1 (upstream made it go from .1 to .0 ?) * Wed Aug 19 2009 Tom "spot" Callaway - 1.0.2-1 - update to 1.0.2 (last in 1.0 series) * Sun Jul 26 2009 Fedora Release Engineering - 1.0.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.0.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jan 15 2009 Tom "spot" Callaway - 1.0.1-9 - do not package the tex docs, the html docs are fine - drop static lib to see if anyone misses it * Tue Feb 19 2008 Fedora Release Engineering - 1.0.1-8 - Autorebuild for GCC 4.3 * Mon Oct 29 2007 Tom "spot" Callaway 1.0.1-7 - fix multilib conficts * Sun Aug 26 2007 Tom "spot" Callaway 1.0.1-6 - fix license tag, rebuild for BuildID * Fri Sep 15 2006 Tom "spot" Callaway 1.0.1-5 - bump for fc6 * Tue Mar 7 2006 Tom "spot" Callaway 1.0.1-4 - resolve man page conflicts (bz #183705) * Tue Feb 28 2006 Tom "spot" Callaway 1.0.1-3 - bump for FC-5 * Fri Sep 23 2005 Tom "spot" Callaway 1.0.1-2 - add docs for devel * Fri Aug 19 2005 Tom "spot" Callaway 1.0.1-1 - initial package for Fedora Extras ## END: Generated by rpmautospec