- Initial import

This commit is contained in:
mrceresa 2010-03-06 12:09:00 +00:00
commit 5bcbc99d9c
5 changed files with 115 additions and 0 deletions

View file

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

1
import.log Normal file
View file

@ -0,0 +1 @@
rply-1_01-2_fc12:HEAD:rply-1.01-2.fc12.src.rpm:1267876689

82
rply.spec Normal file
View file

@ -0,0 +1,82 @@
Name: rply
Version: 1.01
Release: 2%{?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
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
%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
%changelog
* 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

30
rply_CMakeLists.txt Normal file
View file

@ -0,0 +1,30 @@
PROJECT(rply)
cmake_minimum_required(VERSION 2.6)
SET(RPLY_LIB_MAJOR_VERSION 1)
SET(RPLY_LIB_MINOR_VERSION 01)
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)

View file

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