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