Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37567486
en ru br
ALT Linux repos
S:1.1.3-alt1.1

Group :: System/Libraries
RPM: librply

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _name rply

Name: lib%_name
Version: 1.1.3
Release: alt1.1

Summary: A library to read and write PLY files
Group: System/Libraries
License: MIT
Url: http://www.tecgraf.puc-rio.br/~diego/professional/%_name/

Source: http://www.tecgraf.puc-rio.br/~diego/professional/%_name/%_name-%version.tar.gz
Patch: %_name-1.01-cmake_build.patch

BuildRequires: cmake >= 2.6.0 gcc-c++

%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 -n %_name-%version
%patch -p1

%build
%add_optflags %(getconf LFS_CFLAGS)
%cmake -DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_VERBOSE_MAKEFILE=ON

pushd %_cmake__builddir
%make_build

%install
pushd %_cmake__builddir
%make DESTDIR=%buildroot install

%files
%_libdir/*.so.*
%_bindir/*
%doc LICENSE manual/*

%package devel
Summary: Libraries and headers for rply
Group: Development/C
Requires: %name = %version-%release

%description devel
Rply Library Header Files and Link Libraries

%files devel
%_includedir/%_name/
%_libdir/*.so
%_datadir/%_name/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin