[packages/libredwg] - new - missing patch with missing perl files from git - info patch to adjust direntry to PLD format

qboosh qboosh at pld-linux.org
Wed Dec 9 19:03:01 CET 2020


commit c1f16d1a4fd74b93394fd812848d402f7c6f38d7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 9 19:03:17 2020 +0100

    - new
    - missing patch with missing perl files from git
    - info patch to adjust direntry to PLD formatting
    - python patch to drop versioning from python shared module

 libredwg-info.patch    |  14 ++++
 libredwg-missing.patch |  13 ++++
 libredwg-python.patch  |  11 +++
 libredwg.spec          | 194 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 232 insertions(+)
---
diff --git a/libredwg.spec b/libredwg.spec
new file mode 100644
index 0000000..0427957
--- /dev/null
+++ b/libredwg.spec
@@ -0,0 +1,194 @@
+Summary:	LibreDWG - free implementation of the DWG file format
+Summary(pl.UTF-8):	LibreDWG - wolnodostępna implementacja formatu plików DWG
+Name:		libredwg
+Version:	0.11.1
+Release:	1
+License:	GPL v3+
+Group:		Libraries
+Source0:	https://ftp.gnu.org/gnu/libredwg/%{name}-%{version}.tar.xz
+# Source0-md5:	599d15f36e37acbdee4d751f5c965e40
+Patch0:		%{name}-missing.patch
+Patch1:		%{name}-info.patch
+Patch2:		%{name}-python.patch
+URL:		http://www.gnu.org/software/libredwg/
+BuildRequires:	autoconf >= 2.61
+BuildRequires:	automake >= 1:1.14
+BuildRequires:	bash
+BuildRequires:	doxygen
+BuildRequires:	libtool >= 2:2
+BuildRequires:	libxml2-devel >= 2.0
+BuildRequires:	pcre2-8-devel
+BuildRequires:	pcre2-16-devel
+BuildRequires:	perl-devel
+BuildRequires:	pkgconfig
+BuildRequires:	pslib-devel
+BuildRequires:	python-devel >= 1:2.7
+BuildRequires:	rpm-perlprov
+BuildRequires:	rpm-pythonprov
+BuildRequires:	sed >= 4.0
+BuildRequires:	swig-python >= 1.3.17
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	texinfo
+BuildRequires:	xz
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LibreDWG is a free C library to read DWG files. DWG is a file format
+created in the 70's for the emerging CAD applications. Currently it
+is the native file format of AutoCAD, a proprietary CAD program
+developed by AutoDesk.
+
+%description -l pl.UTF-8
+LibreDWG to wolnodostępna biblioteka C do odczytu plików DWG. DWG to
+format plików powstały w latach 70. dla powstających aplikacji CAD.
+Obecnie jest to natywny format AutoCAD-a - własnościowego programu
+CAD rozwijanego przez firmę AutoDesk.
+
+%package devel
+Summary:	Header files for LibreDWG library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki LibreDWG
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+# dwg.h file
+Conflicts:	libdwg-devel
+
+%description devel
+Header files for LibreDWG library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki LibreDWG.
+
+%package static
+Summary:	Static LibreDWG library
+Summary(pl.UTF-8):	Statyczna biblioteka LibreDWG
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static LibreDWG library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka LibreDWG.
+
+%package -n perl-libredwg
+Summary:	Perl interface for LibreDWG library
+Summary(pl.UTF-8):	Interfejs Perla do biblioteki LibreDWG
+Group:		Development/Languages/Perl
+Requires:	%{name} = %{version}-%{release}
+
+%description -n perl-libredwg
+Perl interface for LibreDWG library.
+
+%description -n perl-libredwg -l pl.UTF-8
+Interfejs Perla do biblioteki LibreDWG.
+
+%package -n python-libredwg
+Summary:	Python interface for LibreDWG library
+Summary(pl.UTF-8):	Interfejs Pythona do biblioteki LibreDWG
+Group:		Development/Languages/Perl
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-libredwg
+Python interface for LibreDWG library.
+
+%description -n python-libredwg -l pl.UTF-8
+Interfejs Pythona do biblioteki LibreDWG.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+# no git-version-gen in release tarball
+%{__sed} -i -e 's/m4_esyscmd.*git-version-gen.*/[%{version}],/' configure.ac
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--disable-silent-rules \
+	--with-perl-install=vendor
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libredwg.la
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_LibreDWG.la
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/dwg2SVG
+%attr(755,root,root) %{_bindir}/dwg2dxf
+%attr(755,root,root) %{_bindir}/dwg2ps
+%attr(755,root,root) %{_bindir}/dwgbmp
+%attr(755,root,root) %{_bindir}/dwgfilter
+%attr(755,root,root) %{_bindir}/dwggrep
+%attr(755,root,root) %{_bindir}/dwglayers
+%attr(755,root,root) %{_bindir}/dwgread
+%attr(755,root,root) %{_bindir}/dwgrewrite
+%attr(755,root,root) %{_bindir}/dwgwrite
+%attr(755,root,root) %{_bindir}/dxf2dwg
+%attr(755,root,root) %{_bindir}/dxfwrite
+%attr(755,root,root) %{_libdir}/libredwg.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libredwg.so.0
+%{_mandir}/man1/dwg2SVG.1*
+%{_mandir}/man1/dwg2dxf.1*
+%{_mandir}/man1/dwg2ps.1*
+%{_mandir}/man1/dwgbmp.1*
+%{_mandir}/man1/dwgfilter.1*
+%{_mandir}/man1/dwggrep.1*
+%{_mandir}/man1/dwglayers.1*
+%{_mandir}/man1/dwgread.1*
+%{_mandir}/man1/dwgrewrite.1*
+%{_mandir}/man1/dwgwrite.1*
+%{_mandir}/man1/dxf2dwg.1*
+%{_mandir}/man1/dxfwrite.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libredwg.so
+%{_includedir}/dwg.h
+%{_includedir}/dwg_api.h
+%{_pkgconfigdir}/libredwg.pc
+%{_infodir}/LibreDWG.info*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libredwg.a
+
+%files -n perl-libredwg
+%defattr(644,root,root,755)
+%{perl_vendorarch}/LibreDWG.pm
+%dir %{perl_vendorarch}/auto
+%dir %{perl_vendorarch}/auto/LibreDWG
+%attr(755,root,root) %{perl_vendorarch}/auto/LibreDWG/LibreDWG.so
+
+%files -n python-libredwg
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/_LibreDWG.so
+%{py_sitescriptdir}/LibreDWG.py[co]
diff --git a/libredwg-info.patch b/libredwg-info.patch
new file mode 100644
index 0000000..4b2b60e
--- /dev/null
+++ b/libredwg-info.patch
@@ -0,0 +1,14 @@
+--- libredwg-0.11.1/doc/LibreDWG.texi.orig	2020-11-16 20:30:48.000000000 +0100
++++ libredwg-0.11.1/doc/LibreDWG.texi	2020-12-08 21:02:13.971783937 +0100
+@@ -26,9 +26,9 @@
+ @end quotation
+ @end copying
+ 
+- at dircategory Libraries
++ at dircategory Libraries:
+ @direntry
+-* LibreDWG: (LibreDWG).         Free implementation of the DWG file format.
++* LibreDWG: (LibreDWG).			Free implementation of the DWG file format
+ @end direntry
+ 
+ @titlepage
diff --git a/libredwg-missing.patch b/libredwg-missing.patch
new file mode 100644
index 0000000..3c7089e
--- /dev/null
+++ b/libredwg-missing.patch
@@ -0,0 +1,13 @@
+--- libredwg-0.11.1/bindings/perl/MANIFEST.orig	1970-01-01 01:00:00.000000000 +0100
++++ libredwg-0.11.1/bindings/perl/MANIFEST	2020-12-08 19:47:31.306068620 +0100
+@@ -0,0 +1,5 @@
++LibreDWG.c
++LibreDWG.pm
++MANIFEST
++Makefile.PL
++t/0_basic.t
+--- libredwg-0.11.1/bindings/perl/t/0_basic.t.orig	1970-01-01 01:00:00.000000000 +0100
++++ libredwg-0.11.1/bindings/perl/t/0_basic.t	2020-12-08 19:48:52.275629970 +0100
+@@ -0,0 +1,2 @@
++use Test::More tests => 1;
++use_ok 'LibreDWG';
diff --git a/libredwg-python.patch b/libredwg-python.patch
new file mode 100644
index 0000000..70ade2d
--- /dev/null
+++ b/libredwg-python.patch
@@ -0,0 +1,11 @@
+--- libredwg-0.11.1/bindings/python/Makefile.am.orig	2020-01-16 23:20:42.000000000 +0100
++++ libredwg-0.11.1/bindings/python/Makefile.am	2020-12-08 21:25:20.224273962 +0100
+@@ -46,7 +46,7 @@
+ ## more magic: SWIG_PYTHON_CPPFLAGS resolves to null and python includes
+ ## are not passed to gcc via -I
+ _LibreDWG_la_CPPFLAGS = -I$(top_srcdir)/include $(AX_SWIG_PYTHON_CPPFLAGS)
+-_LibreDWG_la_LDFLAGS = -module
++_LibreDWG_la_LDFLAGS = -module -avoid-version -shared
+ _LibreDWG_la_LIBADD = ../../src/libredwg.la
+ 
+ ## not elegant, but works
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libredwg.git/commitdiff/c1f16d1a4fd74b93394fd812848d402f7c6f38d7



More information about the pld-cvs-commit mailing list