]>
Commit | Line | Data |
---|---|---|
db7b5de2 | 1 | # |
2 | # Conditional build: | |
f9799143 | 3 | %bcond_without static_libs # static library |
7fffa42a | 4 | |
733c4f31 | 5 | Summary: DOM level2 library for accessing XML files |
5f7ffb30 | 6 | Summary(pl.UTF-8): Biblioteka dostępu do plików XML, DOM poziom 2 |
733c4f31 | 7 | Name: gdome2 |
a2353270 | 8 | Version: 0.8.1 |
4a2ad394 | 9 | Release: 16 |
f9799143 | 10 | License: LGPL v2.1+ |
733c4f31 | 11 | Group: Libraries |
a9b4c886 | 12 | Source0: http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz |
a2353270 | 13 | # Source0-md5: bfc114e59eec50cbda8e4ece751ff022 |
1ddb50bf | 14 | Patch0: %{name}-glib2.patch |
c7926aa4 | 15 | Patch1: %{name}-build_fix.patch |
a1d0578b | 16 | Patch2: format-security.patch |
82a5aa8d | 17 | Patch3: %{name}-destdir.patch |
4a2ad394 | 18 | Patch4: %{name}-no-common.patch |
1ae58361 | 19 | URL: http://gdome2.cs.unibo.it/ |
733c4f31 MM |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
1ddb50bf | 22 | BuildRequires: glib2-devel >= 2.2.0 |
733c4f31 | 23 | BuildRequires: libtool |
82a5aa8d | 24 | BuildRequires: libxml2-devel >= 1:2.4.26 |
1b9e0a9c | 25 | BuildRequires: pkgconfig |
82a5aa8d JB |
26 | Requires: glib2 >= 2.2.0 |
27 | Requires: libxml2 >= 1:2.4.26 | |
733c4f31 MM |
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 | ||
cd3afcf9 JR |
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. | |
733c4f31 | 52 | |
cd3afcf9 | 53 | Implementacja DOM (zwana również implementacją hosta) udostępnia |
7fffa42a ER |
54 | przeanalizowany składniowo dokument XML lub HTML w celu dalszego jego |
55 | przetwarzania poprzez interfejs DOM. | |
733c4f31 | 56 | |
cd3afcf9 JR |
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. | |
733c4f31 | 62 | |
cd3afcf9 | 63 | gdome2 wspiera również częściowo poziom 3 DOM, konkretnie XPath. |
733c4f31 MM |
64 | |
65 | %package devel | |
66 | Summary: Development files for gdome2 | |
5f7ffb30 | 67 | Summary(pl.UTF-8): Pliki nagłówkowe gdome2 |
733c4f31 | 68 | Group: Development/Libraries |
f79d81a0 | 69 | Requires: %{name} = %{version}-%{release} |
1ddb50bf | 70 | Requires: glib2-devel >= 2.2.0 |
82a5aa8d | 71 | Requires: libxml2-devel >= 1:2.4.26 |
733c4f31 MM |
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 | ||
cd3afcf9 JR |
94 | %description devel -l pl.UTF-8 |
95 | Pakiet ten zawiera pliki nagłówkowe oraz skrypty konfiguracyjne | |
c1785122 | 96 | potrzebne do rozwijania oprogramowania opartego o gdome2. |
733c4f31 | 97 | |
cd3afcf9 JR |
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. | |
733c4f31 | 101 | |
cd3afcf9 | 102 | Implementacja DOM (zwana również implementacją hosta) udostępnia |
7fffa42a ER |
103 | przeanalizowany składniowo dokument XML lub HTML w celu dalszego jego |
104 | przetwarzania poprzez interfejs DOM. | |
733c4f31 | 105 | |
cd3afcf9 JR |
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. | |
733c4f31 | 111 | |
cd3afcf9 | 112 | gdome2 wspiera również częściowo poziom 3 DOM, konkretnie XPath. |
733c4f31 MM |
113 | |
114 | %package static | |
115 | Summary: Static libraries for gdome2 | |
5f7ffb30 | 116 | Summary(pl.UTF-8): Biblioteki statyczne dla gdome2 |
733c4f31 | 117 | Group: Development/Libraries |
f79d81a0 | 118 | Requires: %{name}-devel = %{version}-%{release} |
733c4f31 MM |
119 | |
120 | %description static | |
121 | This package contains static libraries for developing with gdome2. | |
122 | ||
cd3afcf9 | 123 | %description static -l pl.UTF-8 |
c1785122 | 124 | Pakiet ten zawiera statyczne biblioteki potrzebne do rozwijania |
733c4f31 MM |
125 | oprogramowania opartego o gdome2. |
126 | ||
82a5aa8d JB |
127 | %package apidocs |
128 | Summary: API documentation for gdome2 library | |
129 | Summary(pl.UTF-8): Dokumentacja API biblioteki gdome2 | |
130 | Group: Documentation | |
7fffa42a | 131 | BuildArch: noarch |
82a5aa8d JB |
132 | |
133 | %description apidocs | |
134 | API documentation for gdome2 library. | |
135 | ||
136 | %description apidocs -l pl.UTF-8 | |
137 | Dokumentacja API biblioteki gdome2. | |
138 | ||
733c4f31 MM |
139 | %prep |
140 | %setup -q | |
1ddb50bf | 141 | %patch0 -p1 |
c7926aa4 | 142 | %patch1 -p1 |
a1d0578b | 143 | %patch2 -p1 |
82a5aa8d | 144 | %patch3 -p1 |
4a2ad394 | 145 | %patch4 -p1 |
733c4f31 | 146 | |
82a5aa8d | 147 | # disable glib 1.x in order to force 2.x |
1ddb50bf | 148 | echo 'AM_DEFUN([AM_PATH_GLIB], [$3])' >> acinclude.m4 |
4d71b314 | 149 | |
733c4f31 | 150 | %build |
b6cd2f3f | 151 | %{__libtoolize} |
2d4ce043 | 152 | %{__aclocal} |
14f44c1e | 153 | %{__autoconf} |
82a5aa8d | 154 | %{__autoheader} |
2d4ce043 | 155 | %{__automake} |
db7b5de2 | 156 | %configure \ |
82a5aa8d JB |
157 | %{!?with_static_libs:--disable-static} \ |
158 | --with-html-dir=%{_gtkdocdir} | |
733c4f31 MM |
159 | |
160 | %{__make} | |
161 | ||
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
2d4ce043 | 164 | |
c1785122 | 165 | %{__make} install \ |
1ae58361 | 166 | DESTDIR=$RPM_BUILD_ROOT |
733c4f31 | 167 | |
f9799143 JB |
168 | # obsoleted by pkg-config |
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdome.la | |
170 | ||
733c4f31 MM |
171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
2d4ce043 | 174 | %post -p /sbin/ldconfig |
733c4f31 MM |
175 | %postun -p /sbin/ldconfig |
176 | ||
177 | %files | |
178 | %defattr(644,root,root,755) | |
c1785122 | 179 | %doc AUTHORS MAINTAINERS ChangeLog README |
82a5aa8d JB |
180 | %attr(755,root,root) %{_libdir}/libgdome.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libgdome.so.0 | |
733c4f31 MM |
182 | |
183 | %files devel | |
184 | %defattr(644,root,root,755) | |
733c4f31 | 185 | %attr(755,root,root) %{_bindir}/gdome-config |
82a5aa8d | 186 | %attr(755,root,root) %{_libdir}/libgdome.so |
82a5aa8d | 187 | %attr(755,root,root) %{_libdir}/gdomeConf.sh |
c1785122 | 188 | %{_includedir}/libgdome |
733c4f31 | 189 | %{_mandir}/man1/gdome-config.1* |
82a5aa8d JB |
190 | %{_aclocaldir}/gdome2.m4 |
191 | %{_pkgconfigdir}/gdome2.pc | |
733c4f31 | 192 | |
db7b5de2 | 193 | %if %{with static_libs} |
733c4f31 MM |
194 | %files static |
195 | %defattr(644,root,root,755) | |
82a5aa8d | 196 | %{_libdir}/libgdome.a |
db7b5de2 | 197 | %endif |
82a5aa8d JB |
198 | |
199 | %files apidocs | |
200 | %defattr(644,root,root,755) | |
201 | %{_gtkdocdir}/gdome2-%{version} |