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