Hello community,

here is the log from the commit of package physfs for openSUSE:Factory
checked in at Mon Feb 21 00:55:03 CET 2011.



--------
--- physfs/physfs.changes       2009-03-13 16:47:16.000000000 +0100
+++ /mounts/work_src_done/STABLE/physfs/physfs.changes  2011-02-18 
16:51:41.000000000 +0100
@@ -1,0 +2,13 @@
+Wed Feb 16 22:50:07 UTC 2011 - [email protected]
+
+- update to version 2.0.1
+  * lzma support
+  * unicode support
+  * improved CD-ROM/DVD-ROM detection
+  * API extended with new functions
+- use source services
+- run spec-cleaner
+- follow SLPP
+- adapt to new cmake build system
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  physfs-1.0.1-ncurses.diff
  physfs-1.0.1.tar.bz2

New:
----
  _service
  _service:recompress:download_url:physfs-2.0.1.tar.bz2
  _service:set_version:physfs.spec
  physfs-2.0.1-lib64.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ _service:set_version:physfs.spec ++++++
#
# spec file for package physfs
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define so_nr 1

Name:           physfs
Version:        2.0.1
Release:        1
License:        ZLIB + LGPLv2.1/CPL plus exception
Summary:        PhysicsFS file abstraction layer for games
Url:            http://www.icculus.org/physfs/
Group:          System/Libraries
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM physfs-2.0.1-lib64.patch [email protected] -- Honor 
LIB_SUFFIX
Patch0:         physfs-2.0.1-lib64.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 -n lib%{name}%{so_nr}

Summary:        PhysicsFS file abstraction layer for games
Group:          System/Libraries
# physfs was last used in openSUSE 11.3
Provides:       physfs = %{version}
Obsoletes:      physfs <= 1.0.1

%description -n lib%{name}%{so_nr}
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 -n lib%{name}-devel

Summary:        Libraries, includes and more to develop PhysicsFS applications
Group:          Development/Libraries/C and C++
Requires:       lib%{name}%{so_nr} = %{version}
# physfs-devel was last used in openSUSE 11.3
Provides:       physfs-devel = %{version}
Obsoletes:      physfs-devel <= 1.0.1

%description -n lib%{name}-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.

%prep
%setup -q
%patch0

%build
# just to be sure...
rm -rf zlib123
mkdir build
cd build
cmake -DCMAKE_SKIP_RPATH=ON \
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \
      -DCMAKE_BUILD_TYPE=Release \
      -DPHYSFS_BUILD_STATIC=FALSE \
      -DPHYSFS_BUILD_TEST=FALSE ..
make %{?_smp_mflags}

%install
cd build
%makeinstall

%clean
rm -rf %{buildroot}

%post -n lib%{name}%{so_nr} -p /sbin/ldconfig

%postun -n lib%{name}%{so_nr} -p /sbin/ldconfig

%files -n lib%{name}%{so_nr}
%defattr(0644,root,root,0755)
%doc CREDITS.txt INSTALL.txt LICENSE.txt TODO.txt
%{_libdir}/libphysfs.so.%{so_nr}
%{_libdir}/libphysfs.so.%{version}

%files -n lib%{name}-devel
%defattr(0644,root,root,0755)
%{_libdir}/libphysfs.so
%{_includedir}/physfs.h

%changelog
++++++ physfs.spec ++++++
--- /var/tmp/diff_new_pack.jhUbKV/_old  2011-02-21 00:54:47.000000000 +0100
+++ /var/tmp/diff_new_pack.jhUbKV/_new  2011-02-21 00:54:47.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package physfs (Version 1.0.1)
+# spec file for package physfs
 #
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,20 +15,23 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
+%define so_nr 1
 
 Name:           physfs
-BuildRequires:  doxygen fdupes readline-devel zlib-devel
-Url:            http://www.icculus.org/physfs/
+Version:        to_be_filled_by_service
+Release:        1
+License:        ZLIB + LGPLv2.1/CPL plus exception
 Summary:        PhysicsFS file abstraction layer for games
-Version:        1.0.1
-Release:        143
-Source0:        %{name}-%{version}.tar.bz2
-License:        Any permissive
+Url:            http://www.icculus.org/physfs/
 Group:          System/Libraries
+Source0:        %{name}-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM physfs-2.0.1-lib64.patch [email protected] -- Honor 
LIB_SUFFIX
+Patch0:         physfs-2.0.1-lib64.patch
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
+BuildRequires:  zlib-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Patch:          physfs-1.0.1-ncurses.diff
 
 %description
 PhysicsFS is a library to provide abstract access to various archives.
@@ -49,19 +52,43 @@
 are available, the user's home directory, where in the real filesystem
 your program is running, etc.
 
+%package -n lib%{name}%{so_nr}
+
+Summary:        PhysicsFS file abstraction layer for games
+Group:          System/Libraries
+# physfs was last used in openSUSE 11.3
+Provides:       physfs = %{version}
+Obsoletes:      physfs <= 1.0.1
 
+%description -n lib%{name}%{so_nr}
+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.
 
-Authors:
---------
-    Ryan C. Gordon
+%package -n lib%{name}-devel
 
-%package devel
-License:        zlib/libpng License
 Summary:        Libraries, includes and more to develop PhysicsFS applications
 Group:          Development/Libraries/C and C++
-Requires:       %{name} = %{version}
+Requires:       lib%{name}%{so_nr} = %{version}
+# physfs-devel was last used in openSUSE 11.3
+Provides:       physfs-devel = %{version}
+Obsoletes:      physfs-devel <= 1.0.1
 
-%description devel
+%description -n lib%{name}-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
@@ -80,53 +107,43 @@
 are available, the user's home directory, where in the real filesystem
 your program is running, etc.
 
-
-
-Authors:
---------
-    Ryan C. Gordon
-
 %prep
 %setup -q
-%patch -p1
+%patch0
 
 %build
-test -f NEWS      || touch NEWS
-test -f README    || touch README
-test -f AUTHORS   || touch AUTHORS
-test -f ChangeLog || touch ChangeLog
 # just to be sure...
-rm zlib123/zutil.*
-autoreconf -fiv
-%configure --disable-static --with-pic
-make %{?jobs:-j%jobs}
-doxygen
+rm -rf zlib123
+mkdir build
+cd build
+cmake -DCMAKE_SKIP_RPATH=ON \
+      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+      -DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DPHYSFS_BUILD_STATIC=FALSE \
+      -DPHYSFS_BUILD_TEST=FALSE ..
+make %{?_smp_mflags}
 
 %install
-make install DESTDIR=$RPM_BUILD_ROOT
-install -d -m755 %{buildroot}%{_mandir}
-cp -a docs/man/* %{buildroot}%{_mandir}
-%{__rm} -f %{buildroot}%{_libdir}/*.la
-%fdupes -s %{buildroot}%{_mandir}
+cd build
+%makeinstall
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
+
+%post -n lib%{name}%{so_nr} -p /sbin/ldconfig
 
-%post -p /sbin/ldconfig
+%postun -n lib%{name}%{so_nr} -p /sbin/ldconfig
 
-%postun -p /sbin/ldconfig
+%files -n lib%{name}%{so_nr}
+%defattr(0644,root,root,0755)
+%doc CREDITS.txt INSTALL.txt LICENSE.txt TODO.txt
+%{_libdir}/libphysfs.so.%{so_nr}
+%{_libdir}/libphysfs.so.%{version}
 
-%files
-%defattr(-,root,root)
-%doc CHANGELOG CREDITS INSTALL LICENSE TODO zlib_license_change.txt
-%{_bindir}/test_physfs
-%{_libdir}/*so.*
-
-%files devel
-%defattr(-,root,root)
-%doc docs/html
-%{_mandir}/man*/*
-%{_libdir}/*.so
+%files -n lib%{name}-devel
+%defattr(0644,root,root,0755)
+%{_libdir}/libphysfs.so
 %{_includedir}/physfs.h
 
 %changelog

++++++ physfs-2.0.1-lib64.patch ++++++
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -333,8 +333,8 @@ ENDIF(PHYSFS_BUILD_WX_TEST)
 
 INSTALL(TARGETS ${PHYSFS_INSTALL_TARGETS}
         RUNTIME DESTINATION bin
-        LIBRARY DESTINATION lib
-        ARCHIVE DESTINATION lib)
+        LIBRARY DESTINATION lib${LIB_SUFFIX}
+        ARCHIVE DESTINATION lib${LIB_SUFFIX})
 INSTALL(FILES physfs.h DESTINATION include)
 
 FIND_PACKAGE(Doxygen)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to