rpms/ogre-pagedgeometry/F-11 import.log, NONE, 1.1 ogre-pagedgeometry.spec, NONE, 1.1 pagedgeometry-no-force-static.patch, NONE, 1.1 pagedgeometry-no-sse.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Bruno Wolff III bruno at fedoraproject.org
Wed Nov 11 15:07:46 UTC 2009


Author: bruno

Update of /cvs/pkgs/rpms/ogre-pagedgeometry/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15042/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	import.log ogre-pagedgeometry.spec 
	pagedgeometry-no-force-static.patch pagedgeometry-no-sse.patch 
Log Message:
Initial import of ogre-pagedgeometry into F11.




--- NEW FILE import.log ---
ogre-pagedgeometry-1_05-4_2721svn_fc12:F-11:ogre-pagedgeometry-1.05-4.2721svn.fc12.src.rpm:1257951878


--- NEW FILE ogre-pagedgeometry.spec ---
Name:           ogre-pagedgeometry
Version:        1.05
%global         rev            2721
Release:        4.%{rev}svn%{?dist}
Summary:        Ogre addon for realtime rendering of dense forests
Group:          Development/Libraries
License:        zlib
URL:            http://www.ogre3d.org/wiki/index.php/PagedGeometry_Engine
## tar creation instructions
# svn export -r %{rev} https://ogreaddons.svn.sourceforge.net/svnroot/ogreaddons/trunk/forests pagedgeometry
# tar cf pagedgeometry-%{rev}svn.tar pagedgeometry
# xz pagedgeometry-%{rev}svn.tar
Source0:        pagedgeometry-%{rev}svn.tar.xz
Patch0:         pagedgeometry-no-sse.patch
Patch1:         pagedgeometry-no-force-static.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  cmake
BuildRequires:  ogre-devel

# For now we aren't installing the pc file
#Requires: pkgconfig
Requires: ogre
# The library gets placed in a directory owned by ogre, but that dependency
# should be built automatically based on needed libraries.


%description
Real-time rendering of massive, dense forests, with not only trees, but 
bushes, grass, rocks, and other "clutter". Supports dynamic transitioned 
LOD between batched geometry and static impostors (extendable). 

%package        devel
Summary:        Development files for PagegGeometry
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The ogre-addons-pagedgeometry-devel package contains libraries and header 
files for developing applications that use the PagedGeometry OGRE Add-On.

%ifarch %{ix86}
%package        sse2
Summary:        Ogre addon for realtime rendering of dense forests using sse2 instructions
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    sse2
Real-time rendering of massive, dense forests, with not only trees, but 
bushes, grass, rocks, and other "clutter". Supports dynamic transitioned 
LOD between batched geometry and static impostors (extendable). sse2
instructions are enabled.
%endif

%prep
%setup -q -n pagedgeometry
%patch0
%patch1
for file in GettingStarted.txt Todo.txt ; do
   mv $file timestamp && \
   iconv -f WINDOWS-1252 -t UTF-8 -o $file timestamp && \
   touch -r timestamp $file && \
   rm timestamp
done

%build
mkdir build
cd build
%cmake -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING= -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING= ..
make VERBOSE=1 %{?_smp_mflags}
cd ..

# For x86 build a separate sse2 library that will be autodetected at runtime
%ifarch %{ix86}
mkdir sse2
cd sse2
%cmake -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-msse2 -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-msse2 ..
make VERBOSE=1 %{?_smp_mflags}
cd ..
%endif


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_includedir}/OGRE/PagedGeometry
cp -a include/* %{buildroot}%{_includedir}/OGRE/PagedGeometry
mkdir -p %{buildroot}%{_libdir}/OGRE
cp -p build/lib/libPagedGeometry.so %{buildroot}%{_libdir}/OGRE/
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
cp -p GettingStarted.txt Todo.txt docs/*.odt %{buildroot}%{_defaultdocdir}/%{name}-%{version}
%ifarch %{ix86}
mkdir -p %{buildroot}%{_libdir}/sse2/OGRE
cp -p sse2/lib/libPagedGeometry.so %{buildroot}%{_libdir}/sse2/OGRE/
%endif

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{_libdir}/OGRE/libPagedGeometry.so


%ifarch %{ix86}
%files sse2
%defattr(-,root,root,-)
# Ogre doesn't do sse2 builds so doesn't own an sse2/OGRE directory
%{_libdir}/sse2/OGRE
%{_libdir}/sse2/OGRE/libPagedGeometry.so
%endif


%files devel
%defattr(-,root,root,-)
%doc %{_defaultdocdir}/%{name}-%{version}
%{_includedir}/OGRE/PagedGeometry


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%changelog
* Sat Nov 07 2009 Bruno Wolff III <bruno at wolff.ro> - 1.05-4.2721svn
- Remove unnecessary option to cmake to request shared library build

* Fri Nov 06 2009 Bruno Wolff III <bruno at wolff.ro> - 1.05-3.2721svn
- Properly capitalize the include directory name
- The pkgconfig file isn't being installed so requires isn't needed

* Sun Nov 01 2009 Bruno Wolff III <bruno at wolff.ro> - 1.05-2.2721svn
- Bruno will take over as primary maintainer
- Switch to the latest svn to pick up some bug fixes
- Build an alternate sse2 library
- Keep cmake from adding compiler flags based on build type
- Keep cmake from adding -msse for gcc builds no matter the target
- Keep cmake from forcing a static library (this is very likely an upstream bug)

* Tue Sep 29 2009 Guido Grazioli <guido.grazioli at gmail.com> - 0-1.2698svn
- Initial packaging

pagedgeometry-no-force-static.patch:
 CMakeLists.txt |    2 !!
 1 file changed, 2 modifications(!)

--- NEW FILE pagedgeometry-no-force-static.patch ---
*** source/CMakeLists.txt.orig	2009-11-01 21:46:04.000000000 -0600
--- source/CMakeLists.txt	2009-11-01 21:46:16.000000000 -0600
***************
*** 14,17 ****
  	WindBatchPage.cpp
  )
  
! ADD_LIBRARY(PagedGeometry STATIC ${PagedGeometry_SRCS})
--- 14,17 ----
  	WindBatchPage.cpp
  )
  
! ADD_LIBRARY(PagedGeometry ${PagedGeometry_SRCS})

pagedgeometry-no-sse.patch:
 CMakeLists.txt |    2 !!
 1 file changed, 2 modifications(!)

--- NEW FILE pagedgeometry-no-sse.patch ---
*** CMakeLists.txt.orig	2009-11-01 21:11:54.000000000 -0600
--- CMakeLists.txt	2009-11-01 21:12:13.000000000 -0600
***************
*** 43,49 ****
  
  # Set compiler specific build flags
  if (CMAKE_COMPILER_IS_GNUCXX)
!   add_definitions(-msse)
  endif ()
  if (MSVC)
    add_definitions(/fp:fast)
--- 43,49 ----
  
  # Set compiler specific build flags
  if (CMAKE_COMPILER_IS_GNUCXX)
! #  add_definitions(-msse)
  endif ()
  if (MSVC)
    add_definitions(/fp:fast)


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ogre-pagedgeometry/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	11 Nov 2009 03:39:24 -0000	1.1
+++ .cvsignore	11 Nov 2009 15:07:45 -0000	1.2
@@ -0,0 +1 @@
+pagedgeometry-2721svn.tar.xz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ogre-pagedgeometry/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	11 Nov 2009 03:39:24 -0000	1.1
+++ sources	11 Nov 2009 15:07:45 -0000	1.2
@@ -0,0 +1 @@
+8339bdf5e49616eec5ca4cc78d8ab2f0  pagedgeometry-2721svn.tar.xz




More information about the scm-commits mailing list