Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed8546097b | ||
|
|
54fe835d77 | ||
|
|
1eac3f93f6 | ||
|
|
a50e25fbe8 |
8 changed files with 169 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
rply-1.01.tar.gz
|
||||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: rply
|
|
||||||
# $Id$
|
|
||||||
NAME := rply
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
9
RPLYConfig.cmake.in
Normal file
9
RPLYConfig.cmake.in
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# The RPLY library directory.
|
||||||
|
SET(RPLY_FOUND 1)
|
||||||
|
SET(RPLY_LIBRARY_DIR "@LIB_INSTALL_DIR@")
|
||||||
|
SET(RPLY_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@")
|
||||||
|
SET(RPLY_LIBRARY "@RPLY_LIBRARY@")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
95
rply.spec
Normal file
95
rply.spec
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
Name: rply
|
||||||
|
Version: 1.01
|
||||||
|
Release: 3%{?dist}
|
||||||
|
Summary: A library to read and write PLY files
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: MIT
|
||||||
|
URL: http://www.tecgraf.puc-rio.br/~diego/professional/rply/
|
||||||
|
Source0: http://www.tecgraf.puc-rio.br/~diego/professional/rply/rply-1.01.tar.gz
|
||||||
|
Source1: rply_CMakeLists.txt
|
||||||
|
Source2: RPLYConfig.cmake.in
|
||||||
|
Source3: rply_cmake_export_cmakelists.txt
|
||||||
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: cmake >= 2.6.0
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
RPly is a library that lets applications read and write PLY files.
|
||||||
|
The PLY file format is widely used to store geometric information, such as 3D
|
||||||
|
models, but is general enough to be useful for other purposes.
|
||||||
|
|
||||||
|
RPly is easy to use, well documented, small, free, open-source, ANSI C,
|
||||||
|
efficient, and well tested. The highlights are:
|
||||||
|
|
||||||
|
* A callback mechanism that makes PLY file input straightforward;
|
||||||
|
* Support for the full range of numeric formats;
|
||||||
|
* Binary (big and little endian) and text modes are fully supported;
|
||||||
|
* Input and output are buffered for efficiency;
|
||||||
|
* Available under the MIT license for added freedom.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
# Add CMakeLists.txt file
|
||||||
|
cp %{SOURCE1} CMakeLists.txt
|
||||||
|
|
||||||
|
# Add CMake detection modules
|
||||||
|
mkdir -p CMake/export
|
||||||
|
mkdir -p CMake/Modules
|
||||||
|
cp %{SOURCE2} CMake/Modules/
|
||||||
|
cp %{SOURCE3} CMake/export/CMakeLists.txt
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake -DCMAKE_BUILD_TYPE:STRING="Release"\
|
||||||
|
-DCMAKE_VERBOSE_MAKEFILE=ON .
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE
|
||||||
|
%doc manual/*
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
%{_bindir}/*
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Libraries and headers for rply
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
|
||||||
|
Rply Library Header Files and Link Libraries
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_includedir}/%{name}/
|
||||||
|
%{_includedir}/%{name}/*
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%dir %{_datadir}/%{name}/
|
||||||
|
%{_datadir}/%{name}/rplyConfig.cmake
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Mar 21 2010 Mario Ceresa mrceresa@gmail.com rply 1.01-3
|
||||||
|
- Added CMake modules to detect the package
|
||||||
|
|
||||||
|
* Thu Mar 04 2010 Mario Ceresa mrceresa@gmail.com rply 1.01-2
|
||||||
|
- Fixed problems detected in https://bugzilla.redhat.com/show_bug.cgi?id=570258#c2
|
||||||
|
|
||||||
|
* Wed Mar 03 2010 Mario Ceresa mrceresa@gmail.com rply 1.01-1
|
||||||
|
- Initial RPM Release
|
||||||
37
rply_CMakeLists.txt
Normal file
37
rply_CMakeLists.txt
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
PROJECT(rply)
|
||||||
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
|
||||||
|
SET(RPLY_LIB_MAJOR_VERSION 1)
|
||||||
|
SET(RPLY_LIB_MINOR_VERSION 01)
|
||||||
|
|
||||||
|
SET(RPLY_CMAKE_DIR ${CMAKE_SOURCE_DIR}/CMake/ )
|
||||||
|
SET(RPLY_LIBRARY librply.so )
|
||||||
|
|
||||||
|
add_library(rply SHARED rply.c )
|
||||||
|
set_target_properties( rply PROPERTIES
|
||||||
|
VERSION ${RPLY_LIB_MAJOR_VERSION}.${RPLY_LIB_MINOR_VERSION}
|
||||||
|
SOVERSION ${RPLY_LIB_MAJOR_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories( ${CMAKE_SOURCE_DIR} )
|
||||||
|
add_executable(rply_convert etc/convert.c )
|
||||||
|
add_executable(rply_dump etc/dump.c )
|
||||||
|
add_executable(rply_sconvert etc/sconvert.c )
|
||||||
|
target_link_libraries (rply_convert rply)
|
||||||
|
target_link_libraries (rply_dump rply)
|
||||||
|
target_link_libraries (rply_sconvert rply)
|
||||||
|
|
||||||
|
# Installs the header files
|
||||||
|
install(FILES rply.h DESTINATION include/rply)
|
||||||
|
|
||||||
|
# Installs the target file
|
||||||
|
install(TARGETS rply LIBRARY DESTINATION lib${LIB_SUFFIX})
|
||||||
|
install(TARGETS rply_convert RUNTIME DESTINATION bin)
|
||||||
|
install(TARGETS rply_dump RUNTIME DESTINATION bin)
|
||||||
|
install(TARGETS rply_sconvert RUNTIME DESTINATION bin)
|
||||||
|
|
||||||
|
#This should be the last line of the project
|
||||||
|
SUBDIRS( CMake/export )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
26
rply_cmake_export_cmakelists.txt
Normal file
26
rply_cmake_export_cmakelists.txt
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# This CMakeLists.txt file handles the creation of files needed by
|
||||||
|
# other client projects that use RPLY. Nothing is built by this
|
||||||
|
# CMakeLists.txt file. This CMakeLists.txt file must be processed by
|
||||||
|
# CMake after all the other CMakeLists.txt files in the RPLY tree,
|
||||||
|
# which is why the SUBDIRS(CMake/export) command is at the end
|
||||||
|
# of the top level CMakeLists.txt file.
|
||||||
|
|
||||||
|
# Save the compiler settings so another project can import them.
|
||||||
|
INCLUDE(${CMAKE_ROOT}/Modules/CMakeExportBuildSettings.cmake)
|
||||||
|
SET(RPLY_BUILD_SETTINGS_FILE ${rply_BINARY_DIR}/RPLYBuildSettings.cmake)
|
||||||
|
SET(RPLY_EXPORT_BUILD_SETTINGS_FILE
|
||||||
|
${CMAKE_INSTALL_PREFIX}/share/rply/cmake/RPLYBuildSettings.cmake
|
||||||
|
)
|
||||||
|
CMAKE_EXPORT_BUILD_SETTINGS(${RPLY_BUILD_SETTINGS_FILE})
|
||||||
|
|
||||||
|
# Create the VXLConfig.cmake file for the build tree.
|
||||||
|
CONFIGURE_FILE(${RPLY_CMAKE_DIR}Modules/RPLYConfig.cmake.in
|
||||||
|
${CMAKE_BINARY_DIR}/rplyConfig.cmake @ONLY IMMEDIATE)
|
||||||
|
|
||||||
|
INSTALL_FILES(/share/rply FILES
|
||||||
|
${CMAKE_BINARY_DIR}/rplyConfig.cmake
|
||||||
|
# ${RPLY_BINARY_DIR}/RPLYBuildSettings.cmake
|
||||||
|
# ${RPLY_BINARY_DIR}/RPLYLibraryDepends.cmake
|
||||||
|
# ${RPLY_CMAKE_DIR}/RPLYStandardOptions.cmake
|
||||||
|
# ${RPLY_CMAKE_DIR}/UseRPLY.cmake
|
||||||
|
)
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
694dca3449a3f5cefd4144137dfae332 rply-1.01.tar.gz
|
||||||
Loading…
Add table
Add a link
Reference in a new issue