]>
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 | |
2a79f7eb JB |
5 | Release: 4 |
6 | License: GPL v2 | |
6c4aa080 | 7 | Group: Libraries |
2a79f7eb JB |
8 | # original source (no lonver available): ftp://ftp.sim.no/pub/dime/ |
9 | # new snapshot: ftp://ftp.sim.no/pub/snapshots/dime-latest.tar.gz | |
e290ef34 | 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 |
2a79f7eb JB |
14 | Patch0: %{name}-c++.patch |
15 | Patch1: %{name}-shared.patch | |
16 | Patch2: %{name}-doc.patch | |
17 | URL: http://www.coin3d.org/lib/dime | |
18 | BuildRequires: libstdc++-devel | |
19 | BuildRequires: libtool | |
c075ace9 | 20 | BuildRequires: tetex-dvips |
21 | BuildRequires: tetex-fonts-ams | |
22 | BuildRequires: tetex-format-latex | |
23 | BuildRequires: tetex-makeindex | |
24 | BuildRequires: tetex-metafont | |
25 | BuildRequires: tetex-tex-misc | |
b9b17cff | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6c4aa080 | 27 | |
6c4aa080 | 28 | %description |
8952dc83 | 29 | Dime is a C++ class library for reading, constructing, manipulating, |
30 | and writing DXF file data. The name is an acronym for DXF Import, | |
31 | Manipulation, and Export library. The DXF file format originates from | |
32 | AutoCAD, but is now in widespread use. | |
6c4aa080 | 33 | |
34 | The focus of the library is primarily on the following items: | |
35 | ||
8952dc83 | 36 | - loading DXF files into a dime object hierarchy containing the DXF |
37 | data | |
6c4aa080 | 38 | - building dime object hierarchies from scratch |
39 | - extracting geometry data from dime object hierarchies | |
40 | - manipulating dime object hierarchies | |
8952dc83 | 41 | - traversing the dime object hierarchies while performing various |
42 | tasks | |
43 | - saving dime object hierarchies as files conforming to the DXF file | |
44 | format | |
6c4aa080 | 45 | |
46 | The intended purpose of dime was on importing and exporting DXF files. | |
47 | For this kind of usage, special memory management techniques has been | |
48 | implemented, that can be used to boost the performance significantly. | |
49 | ||
26285810 JR |
50 | %description -l pl.UTF-8 |
51 | Dime jest biblioteką klas C++ służącą odczytywaniu, tworzeniu, | |
52 | modyfikacji i zachowywaniu danych w plikach DXF. Nazwa jest skrótem od | |
53 | pierwszych liter: słów DXF Import, Manipulation, and Export library. | |
8952dc83 | 54 | Format pliku DXF pochodzi z AutoCAD-a, obecnie jest jednak bardzo |
55 | popularny. | |
8f1322b7 | 56 | |
26285810 JR |
57 | Bibliotek obsługuje głównie następujące funkcje: |
58 | - ładowanie plików DXF do hierarchii obiektu dime zawierającej dane | |
8952dc83 | 59 | DXF |
26285810 JR |
60 | - budowanie hierarchii obiektów dime od zera |
61 | - ekstrakcja danych geometrycznych z hierarchii obiektów dime | |
62 | - manipulacja hierarchią obiektów dime | |
63 | - przegląd hierarchii obiektów dime podczas wykonywania różnych zadań | |
64 | - zachowywanie obiektów hierarchii dime w postaci plików zgodnych z | |
2a79f7eb JB |
65 | formatem DXF |
66 | ||
67 | Pierwotnym celem dime było importowanie i eksportowanie plików DXF. | |
68 | Dlatego zaimplementowano specjalne techniki zarządzania pamięcią, | |
69 | dzięki którym można znacznie zwiększyć wydajność. | |
6c4aa080 | 70 | |
71 | %package devel | |
2a79f7eb JB |
72 | Summary: Header files for DIME |
73 | Summary(pl.UTF-8): Pliki nagłówkowe DIME | |
6c4aa080 | 74 | Group: Development/Libraries |
c3c0e157 | 75 | Requires: %{name} = %{version}-%{release} |
6c4aa080 | 76 | |
77 | %description devel | |
2a79f7eb | 78 | Header files for DIME. |
8301fb2b | 79 | |
26285810 | 80 | %description devel -l pl.UTF-8 |
2a79f7eb JB |
81 | Pliki nagłówkowe DIME. |
82 | ||
83 | %package static | |
84 | Summary: Static DIME library | |
85 | Summary(pl.UTF-8): Statyczna biblioteka DIME | |
86 | Group: Development/Libraries | |
87 | Requires: %{name}-devel = %{version}-%{release} | |
88 | ||
89 | %description static | |
90 | Static DIME library. | |
91 | ||
92 | %description static -l pl.UTF-8 | |
93 | Statyczna biblioteka DIME. | |
6c4aa080 | 94 | |
95 | %package documentation | |
2a79f7eb | 96 | Summary: DIME documentation |
5ee6c200 | 97 | Summary(pl.UTF-8): DIME - dokumentacja |
b477f24b | 98 | Group: Documentation |
6c4aa080 | 99 | |
100 | %description documentation | |
2a79f7eb | 101 | DIME documentation. |
8301fb2b | 102 | |
26285810 | 103 | %description documentation -l pl.UTF-8 |
2a79f7eb | 104 | Dokumentacja do DIME. |
6c4aa080 | 105 | |
106 | %prep | |
2a79f7eb JB |
107 | %setup -q -b1 |
108 | %patch0 -p1 | |
109 | %patch1 -p1 | |
110 | %patch2 -p1 | |
6c4aa080 | 111 | |
112 | %build | |
2a79f7eb | 113 | %{__make} -C build libdime.la \ |
1facb55a | 114 | CC="%{__cxx}" \ |
2a79f7eb JB |
115 | OPT="%{rpmcxxflags} %{rpmcppflags}" \ |
116 | LDFLAGS="%{rpmldflags}" \ | |
117 | LIBDIR=%{_libdir} | |
1facb55a JB |
118 | |
119 | %{__make} -C docs/latex refman.ps | |
6c4aa080 | 120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
17128615 | 123 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} \ |
e4d38ecb | 124 | $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/{latex,html} |
6c4aa080 | 125 | |
2a79f7eb JB |
126 | cp -pr include/* $RPM_BUILD_ROOT%{_includedir} |
127 | libtool --mode=install install build/libdime.la $RPM_BUILD_ROOT%{_libdir} | |
6c4aa080 | 128 | |
2a79f7eb JB |
129 | cp -pr docs/latex/*.tex $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/latex |
130 | cp -pr docs/latex/*.sty $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/latex | |
131 | cp -pr docs/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/html | |
6c4aa080 | 132 | |
6c4aa080 | 133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %files | |
8952dc83 | 137 | %defattr(644,root,root,755) |
2a79f7eb JB |
138 | %doc ChangeLog README TODO |
139 | %attr(755,root,root) %{_libdir}/libdime.so.*.*.* | |
140 | %attr(755,root,root) %ghost %{_libdir}/libdime.so.0 | |
6c4aa080 | 141 | |
142 | %files devel | |
8952dc83 | 143 | %defattr(644,root,root,755) |
2a79f7eb JB |
144 | %doc docs/latex/refman.ps |
145 | %attr(755,root,root) %{_libdir}/libdime.so | |
146 | %{_libdir}/libdime.la | |
1facb55a | 147 | %{_includedir}/dime |
6c4aa080 | 148 | |
2a79f7eb JB |
149 | %files static |
150 | %defattr(644,root,root,755) | |
151 | %{_libdir}/libdime.a | |
152 | ||
6c4aa080 | 153 | %files documentation |
154 | %defattr(644,root,root,755) | |
1facb55a JB |
155 | %dir %{_docdir}/%{name}-documentation-%{version} |
156 | %{_docdir}/%{name}-documentation-%{version}/latex | |
157 | %{_docdir}/%{name}-documentation-%{version}/html |