]> git.pld-linux.org Git - packages/dime.git/blob - dime.spec
- adapterized and made spec %%debug ready or added using %%rpm*flags macros
[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(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        ftp://ftp.sim.no/pub/dime/%name-%version-src.tar.bz2
13 Source1:        ftp://ftp.sim.no/pub/dime/%name-%version-doc.tar.bz2
14 Patch0:         
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 - czê¶æ dla programistów
61 Group:          Development/Libraries
62 Group(de):      Entwicklung/Libraries
63 Group(fr):      Development/Librairies
64 Group(pl):      Programowanie/Biblioteki
65
66 %description devel
67
68 %description -l pl devel
69
70 %package documentation
71 Summary:        DIME doc
72 Summary(pl):    DIME - dokumentacja
73 Group:          Documentation
74 Group(de):      Dokumentation
75 Group(es):      Documentación
76 Group(pl):      Dokumentacja
77
78 %description documentation
79
80 %description -l pl documentation
81
82 %prep
83 %setup -q
84 %setup -q -D -b1
85
86 %build
87 cd build
88 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
89 cd ../docs/latex
90 %{__make} refman.ps
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
95
96 install -d $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/{latex,html}
97
98 cp -rp include/* $RPM_BUILD_ROOT%{_includedir}
99 install build/libdime.a $RPM_BUILD_ROOT%{_libdir}
100 cp -rp docs/latex/*.tex $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/latex
101 cp -rp docs/latex/*.sty $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/latex
102
103 cp -rp docs/latex/*  $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/html
104
105 gzip -9nf README TODO ChangeLog
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %doc
113 %attr(644,root,root) %{_libdir}/libdime.a
114
115 %files devel
116 %defattr(644,root,root,755)
117 %doc docs/latex/refman.ps ChangeLog.bz2 README.bz2 TODO.bz2
118 %{_includedir}/dime/
119
120 %files documentation
121 %defattr(644,root,root,755)
122 #%doc docs/html/* docs/latex/*.tex docs/latex/*.sty
123 %attr(644,root,root) /%{datadir}/doc/%name-documentation-%version/latex
124 %attr(644,root,root) /%{datadir}/doc/%name-documentation-%version/html
This page took 0.063455 seconds and 3 git commands to generate.