]> git.pld-linux.org Git - packages/gdome2.git/blame - gdome2.spec
- added no-common patch to fix build with -fno-common, gcc 10+ default; release 16
[packages/gdome2.git] / gdome2.spec
CommitLineData
db7b5de2 1#
2# Conditional build:
f9799143 3%bcond_without static_libs # static library
7fffa42a 4
733c4f31 5Summary: DOM level2 library for accessing XML files
5f7ffb30 6Summary(pl.UTF-8): Biblioteka dostępu do plików XML, DOM poziom 2
733c4f31 7Name: gdome2
a2353270 8Version: 0.8.1
4a2ad394 9Release: 16
f9799143 10License: LGPL v2.1+
733c4f31 11Group: Libraries
a9b4c886 12Source0: http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz
a2353270 13# Source0-md5: bfc114e59eec50cbda8e4ece751ff022
1ddb50bf 14Patch0: %{name}-glib2.patch
c7926aa4 15Patch1: %{name}-build_fix.patch
a1d0578b 16Patch2: format-security.patch
82a5aa8d 17Patch3: %{name}-destdir.patch
4a2ad394 18Patch4: %{name}-no-common.patch
1ae58361 19URL: http://gdome2.cs.unibo.it/
733c4f31
MM
20BuildRequires: autoconf
21BuildRequires: automake
1ddb50bf 22BuildRequires: glib2-devel >= 2.2.0
733c4f31 23BuildRequires: libtool
82a5aa8d 24BuildRequires: libxml2-devel >= 1:2.4.26
1b9e0a9c 25BuildRequires: pkgconfig
82a5aa8d
JB
26Requires: glib2 >= 2.2.0
27Requires: libxml2 >= 1:2.4.26
733c4f31
MM
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31gdome2 is a fast, light and complete DOM level2 implementation based
32on libxml2. Although it has been written for the GNOME project, it can
33be used stand-alone.
34
35A DOM implementation (also called a host implementation) is what makes
36a parsed XML or HTML document available for processing via the DOM
37interface.
38
39gdome2 currently supports the "Core", "XML", "Events" and
40"MutationEvents" modules from the DOM2 Recommendation (see
41http://www.w3.org/TR/DOM-Level-2-Core/ and
42http://www.w3.org/TR/DOM-Level-2-Events/), and is supposed to become a
43full implementation of all the DOM Level2 standard.
44
45Now gdome2 also partially supports the XPath module from the DOM level
463 drafts.
47
cd3afcf9
JR
48%description -l pl.UTF-8
49gdome2 jest szybką, lekką i kompletną implementacją poziomu 2 DOM
50opartą o libxml2. Pomimo, że gdome2 zostało napisane z myślą o
51projekcie GNOME, może być używane samodzielnie.
733c4f31 52
cd3afcf9 53Implementacja DOM (zwana również implementacją hosta) udostępnia
7fffa42a
ER
54przeanalizowany składniowo dokument XML lub HTML w celu dalszego jego
55przetwarzania poprzez interfejs DOM.
733c4f31 56
cd3afcf9
JR
57gdome2 w chwili obecnej wspiera następujące moduły rekomendacji DOM2:
58"Core", "XML", "Events" oraz "MutationEvents" (więcej informacji można
59uzyskać pod adresem http://www.w3.org/TR/DOM-Level-2-Core/ oraz
60http://www.w3.org/TR/DOM-Level-2-Events/), a w przyszłości ma zostać
61pełną implementacją standardu poziomu 2 DOM.
733c4f31 62
cd3afcf9 63gdome2 wspiera również częściowo poziom 3 DOM, konkretnie XPath.
733c4f31
MM
64
65%package devel
66Summary: Development files for gdome2
5f7ffb30 67Summary(pl.UTF-8): Pliki nagłówkowe gdome2
733c4f31 68Group: Development/Libraries
f79d81a0 69Requires: %{name} = %{version}-%{release}
1ddb50bf 70Requires: glib2-devel >= 2.2.0
82a5aa8d 71Requires: libxml2-devel >= 1:2.4.26
733c4f31
MM
72
73%description devel
74This package contains the header files and configuration scripts for
75developing with gdome2.
76
77gdome2 is a fast, light and complete DOM level2 implementation based
78on libxml2. Although it has been written for the GNOME project, it can
79be used stand-alone.
80
81A DOM implementation (also called a host implementation) is what makes
82a parsed XML or HTML document available for processing via the DOM
83interface.
84
85gdome2 currently supports the "Core", "XML", "Events" and
86"MutationEvents" modules from the DOM2 Recommendation (see
87http://www.w3.org/TR/DOM-Level-2-Core/ and
88http://www.w3.org/TR/DOM-Level-2-Events/), and is supposed to become a
89full implementation of all the DOM Level2 standard.
90
91Now gdome2 also partially supports the XPath module from the DOM level
923 drafts.
93
cd3afcf9
JR
94%description devel -l pl.UTF-8
95Pakiet ten zawiera pliki nagłówkowe oraz skrypty konfiguracyjne
c1785122 96potrzebne do rozwijania oprogramowania opartego o gdome2.
733c4f31 97
cd3afcf9
JR
98gdome2 jest szybką, lekką i kompletną implementacją poziomu 2 DOM
99opartą o libxml2. Pomimo, że gdome2 zostało napisane z myślą o
100projekcie GNOME, może być używane samodzielnie.
733c4f31 101
cd3afcf9 102Implementacja DOM (zwana również implementacją hosta) udostępnia
7fffa42a
ER
103przeanalizowany składniowo dokument XML lub HTML w celu dalszego jego
104przetwarzania poprzez interfejs DOM.
733c4f31 105
cd3afcf9
JR
106gdome2 w chwili obecnej wspiera następujące moduły rekomendacji DOM2:
107"Core", "XML", "Events" oraz "MutationEvents" (więcej informacji można
108uzyskać pod adresem http://www.w3.org/TR/DOM-Level-2-Core/ oraz
109http://www.w3.org/TR/DOM-Level-2-Events/), a w przyszłości ma zostać
110pełną implementacją standardu poziomu 2 DOM.
733c4f31 111
cd3afcf9 112gdome2 wspiera również częściowo poziom 3 DOM, konkretnie XPath.
733c4f31
MM
113
114%package static
115Summary: Static libraries for gdome2
5f7ffb30 116Summary(pl.UTF-8): Biblioteki statyczne dla gdome2
733c4f31 117Group: Development/Libraries
f79d81a0 118Requires: %{name}-devel = %{version}-%{release}
733c4f31
MM
119
120%description static
121This package contains static libraries for developing with gdome2.
122
cd3afcf9 123%description static -l pl.UTF-8
c1785122 124Pakiet ten zawiera statyczne biblioteki potrzebne do rozwijania
733c4f31
MM
125oprogramowania opartego o gdome2.
126
82a5aa8d
JB
127%package apidocs
128Summary: API documentation for gdome2 library
129Summary(pl.UTF-8): Dokumentacja API biblioteki gdome2
130Group: Documentation
7fffa42a 131BuildArch: noarch
82a5aa8d
JB
132
133%description apidocs
134API documentation for gdome2 library.
135
136%description apidocs -l pl.UTF-8
137Dokumentacja 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 148echo '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
163rm -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
172rm -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}
This page took 0.087808 seconds and 4 git commands to generate.