]> git.pld-linux.org Git - packages/dime.git/blob - dime.spec
fa009087dc1c2b880710c2406a35be2331445302
[packages/dime.git] / dime.spec
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:        3
6 License:        GPL
7 Group:          Libraries
8 # Old site:     ftp://ftp.sim.no/pub/dime/
9 # New site(?):  http://download.berlios.de/cad2octree/
10 Source0:        %{name}-%{version}-src.tar.bz2
11 # Source0-md5:  142af240cd35508d606917a38164c759
12 Source1:        %{name}-%{version}-doc.tar.bz2
13 # Source1-md5:  994706320ce7d222a1597913ba0cbee0
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Dime is a C++ class library for reading, constructing, manipulating,
18 and writing DXF file data. The name is an acronym for DXF Import,
19 Manipulation, and Export library. The DXF file format originates from
20 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
25   data
26 - building dime object hierarchies from scratch
27 - extracting geometry data from dime object hierarchies
28 - manipulating dime object hierarchies
29 - traversing the dime object hierarchies while performing various
30   tasks
31 - saving dime object hierarchies as files conforming to the DXF file
32   format
33
34 The intended purpose of dime was on importing and exporting DXF files.
35 For this kind of usage, special memory management techniques has been
36 implemented, that can be used to boost the performance significantly.
37
38 %description -l pl
39 Dime jest bibliotek± klas C++ s³u¿±c± odczytywaniu, tworzeniu,
40 modyfikacji i zachowywaniu danych w plikach DXF. Nazwa jest skrótem od
41 pierwszych liter: s³ów DXF Import, Manipulation, and Export library.
42 Format pliku DXF pochodzi z AutoCAD-a, obecnie jest jednak bardzo
43 popularny.
44
45 Bibliotek obs³uguje g³ównie nastêpuj±ce funkcje:
46 - ³adowanie plików DXF do hierarchii obiektu dime zawieraj±cej dane
47   DXF
48 - budowanie hierarchii obiektów dime od zera
49 - ekstrakcja danych geometrycznych z hierarchii obiektów dime
50 - manipulacja hierarchi± obiektów dime
51 - przegl±d hierarchii obiektów dime podczas wykonywania ró¿nych zadañ
52 - zachowywanie obiektów hierarchii dime w postaci plików zgodnych z
53   formatem DXF Oryginalnym celem dime by³o importowanie i eksportowanie
54   plików DXF. Dlatego zaimplementowano specjalne techniki zarz±dzania
55   pamiêci±, dziêki którym mo¿na znacznie zwiêkszyæ wydajno¶æ.
56
57 %package devel
58 Summary:        DIME - development files
59 Summary(pl):    DIME - czê¶æ dla programistów
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}
62
63 %description devel
64 Dime development files.
65
66 %description devel -l pl
67 Pliki dime przeznaczone dla programistów.
68
69 %package documentation
70 Summary:        DIME doc
71 Summary(pl):    DIME - dokumentacja
72 Group:          Documentation
73
74 %description documentation
75 Dime documentation.
76
77 %description documentation -l pl
78 Dokumentacja dime.
79
80 %prep
81 %setup -q
82 %setup -q -D -b1
83
84 %build
85 %{__make} -C build \
86         CC="%{__cxx}" \
87         OPT="%{rpmcflags}"
88
89 %{__make} -C docs/latex refman.ps
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} \
94         $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/{latex,html}
95
96 cp -rp include/* $RPM_BUILD_ROOT%{_includedir}
97 install build/libdime.a $RPM_BUILD_ROOT%{_libdir}
98 cp -rp docs/latex/*.tex $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/latex
99 cp -rp docs/latex/*.sty $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/latex
100
101 cp -rp docs/latex/* $RPM_BUILD_ROOT%{_docdir}/%{name}-documentation-%{version}/html
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files
107 %defattr(644,root,root,755)
108 %doc README TODO ChangeLog
109 %{_libdir}/libdime.a
110
111 %files devel
112 %defattr(644,root,root,755)
113 %doc docs/latex/refman.ps ChangeLog README TODO
114 %{_includedir}/dime
115
116 %files documentation
117 %defattr(644,root,root,755)
118 #%doc docs/html/* docs/latex/*.tex docs/latex/*.sty
119 %dir %{_docdir}/%{name}-documentation-%{version}
120 %{_docdir}/%{name}-documentation-%{version}/latex
121 %{_docdir}/%{name}-documentation-%{version}/html
This page took 0.06797 seconds and 2 git commands to generate.