]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: DOM level2 library for accessing XML files | |
6 | Summary(pl.UTF-8): Biblioteka dostępu do plików XML, DOM poziom 2 | |
7 | Name: gdome2 | |
8 | Version: 0.8.1 | |
9 | Release: 16 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: bfc114e59eec50cbda8e4ece751ff022 | |
14 | Patch0: %{name}-glib2.patch | |
15 | Patch1: %{name}-build_fix.patch | |
16 | Patch2: format-security.patch | |
17 | Patch3: %{name}-destdir.patch | |
18 | Patch4: %{name}-no-common.patch | |
19 | URL: http://gdome2.cs.unibo.it/ | |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake | |
22 | BuildRequires: glib2-devel >= 2.2.0 | |
23 | BuildRequires: libtool | |
24 | BuildRequires: libxml2-devel >= 1:2.4.26 | |
25 | BuildRequires: pkgconfig | |
26 | Requires: glib2 >= 2.2.0 | |
27 | Requires: libxml2 >= 1:2.4.26 | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | gdome2 is a fast, light and complete DOM level2 implementation based | |
32 | on libxml2. Although it has been written for the GNOME project, it can | |
33 | be used stand-alone. | |
34 | ||
35 | A DOM implementation (also called a host implementation) is what makes | |
36 | a parsed XML or HTML document available for processing via the DOM | |
37 | interface. | |
38 | ||
39 | gdome2 currently supports the "Core", "XML", "Events" and | |
40 | "MutationEvents" modules from the DOM2 Recommendation (see | |
41 | http://www.w3.org/TR/DOM-Level-2-Core/ and | |
42 | http://www.w3.org/TR/DOM-Level-2-Events/), and is supposed to become a | |
43 | full implementation of all the DOM Level2 standard. | |
44 | ||
45 | Now gdome2 also partially supports the XPath module from the DOM level | |
46 | 3 drafts. | |
47 | ||
48 | %description -l pl.UTF-8 | |
49 | gdome2 jest szybką, lekką i kompletną implementacją poziomu 2 DOM | |
50 | opartą o libxml2. Pomimo, że gdome2 zostało napisane z myślą o | |
51 | projekcie GNOME, może być używane samodzielnie. | |
52 | ||
53 | Implementacja DOM (zwana również implementacją hosta) udostępnia | |
54 | przeanalizowany składniowo dokument XML lub HTML w celu dalszego jego | |
55 | przetwarzania poprzez interfejs DOM. | |
56 | ||
57 | gdome2 w chwili obecnej wspiera następujące moduły rekomendacji DOM2: | |
58 | "Core", "XML", "Events" oraz "MutationEvents" (więcej informacji można | |
59 | uzyskać pod adresem http://www.w3.org/TR/DOM-Level-2-Core/ oraz | |
60 | http://www.w3.org/TR/DOM-Level-2-Events/), a w przyszłości ma zostać | |
61 | pełną implementacją standardu poziomu 2 DOM. | |
62 | ||
63 | gdome2 wspiera również częściowo poziom 3 DOM, konkretnie XPath. | |
64 | ||
65 | %package devel | |
66 | Summary: Development files for gdome2 | |
67 | Summary(pl.UTF-8): Pliki nagłówkowe gdome2 | |
68 | Group: Development/Libraries | |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: glib2-devel >= 2.2.0 | |
71 | Requires: libxml2-devel >= 1:2.4.26 | |
72 | ||
73 | %description devel | |
74 | This package contains the header files and configuration scripts for | |
75 | developing with gdome2. | |
76 | ||
77 | gdome2 is a fast, light and complete DOM level2 implementation based | |
78 | on libxml2. Although it has been written for the GNOME project, it can | |
79 | be used stand-alone. | |
80 | ||
81 | A DOM implementation (also called a host implementation) is what makes | |
82 | a parsed XML or HTML document available for processing via the DOM | |
83 | interface. | |
84 | ||
85 | gdome2 currently supports the "Core", "XML", "Events" and | |
86 | "MutationEvents" modules from the DOM2 Recommendation (see | |
87 | http://www.w3.org/TR/DOM-Level-2-Core/ and | |
88 | http://www.w3.org/TR/DOM-Level-2-Events/), and is supposed to become a | |
89 | full implementation of all the DOM Level2 standard. | |
90 | ||
91 | Now gdome2 also partially supports the XPath module from the DOM level | |
92 | 3 drafts. | |
93 | ||
94 | %description devel -l pl.UTF-8 | |
95 | Pakiet ten zawiera pliki nagłówkowe oraz skrypty konfiguracyjne | |
96 | potrzebne do rozwijania oprogramowania opartego o gdome2. | |
97 | ||
98 | gdome2 jest szybką, lekką i kompletną implementacją poziomu 2 DOM | |
99 | opartą o libxml2. Pomimo, że gdome2 zostało napisane z myślą o | |
100 | projekcie GNOME, może być używane samodzielnie. | |
101 | ||
102 | Implementacja DOM (zwana również implementacją hosta) udostępnia | |
103 | przeanalizowany składniowo dokument XML lub HTML w celu dalszego jego | |
104 | przetwarzania poprzez interfejs DOM. | |
105 | ||
106 | gdome2 w chwili obecnej wspiera następujące moduły rekomendacji DOM2: | |
107 | "Core", "XML", "Events" oraz "MutationEvents" (więcej informacji można | |
108 | uzyskać pod adresem http://www.w3.org/TR/DOM-Level-2-Core/ oraz | |
109 | http://www.w3.org/TR/DOM-Level-2-Events/), a w przyszłości ma zostać | |
110 | pełną implementacją standardu poziomu 2 DOM. | |
111 | ||
112 | gdome2 wspiera również częściowo poziom 3 DOM, konkretnie XPath. | |
113 | ||
114 | %package static | |
115 | Summary: Static libraries for gdome2 | |
116 | Summary(pl.UTF-8): Biblioteki statyczne dla gdome2 | |
117 | Group: Development/Libraries | |
118 | Requires: %{name}-devel = %{version}-%{release} | |
119 | ||
120 | %description static | |
121 | This package contains static libraries for developing with gdome2. | |
122 | ||
123 | %description static -l pl.UTF-8 | |
124 | Pakiet ten zawiera statyczne biblioteki potrzebne do rozwijania | |
125 | oprogramowania opartego o gdome2. | |
126 | ||
127 | %package apidocs | |
128 | Summary: API documentation for gdome2 library | |
129 | Summary(pl.UTF-8): Dokumentacja API biblioteki gdome2 | |
130 | Group: Documentation | |
131 | BuildArch: noarch | |
132 | ||
133 | %description apidocs | |
134 | API documentation for gdome2 library. | |
135 | ||
136 | %description apidocs -l pl.UTF-8 | |
137 | Dokumentacja API biblioteki gdome2. | |
138 | ||
139 | %prep | |
140 | %setup -q | |
141 | %patch0 -p1 | |
142 | %patch1 -p1 | |
143 | %patch2 -p1 | |
144 | %patch3 -p1 | |
145 | %patch4 -p1 | |
146 | ||
147 | # disable glib 1.x in order to force 2.x | |
148 | echo 'AM_DEFUN([AM_PATH_GLIB], [$3])' >> acinclude.m4 | |
149 | ||
150 | %build | |
151 | %{__libtoolize} | |
152 | %{__aclocal} | |
153 | %{__autoconf} | |
154 | %{__autoheader} | |
155 | %{__automake} | |
156 | %configure \ | |
157 | %{!?with_static_libs:--disable-static} \ | |
158 | --with-html-dir=%{_gtkdocdir} | |
159 | ||
160 | %{__make} | |
161 | ||
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | %{__make} install \ | |
166 | DESTDIR=$RPM_BUILD_ROOT | |
167 | ||
168 | # obsoleted by pkg-config | |
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdome.la | |
170 | ||
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post -p /sbin/ldconfig | |
175 | %postun -p /sbin/ldconfig | |
176 | ||
177 | %files | |
178 | %defattr(644,root,root,755) | |
179 | %doc AUTHORS MAINTAINERS ChangeLog README | |
180 | %attr(755,root,root) %{_libdir}/libgdome.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/libgdome.so.0 | |
182 | ||
183 | %files devel | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_bindir}/gdome-config | |
186 | %attr(755,root,root) %{_libdir}/libgdome.so | |
187 | %attr(755,root,root) %{_libdir}/gdomeConf.sh | |
188 | %{_includedir}/libgdome | |
189 | %{_mandir}/man1/gdome-config.1* | |
190 | %{_aclocaldir}/gdome2.m4 | |
191 | %{_pkgconfigdir}/gdome2.pc | |
192 | ||
193 | %if %{with static_libs} | |
194 | %files static | |
195 | %defattr(644,root,root,755) | |
196 | %{_libdir}/libgdome.a | |
197 | %endif | |
198 | ||
199 | %files apidocs | |
200 | %defattr(644,root,root,755) | |
201 | %{_gtkdocdir}/gdome2-%{version} |