]> git.pld-linux.org Git - packages/dime.git/blob - dime.spec
- fixed broken %%doc (doc were gzipped, not bzipped)
[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 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 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 devel
59 Summary(pl):    DIME - czê¶æ dla programistów
60 Group:          Development/Libraries
61 Group(de):      Entwicklung/Libraries
62 Group(fr):      Development/Librairies
63 Group(pl):      Programowanie/Biblioteki
64 Requires:       %{name} = %{version}
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.gz README.gz TODO.gz
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.07575 seconds and 3 git commands to generate.