Adds CMake configuration export commands to fix bug 575606

This commit is contained in:
mrceresa 2010-03-22 09:15:28 +00:00
commit 5c7ccd86ab
5 changed files with 56 additions and 1 deletions

View file

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