]> git.pld-linux.org Git - packages/gdome2.git/blob - gdome2.spec
8fca187d8ca14cb09bc6f6f3ddccb4a9d319da90
[packages/gdome2.git] / gdome2.spec
1 #
2 # Conditional build:
3 # (to be changed to bcond_with when glib2 support is finished)
4 %bcond_with     glib1   # use glib 1.2 instead of 2.x
5 #
6 Summary:        DOM level2 library for accessing XML files
7 Summary(pl):    Biblioteka dostêpu do plików XML, DOM poziom 2
8 Name:           gdome2
9 Version:        0.8.1
10 Release:        1
11 License:        LGPL
12 Group:          Libraries
13 Source0:        http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz
14 # Source0-md5:  bfc114e59eec50cbda8e4ece751ff022
15 URL:            http://gdome2.cs.unibo.it/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 %{?with_glib1:BuildRequires:    glib-devel >= 1.2.10}
19 %{!?with_glib1:BuildRequires:   glib2-devel >= 2.2.0}
20 BuildRequires:  libtool
21 BuildRequires:  libxml2-devel >= 2.4.26
22 %{?with_glib1:Requires: glib >= 1.2.10}
23 %{!?with_glib1:Requires:        glib2 >= 2.2.0}
24 Requires:       libxml2 >= 2.4.26
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 gdome2 is a fast, light and complete DOM level2 implementation based
29 on libxml2. Although it has been written for the GNOME project, it can
30 be used stand-alone.
31
32 A DOM implementation (also called a host implementation) is what makes
33 a parsed XML or HTML document available for processing via the DOM
34 interface.
35
36 gdome2 currently supports the "Core", "XML", "Events" and
37 "MutationEvents" modules from the DOM2 Recommendation (see
38 http://www.w3.org/TR/DOM-Level-2-Core/ and
39 http://www.w3.org/TR/DOM-Level-2-Events/), and is supposed to become a
40 full implementation of all the DOM Level2 standard.
41
42 Now gdome2 also partially supports the XPath module from the DOM level
43 3 drafts.
44
45 %description -l pl
46 gdome2 jest szybk±, lekk± i kompletn± implementacj± DOM poziom 2
47 opart± o libxml2. Pomimo, ¿e gdome2 zosta³o napisane z my¶l± o
48 projekcie GNOME mo¿e byæ u¿ywane samodzielnie.
49
50 Implementacja DOM (zwana równie¿ implementacj± hosta) udostêpnia
51 przeparsowany dokument XML lub HTML dla dalszego przetwarzania poprzez
52 interfejs DOM.
53
54 gdome2 w chwili obecnej wspiera nastêpuj±ce modu³y rekomendacji DOM2:
55 "Core", "XML", "Events" oraz "MutationEvents" (wiêcej informacji mo¿na
56 uzyskaæ pod adresem http://www.w3.org/TR/DOM-Level-2-Core/ oraz
57 http://www.w3.org/TR/DOM-Level-2-Events/), a w przysz³o¶ci ma zostaæ
58 pe³n± implementacj± standardu DOM Poziom 2.
59
60 gdome2 wspiera równie¿ czê¶ciowo DOM Poziom 3, konkretnie XPath.
61
62 %package devel
63 Summary:        Development files for gdome2
64 Summary(pl):    Pliki nag³ówkowe gdome2
65 Group:          Development/Libraries
66 Requires:       %{name} = %{version}
67 %{?with_glib1:Requires: glib-devel >= 1.2.10}
68 %{!?with_glib1:Requires:        glib2-devel >= 2.2.0}
69 Requires:       libxml2-devel >= 2.4.26
70
71 %description devel
72 This package contains the header files and configuration scripts for
73 developing with gdome2.
74
75 gdome2 is a fast, light and complete DOM level2 implementation based
76 on libxml2. Although it has been written for the GNOME project, it can
77 be used stand-alone.
78
79 A DOM implementation (also called a host implementation) is what makes
80 a parsed XML or HTML document available for processing via the DOM
81 interface.
82
83 gdome2 currently supports the "Core", "XML", "Events" and
84 "MutationEvents" modules from the DOM2 Recommendation (see
85 http://www.w3.org/TR/DOM-Level-2-Core/ and
86 http://www.w3.org/TR/DOM-Level-2-Events/), and is supposed to become a
87 full implementation of all the DOM Level2 standard.
88
89 Now gdome2 also partially supports the XPath module from the DOM level
90 3 drafts.
91
92 %description devel -l pl
93 Pakiet ten zawiera pliki nag³ówkowe oraz skrypty konfiguracyjne
94 potrzebne do rozwijania oprogramowania opartego o gdome2.
95
96 gdome2 jest szybk±, lekk± i kompletn± implementacj± DOM poziom 2
97 opart± o libxml2. Pomimo, ¿e gdome2 zosta³o napisane z my¶l± o
98 projekcie GNOME mo¿e byæ u¿ywane samodzielnie.
99
100 Implementacja DOM (zwana równie¿ implementacj± hosta) udostêpnia
101 przeparsowany dokument XML lub HTML dla dalszego przetwarzania poprzez
102 interfejs DOM.
103
104 gdome2 w chwili obecnej wspiera nastêpuj±ce modu³y rekomendacji DOM2:
105 "Core", "XML", "Events" oraz "MutationEvents" (wiêcej informacji mo¿na
106 uzyskaæ pod adresem http://www.w3.org/TR/DOM-Level-2-Core/ oraz
107 http://www.w3.org/TR/DOM-Level-2-Events/), a w przysz³o¶ci ma zostaæ
108 pe³n± implementacj± standardu DOM Poziom 2.
109
110 gdome2 wspiera równie¿ czê¶ciowo DOM Poziom 3, konkretnie XPath.
111
112 %package static
113 Summary:        Static libraries for gdome2
114 Summary(pl):    Biblioteki statyczne dla gdome2
115 Group:          Development/Libraries
116 Requires:       %{name}-devel = %{version}
117
118 %description static
119 This package contains static libraries for developing with gdome2.
120
121 %description static -l pl
122 Pakiet ten zawiera statyczne biblioteki potrzebne do rozwijania
123 oprogramowania opartego o gdome2.
124
125 %prep
126 %setup -q
127
128 %{!?with_glib1:echo 'AM_DEFUN([AM_PATH_GLIB], [$3])' >> acinclude.m4}
129 %{?with_glib1:echo 'AM_DEFUN([AM_PATH_GLIB_2_0], [$3]' >> acinclude.m4}
130
131 %build
132 #rm -f missing
133 %{__libtoolize}
134 %{__aclocal}
135 %{__autoconf}
136 %{__automake}
137 %configure \
138         %{!?with_glib1:GLIB_CONFIG="pkg-config glib-2.0"} \
139         %{?with_glib1:--enable-glib-1}
140
141 %{__make}
142
143 %install
144 rm -rf $RPM_BUILD_ROOT
145
146 %{__make} install \
147         DESTDIR=$RPM_BUILD_ROOT
148
149 %clean
150 rm -rf $RPM_BUILD_ROOT
151
152 %post   -p /sbin/ldconfig
153 %postun -p /sbin/ldconfig
154
155 %files
156 %defattr(644,root,root,755)
157 %doc AUTHORS MAINTAINERS ChangeLog README
158 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
159
160 %files devel
161 %defattr(644,root,root,755)
162 %doc gtk-doc/html/*.html
163 %attr(755,root,root) %{_bindir}/gdome-config
164 %attr(755,root,root) %{_libdir}/lib*.so
165 %{_libdir}/lib*.la
166 %attr(755,root,root) %{_libdir}/*.sh
167 %{_includedir}/libgdome
168 %{_mandir}/man1/gdome-config.1*
169 %{_aclocaldir}/%{name}.m4
170 %{_pkgconfigdir}/%{name}.pc
171
172 %files static
173 %defattr(644,root,root,755)
174 %{_libdir}/*.a
This page took 0.077919 seconds and 3 git commands to generate.