THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

208802: OpenSceneGraph-3.4.1-alt1 +5 more

- cleanup spec
- disable build with wxWidgets (any reasons?) and Qt

FlightGear-2018.2.2-alt1

- new version (2018.2.2)
- rebuild against OpenSceneGraph 3.4.1

FlightGear-data-2018.2.2-alt1

- 2018.2.2

osgEarth-2.9-alt2

- NUM: rebuild against OpenSceneGraph 3.4.1

SimGear-2018.2.2-alt1

- new version (2018.2.2) with rpmgs script

Inventor-2.1.5-alt4

- cleanup spec
- fix build with std::abs (C++17)
- fix build on aarch64
master
Vitaly Lipatov Vitaly Chikunov 1 year ago
parent
commit
85bb3ff106

+ 15
- 7
F/FlightGear-data/FlightGear-data.spec View File

@@ -1,24 +1,29 @@
Name: FlightGear-data
Version: 2016.1.1
Version: 2018.2.2
Release: alt1

Summary: Data pack for FlightGear open-source flight simulator

License: GPL
Group: Games/Arcade

Url: http://www.flightgear.org

Packager: Michael Shigorin <mike@altlinux.org>

# Source-url: https://sourceforge.net/projects/flightgear/files/release-2018.2/FlightGear-%version-data.tar.bz2
Source: %name-%version.tar

BuildArch: noarch

AutoReqProv: no

Provides: fgfs-data = %version-%release
# to avoid data lurking w/o binaries
# NB: release intentionally left out
Requires: FlightGear = %version

BuildArch: noarch

# it's 450+ Mb of data
# it's more than two gigs of data
%brp_strip_none
%set_fixup_method skip
#set_strip_method none
@@ -46,10 +51,10 @@ interesting flight simulator ideas.
This package contains FlightGear documentation.

See also this nice and eagerly read tutorial:
http://www.4p8.com/eric.brasseur/flight_simulator_tutorial.html
http://ericbrasseur.org/flight_simulator_tutorial.html

%prep
%setup -n data
%setup

%install
mkdir -p %buildroot{%_datadir/flightgear,%_docdir}
@@ -64,12 +69,15 @@ mv * %buildroot%_datadir/flightgear/
find %buildroot -name 'Thumbs.db*' -print -delete

%files
%_datadir/flightgear
%_datadir/flightgear/

%files -n FlightGear-doc
%_docdir/FlightGear-%version

%changelog
* Sun Jun 24 2018 Vitaly Lipatov <lav@altlinux.ru> 2018.2.2-alt1
- 2018.2.2

* Sat Feb 20 2016 Michael Shigorin <mike@altlinux.org> 2016.1.1-alt1
- 2016.1


+ 39
- 30
F/FlightGear/FlightGear.spec View File

@@ -1,15 +1,18 @@
%def_without dbus

%define major 2018.2
Name: FlightGear
Version: 2016.1.1
Version: %major.2
Release: alt1

Summary: open-source flight simulator

License: GPL
Group: Games/Arcade

Url: http://www.flightgear.org
Source0: %name-%version.tar.gz

# Source0-url: https://sourceforge.net/projects/flightgear/files/release-%major/flightgear-%version.tar.bz2
Source0: %name-%version.tar
Source2: FlightGear.menu
Source3: FlightGear-22x22.xpm
Source4: FlightGear-32x32.xpm
@@ -25,15 +28,19 @@ Patch2: 0002-make-ShivaVG-and-FGAdminUI-static-libraries.patch
Patch5: 0005-explicitely-link-with-libX11.patch
Patch6: 0006-make-fglauncher-a-static-library.patch

Requires: fgfs-data = %version
Requires: FlightGear-data = %version
#Requires: fgrun >= 1.6.1

# Automatically added by buildreq on Sat Mar 03 2012
# optimized out: alternatives cmake-modules cpio ed elfutils fontconfig glibc-devel-static kde4libs libGL-devel libGLU-devel libICE-devel libOpenSceneGraph-devel libOpenThreads-devel libSM-devel libX11-devel libXau-devel libXext-devel libXt-devel libapr1-devel libaprutil1-devel libdb4-devel libdrm-devel libgdk-pixbuf libgpg-error libldap-devel libneon-devel libopenal-devel libqt4-declarative libqt4-qt3support libqt4-xmlpatterns libstdc++-devel pkg-config plib python-base shared-mime-info strace sysvinit-utils termutils time vim-common vim-minimal xorg-kbproto-devel xorg-xproto-devel xxd xz zlib-devel
BuildRequires: boost-devel-headers cmake fakeroot gcc-c++ imake libXi-devel libXmu-devel libalut-devel libfltk-devel libfreeglut-devel libjpeg-devel libpng-devel libsimgear-devel-static libsubversion-devel libudev-devel plib-devel rpm-utils sisyphus_check vim-console vitmp
BuildRequires: libsimgear-devel-static = %version
BuildRequires: libOpenSceneGraph-devel >= 3.4.0
BuildRequires: boost-devel >= 1.44
BuildRequires: plib-devel >= 1.8.5

BuildRequires: cmake libpng-devel libfltk-devel libudev-devel
BuildPreReq: libOpenSceneGraph-devel boost-devel libXres-devel
# TODO: fltk??
BuildRequires: rpm-macros-cmake cmake gcc-c++ imake libalut-devel libfltk-devel libfreeglut-devel libjpeg-devel libpng-devel

BuildRequires: libpng-devel libfltk-devel libudev-devel
BuildPreReq: libXres-devel libXi-devel libXmu-devel
BuildPreReq: libXtst-devel libXcomposite-devel libXcursor-devel
BuildPreReq: libXdamage-devel libXdmcp-devel libXfixes-devel
BuildPreReq: libXft-devel libXinerama-devel libxkbfile-devel
@@ -61,8 +68,8 @@ http://www.4p8.com/eric.brasseur/flight_simulator_tutorial.html
%prep
%setup
%patch1 -p1
%patch2 -p1
%patch5 -p1
#patch2 -p1
#patch5 -p1
%patch6 -p1

sed -i 's/\r//' docs-mini/AptNavFAQ.FlightGear.html
@@ -82,37 +89,39 @@ sed -i 's,/lib/FlightGear,/share/flightgear,' CMakeLists.txt
# http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg39430.html
rm -f src/Include/version.h

# TODO: link with external sqlite3
%ifarch e2k
# unsupported as of lcc-1.21.20
sed -i 's,-fno-fast-math,,' 3rdparty/sqlite3/CMakeLists.txt
%endif

%build
%cmake
%make_build -C BUILD VERBOSE=1
%cmake_build

%install
%makeinstall_std -C BUILD

install -pDm644 %SOURCE3 %buildroot%_miconsdir/%name.xpm
install -pDm644 %SOURCE4 %buildroot%_niconsdir/%name.xpm
install -pDm644 %SOURCE5 %buildroot%_liconsdir/%name.xpm

install -pDm644 %SOURCE10 %buildroot%_iconsdir/hicolor/16x16/apps/%name.png
install -pDm644 %SOURCE11 %buildroot%_iconsdir/hicolor/32x32/apps/%name.png
install -pDm644 %SOURCE12 %buildroot%_iconsdir/hicolor/48x48/apps/%name.png
install -pDm644 %SOURCE13 %buildroot%_iconsdir/hicolor/64x64/apps/%name.png
install -pDm644 %SOURCE14 %buildroot%_iconsdir/hicolor/128x128/apps/%name.png

install -pDm644 %SOURCE15 %buildroot%_desktopdir/%name.desktop
%cmakeinstall_std

rm -rf %buildroot%_datadir/locale
rm -rf %buildroot%_datadir/bash-completion/ %buildroot%_datadir/zsh/

%files
%_bindir/*
%_mandir/*/*
%_iconsdir/*/*/*/%name.png
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm
%_miconsdir/%name.xpm
%_desktopdir/%name.desktop
%_iconsdir/*/*/*/flightgear.*
%_desktopdir/org.flightgear.FlightGear.desktop

%changelog
* Thu Jun 21 2018 Vitaly Lipatov <lav@altlinux.ru> 2018.2.2-alt1
- new version (2018.2.2)
- rebuild against OpenSceneGraph 3.4.1

* Thu Sep 07 2017 Michael Shigorin <mike@altlinux.org> 2017.2.1-alt1
- 2017.2.1
+ dropped patch2 along with fgadmin
+ disabled patch5
- E2K: avoid lcc-unsupported option

* Sat Feb 20 2016 Michael Shigorin <mike@altlinux.org> 2016.1.1-alt1
- 2016.1


+ 29
- 4
I/Inventor/Inventor.spec View File

@@ -6,16 +6,20 @@

%def_with demos
%def_with examples
%def_with motif

Name: Inventor
Version: 2.1.5
Release: alt3.4
Release: alt4

Summary: SGI Open Inventor (TM)

License: LGPLv2+
Group: Development/C++
Url: https://github.com/aumuell/open-inventor

Packager: Michael Shigorin <mike@altlinux.org>

Url: http://oss.sgi.com/projects/inventor
Source: ftp://oss.sgi.com/projects/inventor/download/inventor-2.1.5-10.src.tar.gz
Patch: Inventor-2.1.5-30.diff.bz2
Patch1: Inventor-2.1.5-30-31.diff
@@ -24,7 +28,10 @@ Patch2: Inventor-2.1.5-31-32.diff
# Misc C++ modernization stuff
Patch3: Inventor-2.1.5-32-33.diff
Patch4: Inventor-2.1.5-alt-DSO.diff
Packager: Michael Shigorin <mike@altlinux.org>
# abs issue
Patch5: Inventor-2.1.5-abs-c++17.patch
# aarch64
Patch6: Inventor-2.1.5-64bit.patch

%define hackcxxflags -O2 -fno-strict-aliasing

@@ -38,7 +45,9 @@ BuildRequires: libXi-devel
BuildRequires: libX11-devel
BuildRequires: libXt-devel

%if_with motif
BuildRequires: libopenmotif-devel
%endif
BuildRequires: libfreetype-devel
BuildRequires: libjpeg-devel
BuildRequires: bison
@@ -46,6 +55,8 @@ BuildRequires: tcsh

BuildRequires: fonts-ttf-liberation rpm-macros-make

%add_optflags -funsigned-char

%description
SGI Open Inventor(TM) is an object-oriented 3D toolkit offering a
comprehensive solution to interactive graphics programming
@@ -73,6 +84,7 @@ Requires: libfreetype-devel libjpeg-devel
%description -n lib%name-devel
SGI Open Inventor (TM) development files

%if_with motif
%package -n libInventorXt
Summary: SGI Open Inventor (TM) Motif bindings
Group: System/Libraries
@@ -89,11 +101,13 @@ Requires: %name = %version-%release
Requires: libInventorXt = %version-%release
Requires: libInventor-devel = %version-%release
Requires: pkg-config
Requires: openmotif-devel
Requires: libopenmotif-devel

%description -n libInventorXt-devel
SGI Open Inventor (TM) development files

%endif

%if_with demos
%package demos
Summary: SGI Open Inventor (TM) Demos
@@ -133,6 +147,8 @@ find -name CVS | xargs rm -rf
%patch2 -p1
%patch3 -p1
%patch4 -p2
%patch5 -p1
%patch6 -p1

sed -i \
-e 's,^IVPREFIX =.*$,IVPREFIX = %prefix,' \
@@ -225,6 +241,8 @@ install -d -m755 %buildroot%_datadir/Inventor/data/materials
install -d -m755 %buildroot%_datadir/Inventor/data/textures
install -d -m755 %buildroot%_datadir/Inventor/fonts

rm -rf %buildroot/usr/X11R6/lib64/X11/app-defaults/

# Map Inventor's standard fonts
# Utopia, Helvetica and Courier to liberation-TTF fonts
# Times-Roman is being used by some examples
@@ -273,6 +291,7 @@ popd > /dev/null
%_man3dir/Sb*
%_man3dir/So[^X]*

%if_with motif
%files -n libInventorXt
%_bindir/SceneViewer
%_bindir/ivview
@@ -294,6 +313,7 @@ popd > /dev/null
%_libdir/libInventorXt.so
%_pkgconfigdir/libInventorXt*.pc
%_man3dir/SoXt*
%endif

%files data
%dir %_datadir/Inventor
@@ -316,6 +336,11 @@ popd > /dev/null
%endif

%changelog
* Wed Jun 20 2018 Vitaly Lipatov <lav@altlinux.ru> 2.1.5-alt4
- cleanup spec
- fix build with std::abs (C++17)
- fix build on aarch64

* Thu Jun 07 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.5-alt3.4
- Fixed build


+ 41
- 36
O/OpenSceneGraph/OpenSceneGraph.spec View File

@@ -1,3 +1,12 @@
# TODO: with additional buildreqs it builds
# /usr/bin/osgQtBrowser
# /usr/bin/osgQtWidgets
# /usr/bin/osgqfont
# /usr/bin/osgviewerFLTK
# /usr/bin/osgviewerQt
# /usr/bin/osgviewerWX


#
# Copyright (c) 2005, 2006, 2007, 2008, 2009 Ralf Corsepius, Ulm, Germany.
# Copyright (c) 2009 Michael Shigorin
@@ -5,25 +14,29 @@
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

%define apiver 3.4.0
%define osgbranch 3.4

Name: OpenSceneGraph
Version: 3.4.0
Version: 3.4.1
Release: alt1

Summary: High performance real-time graphics toolkit

License: OSGPL (wxWidgets, clarified LGPL)
Group: System/Libraries

Url: http://www.openscenegraph.org
Source: %url/downloads/stable_releases/OpenSceneGraph-%osgbranch/OpenSceneGraph-%version.zip
Patch: OpenSceneGraph-3.0.0-alt-cmake.patch

Packager: Michael Shigorin <mike@altlinux.org>

# Source-url: https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-%version.tar.gz
Source: %name-%version.tar

# thanks, Fedora
Patch1: 0001-Cmake-fixes.patch
Patch2: 0003-Unset-DOT_FONTNAME.patch
Patch3: 0005-c-11-narrowing-hacks-Work-around-c-11-erroring-out-n.patch

# Automatically added by buildreq on Wed Nov 30 2011
# optimized out: cmake-modules fontconfig fontconfig-devel fonts-ttf-liberation glib2-devel libGL-devel libGLU-devel libICE-devel libSM-devel libX11-devel libXau-devel libXcursor-devel libXext-devel libXfixes-devel libXft-devel libXi-devel libXinerama-devel libXmu-devel libXrandr-devel libXrender-devel libXt-devel libXv-devel libatk-devel libcairo-devel libcurl-devel libfreetype-devel libgdk-pixbuf libgdk-pixbuf-devel libgio-devel libgtk+2-devel libjpeg-devel libpango-devel libpng-devel libpoppler8-glib libqt4-core libqt4-dbus libqt4-devel libqt4-gui libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql-sqlite libqt4-svg libqt4-webkit libqt4-xml libstdc++-devel libtiff-devel pkg-config xml-utils xorg-kbproto-devel xorg-randrproto-devel xorg-renderproto-devel xorg-xf86miscproto-devel xorg-xproto-devel zlib-devel
BuildRequires: cmake doxygen gcc-c++ gnuplot graphviz libInventor-devel libSDL-devel libXScrnSaver-devel libXcomposite-devel libXdmcp-devel libXpm-devel libXtst-devel libXxf86misc-devel libfreeglut-devel libgif-devel libgtkglext-devel libopenal-devel libpoppler-glib-devel librsvg-devel libwxGTK-devel libxkbfile-devel libxml2-devel phonon-devel unzip wget
BuildRequires: rpm-macros-cmake cmake doxygen gcc-c++ gnuplot graphviz libInventor-devel libSDL-devel libXScrnSaver-devel libXcomposite-devel libXdmcp-devel libXpm-devel libXtst-devel libXxf86misc-devel libfreeglut-devel libgif-devel libgtkglext-devel libopenal-devel libpoppler-glib-devel librsvg-devel libxkbfile-devel libxml2-devel wget libgta-devel

#BuildRequires: libpixman-devel
BuildRequires: libtiff-devel
@@ -41,25 +54,25 @@ for rapid development of graphics applications.

%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

# path to install examples (instead the patch)
%__subst "s|share/OpenSceneGraph/bin|bin|" CMakeModules/OsgMacroUtils.cmake

%build
mkdir BUILD
pushd BUILD
cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX:PATH=%_usr \
-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_WRAPPERS=ON -DBUILD_DOCUMENTATION=ON \
..
# still uses single CPU core
%make_build VERBOSE=1
make doc_openscenegraph doc_openthreads
popd
%cmake -DCMAKE_BUILD_TYPE="Release" \
-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_WRAPPERS=ON -DBUILD_DOCUMENTATION=ON
%cmake_build

%install
pushd BUILD
%makeinstall_std
%cmakeinstall_std
# Supposed to take OpenSceneGraph data
mkdir -p %buildroot%_datadir/OpenSceneGraph
popd

# hack for 3.4.x (it is ok since 3.6.0)
rm -rf %buildroot/usr/doc/

%files
%doc AUTHORS.txt LICENSE.txt NEWS.txt README.txt
@@ -78,7 +91,7 @@ Requires: libOpenThreads = %version-%release
Runtime libraries files for OpenSceneGraph

%files -n lib%name
%_libdir/osgPlugins-%apiver
%_libdir/osgPlugins-*
%_libdir/libosg*.so.*

%package -n lib%name-devel
@@ -119,18 +132,6 @@ OSG sample applications using SDL
#files examples-fltk
#_bindir/osgviewerFLTK

%package examples-qt
Summary: OSG sample applications using qt
Group: Development/Documentation

%description examples-qt
OSG sample applications using qt

%files examples-qt
%_bindir/osgviewerQt
%_bindir/osgQtBrowser
%_bindir/osgQtWidgets

# OpenSceneGraph-examples
%package examples
Summary: Sample applications for OpenSceneGraph
@@ -150,7 +151,7 @@ Sample applications for OpenSceneGraph
%_bindir/osgoutline
%_bindir/osgparticleshader
%_bindir/osgposter
%_bindir/osgqfont
#_bindir/osgqfont
%_bindir/osgshadercomposition
%_bindir/osgshadergen
%_bindir/osgtexturecompression
@@ -281,7 +282,7 @@ Sample applications for OpenSceneGraph
%_bindir/osgunittests
%_bindir/osgvertexprogram
%_bindir/osgviewerGLUT
%_bindir/osgviewerWX
#_bindir/osgviewerWX
%_bindir/osgvolume
%_bindir/osgwindows

@@ -341,6 +342,10 @@ Development files for OpenThreads
%_includedir/OpenThreads

%changelog
* Thu Jun 21 2018 Vitaly Lipatov <lav@altlinux.ru> 3.4.1-alt1
- cleanup spec
- disable build with wxWidgets (any reasons?) and Qt

* Wed Sep 30 2015 Michael Shigorin <mike@altlinux.org> 3.4.0-alt1
- 3.4.0
- updated example filelist

+ 18
- 6
S/SimGear/SimGear.spec View File

@@ -1,22 +1,26 @@
%define major 2018.2
Name: SimGear
Version: 2016.1.1
Version: %major.2
Release: alt1

Summary: Simulator Construction Tools

License: GPL
Group: System/Libraries

Url: http://www.flightgear.org

Packager: Michael Shigorin <mike@altlinux.org>
Source: %name-%version.tar.gz

# Source-url: https://sourceforge.net/projects/flightgear/files/release-%major/simgear-%version.tar.bz2
Source: %name-%version.tar
Patch0: simgear-3.2.0-fedora-format.patch
Patch1: simgear-3.6.0-fedora-aarch64.patch

# Automatically added by buildreq on Sat Mar 03 2012
# optimized out: cmake-modules libGL-devel libICE-devel libOpenThreads-devel libSM-devel libX11-devel libXau-devel libXext-devel libopenal-devel libstdc++-devel xorg-kbproto-devel xorg-xproto-devel
BuildRequires: boost-devel-headers cmake gcc-c++ libGLU-devel libOpenSceneGraph-devel libXi-devel libXt-devel libalut-devel libapr1-devel zlib-devel
BuildRequires: boost-devel-headers cmake gcc-c++ libGLU-devel libOpenSceneGraph-devel libXi-devel libXt-devel libalut-devel libapr1-devel zlib-devel libcurl-devel

BuildRequires: cmake libapr1-devel libsubversion-devel
BuildRequires: cmake libapr1-devel

%description
SimGear is a set of open-source libraries designed to be used
@@ -30,7 +34,10 @@ Provides: SimGear = %version
Provides: SimGear-devel = %version
Obsoletes: SimGear-devel < 1.0.0
Conflicts: SimGear-devel < 1.0.0
Requires: libOpenSceneGraph-devel

# from SimGearTargets.cmake
Requires: libOpenSceneGraph-devel libOpenThreads-devel
Requires: zlib-devel libcurl-devel libopenal-devel libGL-devel libGLU-devel

%description -n libsimgear-devel-static
SimGear is a set of open-source libraries designed to be used as
@@ -43,6 +50,7 @@ This package contains header files for SimGear.
%setup
%patch0 -p1
%patch1 -p1
%__subst "s|\${CMAKE_INSTALL_LIBDIR}/cmake/SimGear|%_libdir/cmake/SimGear|" CMakeLists.txt

%build
%add_optflags %optflags_shared
@@ -55,8 +63,12 @@ This package contains header files for SimGear.
%files -n libsimgear-devel-static
%_libdir/*.a
%_includedir/simgear
%_libdir/cmake/SimGear/

%changelog
* Thu Jun 21 2018 Vitaly Lipatov <lav@altlinux.ru> 2018.2.2-alt1
- new version (2018.2.2) with rpmgs script

* Sat Feb 20 2016 Michael Shigorin <mike@altlinux.org> 2016.1.1-alt1
- 2016.1


+ 4
- 1
o/osgEarth/osgEarth.spec View File

@@ -2,7 +2,7 @@

Name: osgEarth
Version: 2.9
Release: alt1
Release: alt2

Summary: Dynamic map generation toolkit for OpenSceneGraph
License: LGPL
@@ -120,6 +120,9 @@ popd
%_datadir/osgEarth

%changelog
* Sat Jun 23 2018 Vitaly Lipatov <lav@altlinux.ru> 2.9-alt2
- NUM: rebuild against OpenSceneGraph 3.4.1

* Fri Feb 09 2018 Andrey Cherepanov <cas@altlinux.org> 2.9-alt1
- New version.
- Drop obsoleted patch.

Loading…
Cancel
Save