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