86 lines
2.0 KiB
RPMSpec
Executable File
86 lines
2.0 KiB
RPMSpec
Executable File
#
|
|
# spec file for package OpenSceneGraph (Version 3.1.7)
|
|
# $Revision$
|
|
# $Date$
|
|
# $Id$
|
|
#
|
|
|
|
%define real_name ScoreGeodesy
|
|
|
|
Name: ScoreGeodesy
|
|
Provides: %{name}
|
|
Requires: ScoreGeometry
|
|
BuildRequires: cmake
|
|
BuildRequires: ScoreGeometry-devel
|
|
License: commercial
|
|
Group: System/Libraries
|
|
Summary: Perform coordinate transformations and calculations
|
|
Version: 3.3.8
|
|
Release: 1
|
|
Source: %{name}-%{version}.tar.gz
|
|
Patch1: %{name}-%{version}.patch
|
|
AutoReqProv: no
|
|
|
|
%debug_package
|
|
|
|
%description
|
|
The main purpose of the Score Geodesy library is to provide a package with
|
|
classes and functions for fullfilling the following tasks:
|
|
|
|
performing coordinates transformations from one coordinate system to another
|
|
performing geodetic calculations like distance between two points, courses etc.
|
|
initializing and defining projections
|
|
|
|
%package devel
|
|
#BuildRequires: -
|
|
Requires: %{name}
|
|
Provides: %{name}-devel
|
|
License: commercial
|
|
Group: Development/Libraries
|
|
Summary: Supports vector computation in 2-D and 3-D space
|
|
|
|
%description devel
|
|
You need this package, if you want to compile programs with Geodesy
|
|
|
|
%prep
|
|
%setup -q -n %{name}-v%{version}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
builddir=%{_builddir}/%{buildsubdir}-build
|
|
rm -rf ${builddir}
|
|
mkdir -p ${builddir}
|
|
cd ${builddir}
|
|
cmake -Wno-dev \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-DINSTALL_PATH_LIB=lib64 \
|
|
%{_builddir}/%{buildsubdir}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
builddir=%{_builddir}/%{buildsubdir}-build
|
|
cd ${builddir}
|
|
make DESTDIR=%{buildroot} install %{_smp_mflags}
|
|
|
|
%clean
|
|
%{__rm} -rf '%{buildroot}'
|
|
%{__rm} -rf '%{_builddir}/%{buildsubdir}'
|
|
%{__rm} -rf '%{_builddir}/%{buildsubdir}-build'
|
|
|
|
%files
|
|
%defattr(-,root,root,755)
|
|
%{_prefix}/lib64/
|
|
|
|
%files devel
|
|
%defattr(-,root,root,755)
|
|
%{_prefix}/include/
|
|
%{_prefix}/doc
|
|
%{_prefix}/cmake
|
|
|
|
%changelog
|
|
* Wed Aug 22 2018 Christian Ehrlicher
|
|
- update to 3.3.8
|
|
* Sun Jan 23 2011 Christian Ehrlicher
|
|
- initial version
|