Adds rpm specs to migration repo
This commit is contained in:
1 parent
acee7b8766
commit
7f035543e2
145 files changed
+13982
No files matched your search
+111
@@ -0,0 +1,111 @@
|
||||
#
|
||||
# spec file for package OpenSceneGraph (Version 3.1.7)
|
||||
# $Revision$
|
||||
# $Date$
|
||||
# $Id$
|
||||
#
|
||||
|
||||
%define real_name NGS
|
||||
|
||||
Name: NGS
|
||||
Provides: %{name}
|
||||
|
||||
Requires: ace
|
||||
Requires: log4cplus
|
||||
Requires: ScoreConfiguration
|
||||
Requires: ScoreGeometry
|
||||
Requires: ScoreGeodesy
|
||||
Requires: tao
|
||||
|
||||
BuildRequires: ace-devel
|
||||
BuildRequires: ace-xml-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: pkgconfig(log4cplus)
|
||||
BuildRequires: ScoreConfiguration-devel
|
||||
BuildRequires: ScoreGeometry-devel
|
||||
BuildRequires: ScoreGeodesy-devel
|
||||
BuildRequires: tao-devel
|
||||
License: commercial
|
||||
Group: System/Libraries
|
||||
Summary: NGS ... no need to write more
|
||||
Version: 14.1.1
|
||||
Release: 2
|
||||
Source: %{name}-v%{version}.zip
|
||||
Patch1: %{name}-v%{version}.patch
|
||||
AutoReqProv: no
|
||||
|
||||
%debug_package
|
||||
|
||||
%description
|
||||
NGS - Middleware for HLA
|
||||
|
||||
%package devel
|
||||
Requires: %{name}
|
||||
Provides: %{name}-devel
|
||||
License: commercial
|
||||
Group: Development/Libraries
|
||||
Summary: NGS ... no need to write more
|
||||
|
||||
%description devel
|
||||
NGS - Middleware for HLA - devel package
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-v%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
builddir=%{_builddir}/%{buildsubdir}-build
|
||||
rm -rf ${builddir}
|
||||
mkdir -p ${builddir}
|
||||
cd ${builddir}
|
||||
cp %{_builddir}/%{buildsubdir}/load.cmake .
|
||||
cmake -Wno-dev \
|
||||
-C load.cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=${builddir}/NGSPublic \
|
||||
-DNGS_PUBLIC_DIR=${builddir}/NGSPublic \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
%{_builddir}/%{buildsubdir}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
builddir=%{_builddir}/%{buildsubdir}-build
|
||||
ngsdir=%{buildroot}/opt/NGS/
|
||||
ngspubdir=${ngsdir}/NGSPublic
|
||||
cd ${builddir}
|
||||
mkdir -p ${ngsdir}
|
||||
cp -r ${builddir}/NGSPublic ${ngsdir}
|
||||
|
||||
%clean
|
||||
%{__rm} -rf '%{buildroot}'
|
||||
%{__rm} -rf '%{_builddir}/%{buildsubdir}'
|
||||
%{__rm} -rf '%{_builddir}/%{buildsubdir}-build'
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,755)
|
||||
/opt/NGS/NGSPublic/dat
|
||||
/opt/NGS/NGSPublic/env
|
||||
/opt/NGS/NGSPublic/exe
|
||||
/opt/NGS/NGSPublic/lib
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,755)
|
||||
/opt/NGS/NGSPublic/doc
|
||||
/opt/NGS/NGSPublic/include
|
||||
/opt/NGS/NGSPublic/internalinclude
|
||||
/opt/NGS/NGSPublic/plugininclude
|
||||
/opt/NGS/NGSPublic/scripts
|
||||
/opt/NGS/NGSPublic/templates
|
||||
|
||||
%post
|
||||
echo "/opt/NGS/NGSPublic/lib" > /etc/ld.so.conf.d/ngs.conf
|
||||
echo "/opt/NGS/NGSPublic/lib/CorbaNotifyCdr" >> /etc/ld.so.conf.d/ngs.conf
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
rm /etc/ld.so.conf.d/ngs.conf
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Tue Mar 12 2019 Christian Ehrlicher
|
||||
- initial version v14.1.1
|
||||
Reference in new issue
Block a user