Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
ed8546097b dist-git conversion 2010-07-29 11:35:48 +00:00
mrceresa
54fe835d77 Adds CMake configuration export commands to fix bug 575606 2010-03-24 00:14:28 +00:00
mrceresa
1eac3f93f6 Sat Mar 06 2010 Initial import in F-11 2010-03-06 14:10:30 +00:00
Kevin Fenzi
a50e25fbe8 Initialize branch F-11 for rply 2010-03-06 05:34:28 +00:00
8 changed files with 169 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
rply-1.01.tar.gz

View file

@ -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
View 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
View 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
View 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 )

View 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
)

View file

@ -0,0 +1 @@
694dca3449a3f5cefd4144137dfae332 rply-1.01.tar.gz