summaryrefslogtreecommitdiff
path: root/dxflib.spec
blob: 9d93da6de2de54a2cd68a1c5289900bacab2265f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Summary:	Open source C++ library mainly for parsing DXFTM files
Summary(pl.UTF-8):	Otwarta biblioteka w C++ do obslugi plikow DXF
Name:		dxflib
Version:	2.2.0.0
Release:	0.3
License:	GPL
Group:		Libraries
Source0:	ftp://anonymous:anonymous@ribbonsoft.com/archives/dxflib/%{name}-%{version}-1.src.tar.gz
# Source0-md5:	0eb6bef3b3a702012eeb4e99ef1aa3f1
Patch0:		%{name}_include_string.patch
URL:		http://www.qcad.org/dxflib.html
#BuildRequires:
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)


%description
%description -l pl.UTF-8

%prep
%setup -q -n %{name}-%{version}-1.src
%patch0

%build
%{__aclocal}
%{__autoconf}
%configure 

%{__make}
%{__make} -C test

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
	INCDIR=$RPM_BUILD_ROOT%{_includedir}/dxflib

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%{_libdir}/libdxflib.a
%{_includedir}/dxflib/*.h