mirror of
https://abf.rosa.ru/djam/freecad.git
synced 2025-02-23 22:12:53 +00:00
commit
f74ccbb44b
3 changed files with 6 additions and 148 deletions
5
.abf.yml
5
.abf.yml
|
@ -1,5 +1,2 @@
|
||||||
removed_sources:
|
|
||||||
freecad-0.10.3247.tar.gz: c4f37b76256562452bde096ab8498e5758861fe9
|
|
||||||
freecad-0.13.1830.tar.gz: 82d58b91a28a4cd5d138666d2ed0f36bf18c0255
|
|
||||||
sources:
|
sources:
|
||||||
freecad-0.14.3702.tar.gz: 048f2aa9cabc71fa4e2b6e10c9a61d8e728faa36
|
FreeCAD-0.16.tar.gz: 5e8956588e87b18c8c4140cbdcaa1229c04907bb
|
||||||
|
|
|
@ -1,130 +0,0 @@
|
||||||
diff -Naur freecad-0.13.1830.orig/cMake/FreeCadMacros.cmake freecad-0.13.1830.qt4/cMake/FreeCadMacros.cmake
|
|
||||||
--- freecad-0.13.1830.orig/cMake/FreeCadMacros.cmake 2013-02-02 11:09:17.000000000 -0600
|
|
||||||
+++ freecad-0.13.1830.qt4/cMake/FreeCadMacros.cmake 2014-01-13 18:32:47.637368958 -0600
|
|
||||||
@@ -167,67 +167,48 @@
|
|
||||||
#
|
|
||||||
#endmacro(qt4_wrap_ui)
|
|
||||||
|
|
||||||
-
|
|
||||||
-# This is a special version of the built in macro qt4_add_resources that generates .cpp files
|
|
||||||
-#
|
|
||||||
-#macro(fc_add_resources outfiles )
|
|
||||||
-# #QT4_EXTRACT_OPTIONS(rcc_files rcc_options ${ARGN})
|
|
||||||
-# set(ARGN )
|
|
||||||
-# foreach (it ${rcc_files})
|
|
||||||
-# get_filename_component(outfilename ${it} NAME_WE)
|
|
||||||
-# get_filename_component(infile ${it} ABSOLUTE)
|
|
||||||
-# get_filename_component(rc_path ${infile} PATH)
|
|
||||||
-# set(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cpp)
|
|
||||||
-# # parse file for dependencies
|
|
||||||
-# # all files are absolute paths or relative to the location of the qrc file
|
|
||||||
-# file(READ "${infile}" _RC_FILE_CONTENTS)
|
|
||||||
-# string(REGEX MATCHALL "<file[^<]+" _RC_FILES "${_RC_FILE_CONTENTS}")
|
|
||||||
-# set(_RC_DEPENDS)
|
|
||||||
-# foreach(_RC_FILE ${_RC_FILES})
|
|
||||||
-# string(REGEX REPLACE "^<file[^>]*>" "" _RC_FILE "${_RC_FILE}")
|
|
||||||
-# string(REGEX MATCH "^/|([A-Za-z]:/)" _ABS_PATH_INDICATOR "${_RC_FILE}")
|
|
||||||
-# if(NOT _ABS_PATH_INDICATOR)
|
|
||||||
-# set(_RC_FILE "${rc_path}/${_RC_FILE}")
|
|
||||||
-# endif(NOT _ABS_PATH_INDICATOR)
|
|
||||||
-# set(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}")
|
|
||||||
-# endforeach(_RC_FILE)
|
|
||||||
-# add_custom_command(OUTPUT ${outfile}
|
|
||||||
-# COMMAND ${QT_RCC_EXECUTABLE}
|
|
||||||
-# ARGS ${rcc_options} -name ${outfilename} -o ${outfile} ${infile}
|
|
||||||
-# MAIN_DEPENDENCY ${infile}
|
|
||||||
-# DEPENDS ${_RC_DEPENDS})
|
|
||||||
-# set(${outfiles} ${${outfiles}} ${outfile})
|
|
||||||
-# endforeach (it)
|
|
||||||
-#endmacro(fc_add_resources)
|
|
||||||
-
|
|
||||||
MACRO (fc_add_resources outfiles )
|
|
||||||
- QT4_EXTRACT_OPTIONS(rcc_files rcc_options ${ARGN})
|
|
||||||
+ QT4_EXTRACT_OPTIONS(rcc_files rcc_options rcc_target ${ARGN})
|
|
||||||
+
|
|
||||||
+ foreach (it ${rcc_files})
|
|
||||||
+ get_filename_component(outfilename ${it} NAME_WE)
|
|
||||||
+ get_filename_component(infile ${it} ABSOLUTE)
|
|
||||||
+ get_filename_component(rc_path ${infile} PATH)
|
|
||||||
+ set(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cpp)
|
|
||||||
+
|
|
||||||
+ set(_RC_DEPENDS)
|
|
||||||
+ if(EXISTS "${infile}")
|
|
||||||
+ # parse file for dependencies
|
|
||||||
+ # all files are absolute paths or relative to the location of the qrc file
|
|
||||||
+ file(READ "${infile}" _RC_FILE_CONTENTS)
|
|
||||||
+ string(REGEX MATCHALL "<file[^<]+" _RC_FILES "${_RC_FILE_CONTENTS}")
|
|
||||||
+ foreach(_RC_FILE ${_RC_FILES})
|
|
||||||
+ string(REGEX REPLACE "^<file[^>]*>" "" _RC_FILE "${_RC_FILE}")
|
|
||||||
+ if(NOT IS_ABSOLUTE "${_RC_FILE}")
|
|
||||||
+ set(_RC_FILE "${rc_path}/${_RC_FILE}")
|
|
||||||
+ endif()
|
|
||||||
+ set(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}")
|
|
||||||
+ endforeach()
|
|
||||||
+ unset(_RC_FILES)
|
|
||||||
+ unset(_RC_FILE_CONTENTS)
|
|
||||||
+ # Since this cmake macro is doing the dependency scanning for these files,
|
|
||||||
+ # let's make a configured file and add it as a dependency so cmake is run
|
|
||||||
+ # again when dependencies need to be recomputed.
|
|
||||||
+ QT4_MAKE_OUTPUT_FILE("${infile}" "" "qrc.depends" out_depends)
|
|
||||||
+ configure_file("${infile}" "${out_depends}" COPY_ONLY)
|
|
||||||
+ else()
|
|
||||||
+ # The .qrc file does not exist (yet). Let's add a dependency and hope
|
|
||||||
+ # that it will be generated later
|
|
||||||
+ set(out_depends)
|
|
||||||
+ endif()
|
|
||||||
|
|
||||||
- FOREACH (it ${rcc_files})
|
|
||||||
- GET_FILENAME_COMPONENT(outfilename ${it} NAME_WE)
|
|
||||||
- GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
|
|
||||||
- GET_FILENAME_COMPONENT(rc_path ${infile} PATH)
|
|
||||||
- SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cpp)
|
|
||||||
- # parse file for dependencies
|
|
||||||
- # all files are absolute paths or relative to the location of the qrc file
|
|
||||||
- FILE(READ "${infile}" _RC_FILE_CONTENTS)
|
|
||||||
- STRING(REGEX MATCHALL "<file[^<]+" _RC_FILES "${_RC_FILE_CONTENTS}")
|
|
||||||
- SET(_RC_DEPENDS)
|
|
||||||
- FOREACH(_RC_FILE ${_RC_FILES})
|
|
||||||
- STRING(REGEX REPLACE "^<file[^>]*>" "" _RC_FILE "${_RC_FILE}")
|
|
||||||
- STRING(REGEX MATCH "^/|([A-Za-z]:/)" _ABS_PATH_INDICATOR "${_RC_FILE}")
|
|
||||||
- IF(NOT _ABS_PATH_INDICATOR)
|
|
||||||
- SET(_RC_FILE "${rc_path}/${_RC_FILE}")
|
|
||||||
- ENDIF(NOT _ABS_PATH_INDICATOR)
|
|
||||||
- SET(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}")
|
|
||||||
- ENDFOREACH(_RC_FILE)
|
|
||||||
- ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
|
|
||||||
+ add_custom_command(OUTPUT ${outfile}
|
|
||||||
COMMAND ${QT_RCC_EXECUTABLE}
|
|
||||||
ARGS ${rcc_options} -name ${outfilename} -o ${outfile} ${infile}
|
|
||||||
MAIN_DEPENDENCY ${infile}
|
|
||||||
- DEPENDS ${_RC_DEPENDS})
|
|
||||||
- SET(${outfiles} ${${outfiles}} ${outfile})
|
|
||||||
- ENDFOREACH (it)
|
|
||||||
+ DEPENDS ${_RC_DEPENDS} "${out_depends}" VERBATIM)
|
|
||||||
+ set(${outfiles} ${${outfiles}} ${outfile})
|
|
||||||
+ endforeach ()
|
|
||||||
|
|
||||||
ENDMACRO (fc_add_resources)
|
|
||||||
|
|
||||||
diff -Naur freecad-0.13.1830.orig/CMakeLists.txt freecad-0.13.1830.qt4/CMakeLists.txt
|
|
||||||
--- freecad-0.13.1830.orig/CMakeLists.txt 2014-01-10 10:56:16.648269370 -0600
|
|
||||||
+++ freecad-0.13.1830.qt4/CMakeLists.txt 2014-01-13 18:27:18.895600935 -0600
|
|
||||||
@@ -325,15 +325,15 @@
|
|
||||||
macro(fc_wrap_cpp outfiles )
|
|
||||||
# get include dirs
|
|
||||||
QT4_GET_MOC_FLAGS(moc_flags)
|
|
||||||
- QT4_EXTRACT_OPTIONS(moc_files moc_options ${ARGN})
|
|
||||||
+ QT4_EXTRACT_OPTIONS(moc_files moc_options moc_target ${ARGN})
|
|
||||||
# fixes bug 0000585: bug with boost 1.48
|
|
||||||
SET(moc_options ${moc_options} -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)
|
|
||||||
|
|
||||||
foreach(it ${moc_files})
|
|
||||||
get_filename_component(it ${it} ABSOLUTE)
|
|
||||||
QT4_MAKE_OUTPUT_FILE(${it} moc_ cpp outfile)
|
|
||||||
- QT4_CREATE_MOC_COMMAND(${it} ${outfile} "${moc_flags}" "${moc_options}")
|
|
||||||
- set(${outfiles} ${${outfiles}} ${outfile})
|
|
||||||
+ QT4_CREATE_MOC_COMMAND(${it} ${outfile} "${moc_flags}" "${moc_options}" "${moc_target}")
|
|
||||||
+ list(APPEND outfiles ${outfile})
|
|
||||||
add_file_dependencies(${it} ${outfile})
|
|
||||||
endforeach(it)
|
|
||||||
endmacro(fc_wrap_cpp)
|
|
17
freecad.spec
17
freecad.spec
|
@ -1,26 +1,23 @@
|
||||||
%define oname FreeCAD
|
%define oname FreeCAD
|
||||||
%define oversion 0.15.4664
|
|
||||||
|
|
||||||
Summary: FreeCAD is a general purpose 3D CAD modeler
|
Summary: FreeCAD is a general purpose 3D CAD modeler
|
||||||
Name: freecad
|
Name: freecad
|
||||||
Version: 0.15
|
Version: 0.16
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
Group: Graphics
|
Group: Graphics
|
||||||
Url: http://free-cad.sourceforge.net/
|
Url: http://www.freecadweb.org/
|
||||||
Source0: https://github.com/FreeCAD/FreeCAD/archive/%{oname}-%{version}.tar.gz
|
Source0: https://github.com/FreeCAD/FreeCAD/archive/%{oname}-%{version}.tar.gz
|
||||||
#http://dfn.dl.sourceforge.net/sourceforge/free-cad/
|
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
Source2: %{name}.1
|
Source2: %{name}.1
|
||||||
Source3: %{name}.rpmlintrc
|
Source3: %{name}.rpmlintrc
|
||||||
# Patch to build with non-backward compatible change in QT4.
|
|
||||||
# Patch1: freecad-0.13-qt4_cmake.patch
|
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: eigen3 >= 3.0.1
|
BuildRequires: eigen3 >= 3.0.1
|
||||||
BuildRequires: gcc-gfortran
|
BuildRequires: gcc-gfortran
|
||||||
BuildRequires: python-matplotlib
|
BuildRequires: python-matplotlib
|
||||||
|
BuildRequires: pyside-tools
|
||||||
BuildRequires: boost-devel >= 1.33.1
|
BuildRequires: boost-devel >= 1.33.1
|
||||||
|
BuildRequires: libspnav-devel
|
||||||
BuildRequires: opencascade-devel >= 5.2
|
BuildRequires: opencascade-devel >= 5.2
|
||||||
BuildRequires: qt4-devel
|
BuildRequires: qt4-devel
|
||||||
BuildRequires: pkgconfig(glu)
|
BuildRequires: pkgconfig(glu)
|
||||||
|
@ -81,7 +78,6 @@ find ./src -name "*.py*" |xargs chmod 755
|
||||||
find ./src -name "*.h*" |xargs chmod 644
|
find ./src -name "*.h*" |xargs chmod 644
|
||||||
find ./src -name "*.cpp*" |xargs chmod 644
|
find ./src -name "*.cpp*" |xargs chmod 644
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#define Werror_cflags %%nil
|
#define Werror_cflags %%nil
|
||||||
%cmake_qt4 -DCMAKE_BUILD_TYPE=Release \
|
%cmake_qt4 -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
@ -93,7 +89,6 @@ find ./src -name "*.cpp*" |xargs chmod 644
|
||||||
-DRESOURCEDIR=%{_libdir}/freecad
|
-DRESOURCEDIR=%{_libdir}/freecad
|
||||||
%make
|
%make
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall_std -C build
|
%makeinstall_std -C build
|
||||||
|
|
||||||
|
@ -105,19 +100,16 @@ ln -s ../%{_lib}/freecad/bin/FreeCADCmd .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Fix bogus perms
|
# Fix bogus perms
|
||||||
chmod +x %{buildroot}%{_libdir}/%{name}/bin/pivy/sogui.py
|
|
||||||
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/PartDesign/Scripts/*.py
|
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/PartDesign/Scripts/*.py
|
||||||
|
|
||||||
# Install and fix .desktop file
|
# Install and fix .desktop file
|
||||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||||
sed -i 's,@lib@,%{_lib},g' %{buildroot}%{_datadir}/applications/%{name}.desktop
|
sed -i 's,@lib@,%{_lib},g' %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
|
|
||||||
# Install desktop icon
|
# Install desktop icon
|
||||||
install -pD -m 0644 src/Gui/Icons/%{name}.svg \
|
install -pD -m 0644 src/Gui/Icons/%{name}.svg \
|
||||||
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
||||||
|
|
||||||
|
|
||||||
# Install man page
|
# Install man page
|
||||||
install -pD -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
|
install -pD -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
|
||||||
# Symlink manpage to other binary names
|
# Symlink manpage to other binary names
|
||||||
|
@ -126,7 +118,6 @@ pushd %{buildroot}%{_mandir}/man1
|
||||||
ln -sf %{name}.1.gz FreeCADCmd.1.gz
|
ln -sf %{name}.1.gz FreeCADCmd.1.gz
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
# FIXME: Apparently there are no more include files to install.
|
# FIXME: Apparently there are no more include files to install.
|
||||||
# For now keep the devel package and manually create the needed (empty) dir
|
# For now keep the devel package and manually create the needed (empty) dir
|
||||||
mkdir -p %{buildroot}%{_libdir}/%{name}/include
|
mkdir -p %{buildroot}%{_libdir}/%{name}/include
|
Loading…
Add table
Reference in a new issue