]>
Commit | Line | Data |
---|---|---|
23798853 | 1 | Summary: DIME - DXF Import, manipulation and Export library |
5ee6c200 | 2 | Summary(pl.UTF-8): DIME - biblioteka do manipulacji plikami w formacie DXF |
6c4aa080 | 3 | Name: dime |
4 | Version: 0.9.1 | |
164cfef6 | 5 | Release: 3 |
8952dc83 | 6 | License: GPL |
6c4aa080 | 7 | Group: Libraries |
e290ef34 | 8 | # Old site: ftp://ftp.sim.no/pub/dime/ |
9 | # New site(?): http://download.berlios.de/cad2octree/ | |
10 | Source0: %{name}-%{version}-src.tar.bz2 | |
472d805c | 11 | # Source0-md5: 142af240cd35508d606917a38164c759 |
e290ef34 | 12 | Source1: %{name}-%{version}-doc.tar.bz2 |
14755283 | 13 | # Source1-md5: 994706320ce7d222a1597913ba0cbee0 |
c075ace9 | 14 | BuildRequires: gcc-c++ |
15 | BuildRequires: tetex-dvips | |
16 | BuildRequires: tetex-fonts-ams | |
17 | BuildRequires: tetex-format-latex | |
18 | BuildRequires: tetex-makeindex | |
19 | BuildRequires: tetex-metafont | |
20 | BuildRequires: tetex-tex-misc | |
b9b17cff | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6c4aa080 | 22 | |
6c4aa080 | 23 | %description |
8952dc83 | 24 | Dime is a C++ class library for reading, constructing, manipulating, |
25 | and writing DXF file data. The name is an acronym for DXF Import, | |
26 | Manipulation, and Export library. The DXF file format originates from | |
27 | AutoCAD, but is now in widespread use. | |
6c4aa080 | 28 | |
29 | The focus of the library is primarily on the following items: | |
30 | ||
8952dc83 | 31 | - loading DXF files into a dime object hierarchy containing the DXF |
32 | data | |
6c4aa080 | 33 | - building dime object hierarchies from scratch |
34 | - extracting geometry data from dime object hierarchies | |
35 | - manipulating dime object hierarchies | |
8952dc83 | 36 | - traversing the dime object hierarchies while performing various |
37 | tasks | |
38 | - saving dime object hierarchies as files conforming to the DXF file | |
39 | format | |
6c4aa080 | 40 | |
41 | The intended purpose of dime was on importing and exporting DXF files. | |
42 | For this kind of usage, special memory management techniques has been | |
43 | implemented, that can be used to boost the performance significantly. | |
44 | ||
26285810 JR |
45 | %description -l pl.UTF-8 |
46 | Dime jest biblioteką klas C++ służącą odczytywaniu, tworzeniu, | |
47 | modyfikacji i zachowywaniu danych w plikach DXF. Nazwa jest skrótem od | |
48 | pierwszych liter: słów DXF Import, Manipulation, and Export library. | |
8952dc83 | 49 | Format pliku DXF pochodzi z AutoCAD-a, obecnie jest jednak bardzo |
50 | popularny. | |
8f1322b7 | 51 | |
26285810 JR |
52 | Bibliotek obsługuje głównie następujące funkcje: |
53 | - ładowanie plików DXF do hierarchii obiektu dime zawierającej dane | |
8952dc83 | 54 | DXF |
26285810 JR |
55 | - budowanie hierarchii obiektów dime od zera |
56 | - ekstrakcja danych geometrycznych z hierarchii obiektów dime | |
57 | - manipulacja hierarchią obiektów dime | |
58 | - przegląd hierarchii obiektów dime podczas wykonywania różnych zadań | |
59 | - zachowywanie obiektów hierarchii dime w postaci plików zgodnych z | |
60 | formatem DXF Oryginalnym celem dime było importowanie i eksportowanie | |
61 | plików DXF. Dlatego zaimplementowano specjalne techniki zarządzania | |
62 | pamięcią, dzięki którym można znacznie zwiększyć wydajność. | |
6c4aa080 | 63 | |
64 | %package devel | |
1facb55a | 65 | Summary: DIME - development files |
5ee6c200 | 66 | Summary(pl.UTF-8): DIME - część dla programistów |
6c4aa080 | 67 | Group: Development/Libraries |
c3c0e157 | 68 | Requires: %{name} = %{version}-%{release} |
6c4aa080 | 69 | |
70 | %description devel | |
1facb55a | 71 | Dime development files. |
8301fb2b | 72 | |
26285810 JR |
73 | %description devel -l pl.UTF-8 |
74 | Pliki dime przeznaczone dla programistów. | |
6c4aa080 | 75 | |
76 | %package documentation | |
8301fb2b | 77 | Summary: DIME doc |
5ee6c200 | 78 | Summary(pl.UTF-8): DIME - dokumentacja |
b477f24b | 79 | Group: Documentation |
6c4aa080 | 80 | |
81 | %description documentation | |
aa11a790 | 82 | Dime documentation. |
8301fb2b | 83 | |
26285810 | 84 | %description documentation -l pl.UTF-8 |
aa11a790 | 85 | Dokumentacja dime. |
6c4aa080 | 86 | |
87 | %prep | |
88 | %setup -q | |
89 | %setup -q -D -b1 | |
90 | ||
91 | %build | |
1facb55a JB |
92 | %{__make} -C build \ |
93 | CC="%{__cxx}" \ | |
94 | OPT="%{rpmcflags}" | |
95 | ||
96 | %{__make} -C docs/latex refman.ps | |
6c4aa080 | 97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
17128615 | 100 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} \ |
e4d38ecb | 101 | $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/{latex,html} |
6c4aa080 | 102 | |
103 | cp -rp include/* $RPM_BUILD_ROOT%{_includedir} | |
8301fb2b | 104 | install build/libdime.a $RPM_BUILD_ROOT%{_libdir} |
e4d38ecb JB |
105 | cp -rp docs/latex/*.tex $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/latex |
106 | cp -rp docs/latex/*.sty $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/latex | |
6c4aa080 | 107 | |
e4d38ecb | 108 | cp -rp docs/latex/* $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/html |
6c4aa080 | 109 | |
6c4aa080 | 110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %files | |
8952dc83 | 114 | %defattr(644,root,root,755) |
a44c36fc | 115 | %doc README TODO ChangeLog |
1facb55a | 116 | %{_libdir}/libdime.a |
6c4aa080 | 117 | |
118 | %files devel | |
8952dc83 | 119 | %defattr(644,root,root,755) |
1facb55a JB |
120 | %doc docs/latex/refman.ps ChangeLog README TODO |
121 | %{_includedir}/dime | |
6c4aa080 | 122 | |
123 | %files documentation | |
124 | %defattr(644,root,root,755) | |
125 | #%doc docs/html/* docs/latex/*.tex docs/latex/*.sty | |
1facb55a JB |
126 | %dir %{_docdir}/%{name}-documentation-%{version} |
127 | %{_docdir}/%{name}-documentation-%{version}/latex | |
128 | %{_docdir}/%{name}-documentation-%{version}/html |