From 87316eea4cc041986e437e75504e37ce80c980af Mon Sep 17 00:00:00 2001 From: mrceresa Date: Sat, 6 Mar 2010 12:25:37 +0000 Subject: [PATCH 1/5] Sat Mar 06 2010 Initial import in F-12 --- .cvsignore | 1 + import.log | 1 + rply.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++ rply_CMakeLists.txt | 30 +++++++++++++++++ sources | 1 + 5 files changed, 115 insertions(+) create mode 100644 import.log create mode 100644 rply.spec create mode 100644 rply_CMakeLists.txt diff --git a/.cvsignore b/.cvsignore index e69de29..ed18902 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +rply-1.01.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..53ae902 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rply-1_01-2_fc12:F-12:rply-1.01-2.fc12.src.rpm:1267878276 diff --git a/rply.spec b/rply.spec new file mode 100644 index 0000000..e362e72 --- /dev/null +++ b/rply.spec @@ -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 diff --git a/rply_CMakeLists.txt b/rply_CMakeLists.txt new file mode 100644 index 0000000..fa2fcd8 --- /dev/null +++ b/rply_CMakeLists.txt @@ -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) + + diff --git a/sources b/sources index e69de29..0a7ebb8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +694dca3449a3f5cefd4144137dfae332 rply-1.01.tar.gz From c572c93d1c7a354a961d3e932432f1d541b38799 Mon Sep 17 00:00:00 2001 From: mrceresa Date: Tue, 23 Mar 2010 23:34:35 +0000 Subject: [PATCH 2/5] Adds CMake configuration export commands to fix bug 575606 --- RPLYConfig.cmake.in | 9 +++++++++ import.log | 1 + rply.spec | 15 ++++++++++++++- rply_CMakeLists.txt | 7 +++++++ rply_cmake_export_cmakelists.txt | 26 ++++++++++++++++++++++++++ 5 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 RPLYConfig.cmake.in create mode 100644 rply_cmake_export_cmakelists.txt diff --git a/RPLYConfig.cmake.in b/RPLYConfig.cmake.in new file mode 100644 index 0000000..10dee9e --- /dev/null +++ b/RPLYConfig.cmake.in @@ -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@") + + + + diff --git a/import.log b/import.log index 53ae902..8aaf73b 100644 --- a/import.log +++ b/import.log @@ -1 +1,2 @@ rply-1_01-2_fc12:F-12:rply-1.01-2.fc12.src.rpm:1267878276 +rply-1_01-3_fc12:F-12:rply-1.01-3.fc12.src.rpm:1269387229 diff --git a/rply.spec b/rply.spec index e362e72..777ccb5 100644 --- a/rply.spec +++ b/rply.spec @@ -1,12 +1,14 @@ Name: rply Version: 1.01 -Release: 2%{?dist} +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 @@ -32,6 +34,12 @@ efficient, and well tested. The highlights are: # 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 . @@ -73,8 +81,13 @@ Rply Library Header Files and Link Libraries %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 diff --git a/rply_CMakeLists.txt b/rply_CMakeLists.txt index fa2fcd8..a5a36d8 100644 --- a/rply_CMakeLists.txt +++ b/rply_CMakeLists.txt @@ -4,6 +4,9 @@ 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} @@ -27,4 +30,8 @@ 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 ) + + diff --git a/rply_cmake_export_cmakelists.txt b/rply_cmake_export_cmakelists.txt new file mode 100644 index 0000000..896696e --- /dev/null +++ b/rply_cmake_export_cmakelists.txt @@ -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 +) From 663732331a4b5f607e0294f812e8f237e8aa3d7e Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 8 May 2010 02:21:06 +0000 Subject: [PATCH 3/5] Initialize branch EL-6 for rply --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..46381b9 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-6 From fa39f0a706c47e377d9358409f3c2b0b7e627b89 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 11:35:48 +0000 Subject: [PATCH 4/5] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 2 -- 4 files changed, 24 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 758cb8f..0000000 --- a/Makefile +++ /dev/null @@ -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) diff --git a/branch b/branch deleted file mode 100644 index 46381b9..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-6 diff --git a/import.log b/import.log deleted file mode 100644 index 8aaf73b..0000000 --- a/import.log +++ /dev/null @@ -1,2 +0,0 @@ -rply-1_01-2_fc12:F-12:rply-1.01-2.fc12.src.rpm:1267878276 -rply-1_01-3_fc12:F-12:rply-1.01-3.fc12.src.rpm:1269387229 From 91423e7f4039bba8ef5ac9bada3d883f76c16ffe Mon Sep 17 00:00:00 2001 From: Till Maas Date: Wed, 19 Oct 2016 08:45:27 +0200 Subject: [PATCH 5/5] 2016-10-19: Retired orphaned package, because it was orphaned for more than six weeks. --- .gitignore | 1 - RPLYConfig.cmake.in | 9 --- dead.package | 3 + rply.spec | 95 -------------------------------- rply_CMakeLists.txt | 37 ------------- rply_cmake_export_cmakelists.txt | 26 --------- sources | 1 - 7 files changed, 3 insertions(+), 169 deletions(-) delete mode 100644 .gitignore delete mode 100644 RPLYConfig.cmake.in create mode 100644 dead.package delete mode 100644 rply.spec delete mode 100644 rply_CMakeLists.txt delete mode 100644 rply_cmake_export_cmakelists.txt delete mode 100644 sources diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ed18902..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -rply-1.01.tar.gz diff --git a/RPLYConfig.cmake.in b/RPLYConfig.cmake.in deleted file mode 100644 index 10dee9e..0000000 --- a/RPLYConfig.cmake.in +++ /dev/null @@ -1,9 +0,0 @@ -# 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@") - - - - diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..161cbda --- /dev/null +++ b/dead.package @@ -0,0 +1,3 @@ +2016-10-19: Retired orphaned package, because it was orphaned for +more than six weeks. + diff --git a/rply.spec b/rply.spec deleted file mode 100644 index 777ccb5..0000000 --- a/rply.spec +++ /dev/null @@ -1,95 +0,0 @@ -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 diff --git a/rply_CMakeLists.txt b/rply_CMakeLists.txt deleted file mode 100644 index a5a36d8..0000000 --- a/rply_CMakeLists.txt +++ /dev/null @@ -1,37 +0,0 @@ -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 ) - - - diff --git a/rply_cmake_export_cmakelists.txt b/rply_cmake_export_cmakelists.txt deleted file mode 100644 index 896696e..0000000 --- a/rply_cmake_export_cmakelists.txt +++ /dev/null @@ -1,26 +0,0 @@ -# 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 -) diff --git a/sources b/sources deleted file mode 100644 index 0a7ebb8..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -694dca3449a3f5cefd4144137dfae332 rply-1.01.tar.gz