1 Summary: LibreDWG - free implementation of the DWG file format
2 Summary(pl.UTF-8): LibreDWG - wolnodostępna implementacja formatu plików DWG
8 Source0: https://ftp.gnu.org/gnu/libredwg/%{name}-%{version}.tar.xz
9 # Source0-md5: 58124d482d73a385c664b2aad196a87b
10 Patch0: %{name}-info.patch
11 Patch1: %{name}-python.patch
12 URL: http://www.gnu.org/software/libredwg/
13 BuildRequires: autoconf >= 2.61
14 BuildRequires: automake >= 1:1.14
16 BuildRequires: doxygen
17 BuildRequires: libtool >= 2:2
18 BuildRequires: libxml2-devel >= 2.0
19 BuildRequires: pcre2-8-devel
20 BuildRequires: pcre2-16-devel
21 BuildRequires: perl-devel
22 BuildRequires: pkgconfig
23 BuildRequires: pslib-devel
24 BuildRequires: python-devel >= 1:2.7
25 BuildRequires: rpm-perlprov
26 BuildRequires: rpm-pythonprov
27 BuildRequires: sed >= 4.0
28 BuildRequires: swig-python >= 1.3.17
29 BuildRequires: tar >= 1:1.22
30 BuildRequires: texinfo
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 LibreDWG is a free C library to read DWG files. DWG is a file format
36 created in the 70's for the emerging CAD applications. Currently it
37 is the native file format of AutoCAD, a proprietary CAD program
38 developed by AutoDesk.
40 %description -l pl.UTF-8
41 LibreDWG to wolnodostępna biblioteka C do odczytu plików DWG. DWG to
42 format plików powstały w latach 70. dla powstających aplikacji CAD.
43 Obecnie jest to natywny format AutoCAD-a - własnościowego programu
44 CAD rozwijanego przez firmę AutoDesk.
47 Summary: Header files for LibreDWG library
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibreDWG
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
52 Conflicts: libdwg-devel
55 Header files for LibreDWG library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki LibreDWG.
61 Summary: Static LibreDWG library
62 Summary(pl.UTF-8): Statyczna biblioteka LibreDWG
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 Static LibreDWG library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka LibreDWG.
72 %package -n perl-libredwg
73 Summary: Perl interface for LibreDWG library
74 Summary(pl.UTF-8): Interfejs Perla do biblioteki LibreDWG
75 Group: Development/Languages/Perl
76 Requires: %{name} = %{version}-%{release}
78 %description -n perl-libredwg
79 Perl interface for LibreDWG library.
81 %description -n perl-libredwg -l pl.UTF-8
82 Interfejs Perla do biblioteki LibreDWG.
84 %package -n python-libredwg
85 Summary: Python interface for LibreDWG library
86 Summary(pl.UTF-8): Interfejs Pythona do biblioteki LibreDWG
87 Group: Development/Languages/Perl
88 Requires: %{name} = %{version}-%{release}
90 %description -n python-libredwg
91 Python interface for LibreDWG library.
93 %description -n python-libredwg -l pl.UTF-8
94 Interfejs Pythona do biblioteki LibreDWG.
101 # no git-version-gen in release tarball
102 %{__sed} -i -e 's/m4_esyscmd.*git-version-gen.*/[%{version}],/' configure.ac
111 --disable-silent-rules \
112 --with-perl-install=vendor
117 rm -rf $RPM_BUILD_ROOT
120 DESTDIR=$RPM_BUILD_ROOT
122 # obsoleted by pkg-config
123 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libredwg.la
125 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_LibreDWG.la
128 # just example, nothing really useful
129 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-libredwg-%{version}
130 %{__mv} $RPM_BUILD_ROOT%{_datadir}/load_dwg.py $RPM_BUILD_ROOT%{_examplesdir}/python-libredwg-%{version}
132 %{__rm} $RPM_BUILD_ROOT%{_datadir}/dwgadd.example
135 rm -rf $RPM_BUILD_ROOT
137 %post -p /sbin/ldconfig
138 %postun -p /sbin/ldconfig
140 %post devel -p /sbin/postshell
141 -/usr/sbin/fix-info-dir -c %{_infodir}
143 %postun devel -p /sbin/postshell
144 -/usr/sbin/fix-info-dir -c %{_infodir}
147 %defattr(644,root,root,755)
148 %doc AUTHORS ChangeLog NEWS README TODO examples/dwgadd.example
149 %attr(755,root,root) %{_bindir}/dwg2SVG
150 %attr(755,root,root) %{_bindir}/dwg2dxf
151 %attr(755,root,root) %{_bindir}/dwg2ps
152 %attr(755,root,root) %{_bindir}/dwgadd
153 %attr(755,root,root) %{_bindir}/dwgbmp
154 %attr(755,root,root) %{_bindir}/dwgfilter
155 %attr(755,root,root) %{_bindir}/dwggrep
156 %attr(755,root,root) %{_bindir}/dwglayers
157 %attr(755,root,root) %{_bindir}/dwgread
158 %attr(755,root,root) %{_bindir}/dwgrewrite
159 %attr(755,root,root) %{_bindir}/dwgwrite
160 %attr(755,root,root) %{_bindir}/dxf2dwg
161 %attr(755,root,root) %{_bindir}/dxfwrite
162 %attr(755,root,root) %{_libdir}/libredwg.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libredwg.so.0
164 %{_mandir}/man1/dwg2SVG.1*
165 %{_mandir}/man1/dwg2dxf.1*
166 %{_mandir}/man1/dwg2ps.1*
167 %{_mandir}/man1/dwgadd.1*
168 %{_mandir}/man1/dwgbmp.1*
169 %{_mandir}/man1/dwgfilter.1*
170 %{_mandir}/man1/dwggrep.1*
171 %{_mandir}/man1/dwglayers.1*
172 %{_mandir}/man1/dwgread.1*
173 %{_mandir}/man1/dwgrewrite.1*
174 %{_mandir}/man1/dwgwrite.1*
175 %{_mandir}/man1/dxf2dwg.1*
176 %{_mandir}/man1/dxfwrite.1*
177 %{_mandir}/man5/dwgadd.5*
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/libredwg.so
183 %{_includedir}/dwg_api.h
184 %{_pkgconfigdir}/libredwg.pc
185 %{_infodir}/LibreDWG.info*
188 %defattr(644,root,root,755)
189 %{_libdir}/libredwg.a
191 %files -n perl-libredwg
192 %defattr(644,root,root,755)
193 %{perl_vendorarch}/LibreDWG.pm
194 %dir %{perl_vendorarch}/auto
195 %dir %{perl_vendorarch}/auto/LibreDWG
196 %attr(755,root,root) %{perl_vendorarch}/auto/LibreDWG/LibreDWG.so
198 %files -n python-libredwg
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{py_sitedir}/_LibreDWG.so
201 %{py_sitescriptdir}/LibreDWG.py[co]
202 %{_examplesdir}/python-libredwg-%{version}