]> git.pld-linux.org Git - packages/dime.git/blob - dime.spec
- added using %%{__make} macro.
[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/Libraries
72 ######          Unknown group!
73 Group(pl):      Dokumentacja/Biblioteki
74
75 %description documentation
76 %description -l pl documentation
77
78 %prep
79 %setup -q
80 %setup -q -D -b1
81
82 %build
83 cd build
84 %{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
85 cd ../docs/latex
86 %{__make} refman.ps
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
91
92 install -d $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/{latex,html}
93
94 cp -rp include/* $RPM_BUILD_ROOT%{_includedir}
95 install -s build/libdime.a $RPM_BUILD_ROOT%{_libdir}
96 cp -rp docs/latex/*.tex $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/latex
97 cp -rp docs/latex/*.sty $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/latex
98
99 cp -rp docs/latex/*  $RPM_BUILD_ROOT/%{datadir}/doc/%name-documentation-%version/html
100
101 gzip -9nf README TODO ChangeLog
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files
107 %defattr(644,root,root,755)
108 %doc
109 %attr(644,root,root) %{_libdir}/libdime.a
110
111 %files devel
112 %defattr(644,root,root,755)
113 %doc docs/latex/refman.ps ChangeLog.bz2 README.bz2 TODO.bz2
114 %{_includedir}/dime/
115
116 %files documentation
117 %defattr(644,root,root,755)
118 #%doc docs/html/* docs/latex/*.tex docs/latex/*.sty
119 %attr(644,root,root) /%{datadir}/doc/%name-documentation-%version/latex
120 %attr(644,root,root) /%{datadir}/doc/%name-documentation-%version/html
This page took 0.056139 seconds and 4 git commands to generate.