forked from pool/librecad
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
2e067a5237 | ||
| d0e87d95f3 | |||
| 54800af9b5 | |||
| 495439ce39 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fcb888a550f1f515ef6a2f7af2dd02605dd5c6da8a23f6c3a52479f8532ac109
|
||||
size 13645528
|
||||
@@ -1,44 +0,0 @@
|
||||
build: avoid using bundled libdxfrw
|
||||
[asterios.dramis@gmail.com: imported the patch from Fedora into openSUSE's librecad]
|
||||
[jslaby@suse.com: rebase/rework on top of 2.1.0]
|
||||
|
||||
---
|
||||
libraries/libraries.pro | 1 -
|
||||
librecad/src/src.pro | 5 ++---
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
Index: LibreCAD-2.2.0.2/libraries/libraries.pro
|
||||
===================================================================
|
||||
--- LibreCAD-2.2.0.2.orig/libraries/libraries.pro
|
||||
+++ LibreCAD-2.2.0.2/libraries/libraries.pro
|
||||
@@ -9,7 +9,6 @@ TEMPLATE = subdirs
|
||||
TARGET = libraries
|
||||
|
||||
SUBDIRS = \
|
||||
- libdxfrw \
|
||||
jwwlib
|
||||
|
||||
macx|win32|equals(build_muparser, "true")|!packagesExist(muparser){
|
||||
Index: LibreCAD-2.2.0.2/librecad/src/src.pro
|
||||
===================================================================
|
||||
--- LibreCAD-2.2.0.2.orig/librecad/src/src.pro
|
||||
+++ LibreCAD-2.2.0.2/librecad/src/src.pro
|
||||
@@ -33,8 +33,7 @@ CONFIG += c++11
|
||||
}
|
||||
|
||||
GEN_LIB_DIR = ../../generated/lib
|
||||
-PRE_TARGETDEPS += $$GEN_LIB_DIR/libdxfrw.a \
|
||||
- $$GEN_LIB_DIR/libjwwlib.a
|
||||
+PRE_TARGETDEPS += $$GEN_LIB_DIR/libjwwlib.a
|
||||
|
||||
DESTDIR = $${INSTALLDIR}
|
||||
|
||||
@@ -85,7 +84,7 @@ LIBS += -L../../generated/lib \
|
||||
-ljwwlib
|
||||
|
||||
INCLUDEPATH += \
|
||||
- ../../libraries/libdxfrw/src \
|
||||
+ $${DXFRW_INCLUDEDIR} \
|
||||
../../libraries/jwwlib/src \
|
||||
cmd \
|
||||
lib/actions \
|
||||
@@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 22 10:10:22 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
- Update to release 2.2.1.2:
|
||||
* Accurate arc rendering: Issue #2035
|
||||
* Fixed a crash with hatch: Issue #2034
|
||||
* A few usage issues.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 1 11:27:39 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Install lanauge packs [boo#1240406]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 28 08:39:22 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
- Update to release 2.2.1.1:
|
||||
See: https://github.com/LibreCAD/LibreCAD/compare/2.2.0.2...v2.2.1.1
|
||||
- Drop librecad-use-system-libdxfrw.patch
|
||||
libdxfrw is abondoned. Use the internal one instead.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 4 07:00:05 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package librecad
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: librecad
|
||||
Version: 2.2.0.2
|
||||
Version: 2.2.1.2
|
||||
Release: 0
|
||||
Summary: Computer-aided design (CAD) software package for 2D design and drafting
|
||||
License: (Apache-2.0 OR SUSE-GPL-3.0+-with-font-exception) AND GPL-2.0-only
|
||||
@@ -25,7 +25,7 @@ Group: Productivity/Graphics/CAD
|
||||
URL: http://librecad.org/
|
||||
|
||||
#Git-Web: https://github.com/LibreCAD/LibreCAD
|
||||
Source: https://github.com/LibreCAD/LibreCAD/archive/%version.tar.gz
|
||||
Source: https://github.com/LibreCAD/LibreCAD/archive/v%version.tar.gz
|
||||
# Version is actually 8, not 3 (it is 3 in the filename due to how MediaWiki
|
||||
# works -- see http://wiki.librecad.org/index.php/File:Architect3-LCAD.zip)
|
||||
Source2: https://wiki.librecad.org/images/d/d9/Architect3-LCAD.zip
|
||||
@@ -34,13 +34,13 @@ Source4: https://wiki.librecad.org/images/9/9d/Electrical1-LCAD.zip
|
||||
Source10: ttf2lff.1
|
||||
Source20: %name-rpmlintrc
|
||||
Patch4: librecad-no-date.diff
|
||||
Patch5: librecad-use-system-libdxfrw.patch
|
||||
Patch6: librecad-install.diff
|
||||
Patch7: librecad-plugindir.diff
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: freetype2-devel
|
||||
BuildRequires: gcc-c++ >= 4.7
|
||||
BuildRequires: libboost_headers-devel
|
||||
BuildRequires: libqt5-linguist
|
||||
BuildRequires: muparser-devel
|
||||
BuildRequires: unzip
|
||||
BuildRequires: update-desktop-files
|
||||
@@ -51,11 +51,10 @@ BuildRequires: pkgconfig(Qt5Help)
|
||||
BuildRequires: pkgconfig(Qt5PrintSupport)
|
||||
BuildRequires: pkgconfig(Qt5Svg)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(libdxfrw) >= 1
|
||||
Requires(post): desktop-file-utils
|
||||
Requires(post): shared-mime-info
|
||||
Requires(postun):desktop-file-utils
|
||||
Requires(postun):shared-mime-info
|
||||
Requires(postun): desktop-file-utils
|
||||
Requires(postun): shared-mime-info
|
||||
Recommends: %name-parts
|
||||
|
||||
%description
|
||||
@@ -76,29 +75,20 @@ CAD drawings.
|
||||
%setup -qn LibreCAD-%version -a2 -a3 -a4
|
||||
%autopatch -p1
|
||||
|
||||
pc="libdxfrw"
|
||||
if ! pkg-config --exists "$pc"; then
|
||||
pc=libdxfrw0
|
||||
fi
|
||||
dxfrw_includedir=$(pkg-config --cflags-only-I "$pc" | sed 's|-I||g')
|
||||
|
||||
# Fix paths
|
||||
sed -i 's|##LIBDIR##|%_libdir|g' librecad/src/lib/engine/rs_system.cpp
|
||||
sed -i 's|$${DXFRW_INCLUDEDIR}|'"$dxfrw_includedir"'|g' librecad/src/src.pro
|
||||
sed -i 's@LRELEASE="lrelease"@LRELEASE="lrelease-qt5"@' scripts/postprocess-unix.sh
|
||||
|
||||
# Make sure bundled libraries are not used
|
||||
rm -rf libraries/libdxfrw
|
||||
|
||||
# Fix "wrong-file-end-of-line-encoding" rpmlint warning
|
||||
sed -i 's/\r$//' licenses/{MIT,KST32B_v2,lc_opengost-fonts}.txt
|
||||
|
||||
%build
|
||||
# Build procedure expects certain aliases
|
||||
mkdir prog
|
||||
export PATH="$PWD/prog:$PATH"
|
||||
ln -s "$(which lrelease-qt5)" "prog/lrelease"
|
||||
|
||||
echo 'DISABLE_POSTSCRIPT = true' > librecad/src/custom.pri
|
||||
qmake-qt5 \
|
||||
librecad.pro CONFIG+="release" \
|
||||
QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags"
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
rm -f unix/resources/fonts/wqy-unicode.lff
|
||||
mkdir -p unix/resources/fonts
|
||||
./unix/ttf2lff -L "Apache-2.0 or SUSE-GPL-3.0+-with-font-exception" \
|
||||
@@ -106,10 +96,13 @@ mkdir -p unix/resources/fonts
|
||||
unix/resources/fonts/wqy-unicode.lff
|
||||
|
||||
%install
|
||||
export PATH="$PWD/prog:$PATH"
|
||||
b="%buildroot"
|
||||
# No make install :(
|
||||
export BUILDDIR="$b/%_datadir/%name"
|
||||
sh scripts/postprocess-unix.sh
|
||||
mkdir -p "$b/%_datadir/%name/qm"
|
||||
cp -av librecad/ts/*.qm "$b/%_datadir/%name/qm/"
|
||||
|
||||
install -Dpm0755 "unix/%name" "$b/%_bindir/%name"
|
||||
install -Dpm0755 "unix/ttf2lff" "$b/%_bindir/ttf2lff"
|
||||
|
||||
BIN
v2.2.1.2.tar.gz
LFS
Normal file
BIN
v2.2.1.2.tar.gz
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user