summaryrefslogtreecommitdiff
path: root/dwg2dxf.spec
blob: dcb70fd74e079d0d743375a978f27f8fb1f6fe3c (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
45
46
47
48
49
50
51
52
53
54
Summary:	Command line converter for *.dwg files into *.dxf
Summary(pl):	Program konwertujący pliki z *.dwg do *.dxf
Name:		dwg2dxf
Version:	2.1
Release:	2
License:	GPL
Group:		Applications/Graphics
Source0:	http://dl.sourceforge.net/lx-viewer/%{name}-%{version}.tar.gz
# Source0-md5:	c1ba5f874d23746360cd73986830a249
Patch0:		%{name}-%{version}-shared-files.patch
URL:		http://sourceforge.net/projects/lx-viewer/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libstdc++-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
A command line program to convert AutoCAD drawing files (*.dwg) into
Drawing Interchange Format (*.dxf) files.

%description -l pl
Konsolowy program konwertujący pliki AutoCAD-a (*.dwg) do Drawing
Interchange Format (*.dxf), potem taki plik *.dxf można otworzyć za
pomocą QCada.

%prep
%setup -q
%patch0 -p1

%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install %{name}/adinit.dat $RPM_BUILD_ROOT%{_datadir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc %{name}/docs/en/index*.html
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}