]>
Commit | Line | Data |
---|---|---|
6c4aa080 | 1 | Summary: DIME - DXF Import, manipulation and Export library. |
2 | Summary(pl): DIME - biblioteka do manipulacji plikami w formacie DXF. | |
3 | Name: dime | |
4 | Version: 0.9.1 | |
5 | Release: 1 | |
6 | Copyright: GPL | |
7 | Group: Libraries | |
8 | Group(pl): Biblioteki | |
9 | Source0: ftp://ftp.sim.no/pub/dime/%name-%version-src.tar.bz2 | |
10 | Source1: ftp://ftp.sim.no/pub/dime/%name-%version-doc.tar.bz2 | |
11 | #Patch: | |
12 | Buildroot: /tmp/%{name}-%{version}-root | |
13 | ||
14 | %define _prefix /usr | |
15 | ||
16 | %description | |
17 | Dime is a C++ class library for reading, constructing, manipulating, and | |
18 | writing DXF file data. | |
19 | The name is an acronym for DXF Import, Manipulation, and Export library. | |
20 | The DXF file format originates from AutoCAD, but is now in widespread use. | |
21 | ||
22 | The focus of the library is primarily on the following items: | |
23 | ||
24 | - loading DXF files into a dime object hierarchy containing the DXF data | |
25 | - building dime object hierarchies from scratch | |
26 | - extracting geometry data from dime object hierarchies | |
27 | - manipulating dime object hierarchies | |
28 | - traversing the dime object hierarchies while performing various tasks | |
29 | - saving dime object hierarchies as files conforming to the DXF file format | |
30 | ||
31 | The intended purpose of dime was on importing and exporting DXF files. | |
32 | For this kind of usage, special memory management techniques has been | |
33 | implemented, that can be used to boost the performance significantly. | |
34 | ||
35 | %description -l pl | |
36 | ||
37 | %package devel | |
38 | Summary: DIME devel | |
39 | Summary(pl): DIME devel | |
40 | Group: Development/Libraries | |
41 | Group(pl): Programowanie/Biblioteki | |
42 | ||
43 | %description devel | |
44 | %description -l pl devel | |
45 | ||
46 | %package documentation | |
47 | Summary: DEME doc | |
48 | Summary(pl): DIME doc | |
49 | Group: Documentation/Libraries | |
50 | Group(pl): Dokumentacja/Biblioteki | |
51 | ||
52 | %description documentation | |
53 | %description -l pl documentation | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | %setup -q -D -b1 | |
58 | ||
59 | %build | |
60 | cd build | |
61 | make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" | |
62 | cd ../docs/latex | |
63 | make refman.ps | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
68 | ||
69 | install -d $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/{latex,html} | |
70 | ||
71 | cp -rp include/* $RPM_BUILD_ROOT%{_includedir} | |
72 | install -s build/libdime.a $RPM_BUILD_ROOT%{_libdir} | |
73 | cp -rp docs/latex/*.tex $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/latex | |
74 | cp -rp docs/latex/*.sty $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/latex | |
75 | ||
76 | cp -rp docs/latex/* $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/html | |
77 | ||
78 | bzip2 -9 README TODO ChangeLog | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644, root, root, 755) | |
85 | %doc | |
86 | %attr(644,root,root) %{_libdir}/libdime.a | |
87 | ||
88 | %files devel | |
89 | %defattr(644, root, root, 755) | |
90 | %doc docs/latex/refman.ps ChangeLog.bz2 README.bz2 TODO.bz2 | |
91 | %{_includedir}/dime/ | |
92 | ||
93 | %files documentation | |
94 | %defattr(644,root,root,755) | |
95 | #%doc docs/html/* docs/latex/*.tex docs/latex/*.sty | |
96 | %attr(644,root,root) /%{datadir}/doc/%name-documentation-%version/latex | |
97 | %attr(644,root,root) /%{datadir}/doc/%name-documentation-%version/html |