Group :: Gráficos
RPM: structuresynth
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define svn_release svn312
%define our_release alt6
Name: structuresynth
Version: 1.5.0
Release: %our_release.%svn_release
Summary: Application for generating 3D structures by specifying a design grammar
License: %gpl3only or %lgpl21only
Group: Graphics
Url: http://structuresynth.sourceforge.net
# Blender doesn't officially support 32-bit build since 2.80. See also:
# https://developer.blender.org/T67184
ExcludeArch: %ix86 %arm
Source: %name-%version.tar
Patch1: %name-%version-alt-gcc6.patch
Patch2: %name-%version-alt-qt-compat.patch
BuildRequires(pre): rpm-macros-branch rpm-build-licenses rpm-build-python3
BuildRequires: qt5-base-devel gcc-c++ ImageMagick-tools python-tools-2to3
BuildRequires: qt5-script-devel libGLU-devel libGLUT-devel
%add_python3_path %_datadir/%name/Misc
%add_python3_req_skip Blender.Mathutils
%add_python3_req_skip Blender
Requires: blender
%description
Structure Synth is a cross-platform application for generating 3D structures by
specifying a design grammar. Even simple systems may generate surprising and
complex structures. The design grammar approach was originally devised by Chris
Coyne.
For a 2D implementation see the popular Context Free Art (apt-get install cfdg-fe).
Structure Synth offers a graphical environment with multiple tabs, syntax
highlighting, and OpenGL preview. Integration with third-party renderers (such
as Sunflow and POV-Ray) is possible using a flexible template based export
system.
%prep
%setup
%patch1 -p1
%patch2 -p1
rm -rf Examples/DontDeploy
2to3 -w Misc/Blender_Importer_2.py
%build
%add_optflags -I%_includedir/GL
#qmake-qt5 -project \
# -after "CONFIG+=opengl" \
# -after "QT+=xml opengl script" \
# -after "LIBS+=-lGLU"
qmake-qt5 QMAKE_CXXFLAGS="%optflags" \
StructureSynth.pro
%make_build V=1
%install
install -pDm0755 structuresynth-1 %buildroot%_bindir/structuresynth
# data files
mkdir -p %buildroot%_datadir/%name/
cp -ar Examples Misc %buildroot%_datadir/%name/
# .desktop and icons
install -pDm0644 structure-synth.desktop %buildroot%_desktopdir/structuresynth.desktop
install -pDm0644 images/structuresynth.png %buildroot%_miconsdir/structuresynth.png
convert -size 48x48 images/fileicons/StructureSynth-256.png structuresynth48x48.png
install -pDm0644 structuresynth48x48.png %buildroot%_liconsdir/structuresynth.png
install -pDm0644 images/fileicons/StructureSynth-256.png %buildroot%_iconsdir/hicolor/128x128/structuresynth.png
%files
%doc LICENSE.README LICENSE.GPL3 LICENSE.LGPL
%doc bugs.txt changelog.txt notes.txt roadmap.txt
%_bindir/*
%_datadir/%name/
%_desktopdir/*
%_miconsdir/*
%_liconsdir/*
%_iconsdir/hicolor/128x128/*
%changelog
…
Todas as alterações você pod ver aqui
%define svn_release svn312
%define our_release alt6
Name: structuresynth
Version: 1.5.0
Release: %our_release.%svn_release
Summary: Application for generating 3D structures by specifying a design grammar
License: %gpl3only or %lgpl21only
Group: Graphics
Url: http://structuresynth.sourceforge.net
# Blender doesn't officially support 32-bit build since 2.80. See also:
# https://developer.blender.org/T67184
ExcludeArch: %ix86 %arm
Source: %name-%version.tar
Patch1: %name-%version-alt-gcc6.patch
Patch2: %name-%version-alt-qt-compat.patch
BuildRequires(pre): rpm-macros-branch rpm-build-licenses rpm-build-python3
BuildRequires: qt5-base-devel gcc-c++ ImageMagick-tools python-tools-2to3
BuildRequires: qt5-script-devel libGLU-devel libGLUT-devel
%add_python3_path %_datadir/%name/Misc
%add_python3_req_skip Blender.Mathutils
%add_python3_req_skip Blender
Requires: blender
%description
Structure Synth is a cross-platform application for generating 3D structures by
specifying a design grammar. Even simple systems may generate surprising and
complex structures. The design grammar approach was originally devised by Chris
Coyne.
For a 2D implementation see the popular Context Free Art (apt-get install cfdg-fe).
Structure Synth offers a graphical environment with multiple tabs, syntax
highlighting, and OpenGL preview. Integration with third-party renderers (such
as Sunflow and POV-Ray) is possible using a flexible template based export
system.
%prep
%setup
%patch1 -p1
%patch2 -p1
rm -rf Examples/DontDeploy
2to3 -w Misc/Blender_Importer_2.py
%build
%add_optflags -I%_includedir/GL
#qmake-qt5 -project \
# -after "CONFIG+=opengl" \
# -after "QT+=xml opengl script" \
# -after "LIBS+=-lGLU"
qmake-qt5 QMAKE_CXXFLAGS="%optflags" \
StructureSynth.pro
%make_build V=1
%install
install -pDm0755 structuresynth-1 %buildroot%_bindir/structuresynth
# data files
mkdir -p %buildroot%_datadir/%name/
cp -ar Examples Misc %buildroot%_datadir/%name/
# .desktop and icons
install -pDm0644 structure-synth.desktop %buildroot%_desktopdir/structuresynth.desktop
install -pDm0644 images/structuresynth.png %buildroot%_miconsdir/structuresynth.png
convert -size 48x48 images/fileicons/StructureSynth-256.png structuresynth48x48.png
install -pDm0644 structuresynth48x48.png %buildroot%_liconsdir/structuresynth.png
install -pDm0644 images/fileicons/StructureSynth-256.png %buildroot%_iconsdir/hicolor/128x128/structuresynth.png
%files
%doc LICENSE.README LICENSE.GPL3 LICENSE.LGPL
%doc bugs.txt changelog.txt notes.txt roadmap.txt
%_bindir/*
%_datadir/%name/
%_desktopdir/*
%_miconsdir/*
%_liconsdir/*
%_iconsdir/hicolor/128x128/*
%changelog
…
Todas as alterações você pod ver aqui