]> git.pld-linux.org Git - packages/gxml.git/blame - gxml.spec
- updated to 0.10.0 (note: new soname and API version)
[packages/gxml.git] / gxml.spec
CommitLineData
78966943
JB
1#
2# Conditional build:
d9a0151d 3%bcond_without apidocs # API documentation
094ae6fb 4%bcond_without static_libs # static library
9ce7c6de 5
78966943
JB
6Summary: GXml - GObject API that wraps around libxml2
7Summary(pl.UTF-8): GXml - API GObject obudowujące libxml2
8Name: gxml
d9a0151d
JB
9Version: 0.10.0
10Release: 1
78966943
JB
11License: LGPL v2.1+
12Group: Libraries
d9a0151d
JB
13Source0: http://ftp.gnome.org/pub/GNOME/sources/gxml/0.10/%{name}-%{version}.tar.xz
14# Source0-md5: a268a60a6bc9fbad3f0fd580a0a93538
15Patch0: %{name}-bug770449.patch
16Patch1: %{name}-missing.patch
17Patch2: %{name}-docs.patch
78966943
JB
18URL: https://github.com/GNOME/gxml
19BuildRequires: autoconf >= 2.65
20BuildRequires: automake >= 1:1.11
a2526220 21BuildRequires: gettext-tools >= 0.18.1
3452f816 22BuildRequires: glib2-devel >= 1:2.32.0
78966943
JB
23BuildRequires: gobject-introspection-devel >= 1.32.0
24BuildRequires: intltool >= 0.35.0
3452f816 25BuildRequires: libgee-devel >= 0.10.5
78966943
JB
26BuildRequires: libtool >= 2:2
27BuildRequires: libxml2-devel >= 1:2.7
28BuildRequires: pkgconfig >= 1:0.21
29BuildRequires: sed >= 4.0
30BuildRequires: tar >= 1:1.22
ca825fa8 31BuildRequires: vala >= 2:0.26
094ae6fb 32%{?with_apidocs:BuildRequires: valadoc >= 0.3.1}
78966943 33BuildRequires: xz
9ce7c6de 34BuildRequires: yelp-tools
3452f816 35Requires: glib2 >= 1:2.32.0
78966943
JB
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39GXml is a GObject API that wraps around libxml2.
40
41%description -l pl.UTF-8
42GXml to API GObject obudowujące libxml2.
43
44%package devel
45Summary: Header files for GXml library
46Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GXml
47Group: Development/Libraries
48Requires: %{name} = %{version}-%{release}
3452f816
JB
49Requires: glib2-devel >= 1:2.32.0
50Requires: libgee-devel >= 0.10.5
78966943
JB
51Requires: libxml2-devel >= 1:2.7
52
53%description devel
54Header files for GXml library.
55
56%description devel -l pl.UTF-8
57Pliki nagłówkowe biblioteki GXml.
58
59%package static
60Summary: Static GXml library
61Summary(pl.UTF-8): Statyczna biblioteka GXml
62Group: Development/Libraries
63Requires: %{name}-devel = %{version}-%{release}
64
65%description static
66Static GXml library.
67
68%description static -l pl.UTF-8
69Statyczna biblioteka GXml.
70
71%package -n vala-gxml
72Summary: Vala API for GXml library
73Summary(pl.UTF-8): API języka Vala dla biblioteki GXml
74Group: Development/Libraries
75Requires: %{name}-devel = %{version}-%{release}
ca825fa8 76Requires: vala >= 2:0.26
3452f816 77Requires: vala-libgee >= 0.10.5
9ce7c6de
ER
78%if "%{_rpmversion}" >= "5"
79BuildArch: noarch
80%endif
78966943
JB
81
82%description -n vala-gxml
83Vala API for GXml library.
84
85%description -n vala-gxml -l pl.UTF-8
86API języka Vala dla biblioteki GXml.
87
d9a0151d
JB
88%package apidocs
89Summary: API documentation for GXml library
90Summary(pl.UTF-8): Dokumentacja API biblioteki GXml
91Group: Documentation
92
93%description apidocs
94API documentation for GXml library.
95
96%description apidocs -l pl.UTF-8
97Dokumentacja API biblioteki GXml.
98
78966943
JB
99%prep
100%setup -q
d9a0151d
JB
101%patch0 -p1
102%patch1 -p1
103%patch2 -p1
78966943 104
78966943
JB
105%build
106%{__intltoolize}
107%{__libtoolize}
108%{__aclocal} -I m4
109%{__autoconf}
110%{__autoheader}
111%{__automake}
112%configure \
78966943 113 --disable-silent-rules \
094ae6fb
JB
114 %{?with_static_libs:--enable-static} \
115 %{?with_apidocs:--enable-docs --enable-gtk-docs --enable-valadoc}
d9a0151d
JB
116# --enable-devhelp-docs is almost the same as gtk-docs html, but built with valadoc(?) and installed to devhelp dirs
117# --enable-gir-docs ???
78966943
JB
118%{__make}
119
120%install
121rm -rf $RPM_BUILD_ROOT
122
123%{__make} install \
d9a0151d
JB
124 DESTDIR=$RPM_BUILD_ROOT \
125 gxmlgtkdocdir=%{_gtkdocdir}/gxml
78966943
JB
126
127# obsoleted by pkg-config
d9a0151d 128%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgxml-0.10.la
78966943
JB
129# packaged as %doc
130%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
131
d9a0151d
JB
132# what a mess... gtk-doc XML intermediate files are installed to html dir...
133%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/gxml/*.{bottom,top,stamp,txt,types,xml}
134cp -p docs/valadoc/gtk-doc/gtk-doc/gxml/html/* $RPM_BUILD_ROOT%{_gtkdocdir}/gxml
135
136# "GXml" gettext domain, "gxml" gnome help
137%find_lang GXml --with-gnome --all-name
094ae6fb 138
78966943
JB
139%clean
140rm -rf $RPM_BUILD_ROOT
141
142%post -p /sbin/ldconfig
143%postun -p /sbin/ldconfig
144
094ae6fb 145%files -f GXml.lang
78966943 146%defattr(644,root,root,755)
3452f816 147%doc AUTHORS ChangeLog NEWS README
d9a0151d
JB
148%attr(755,root,root) %{_libdir}/libgxml-0.10.so.*.*.*
149%attr(755,root,root) %ghost %{_libdir}/libgxml-0.10.so.10
150%{_libdir}/girepository-1.0/GXml-0.10.typelib
78966943
JB
151
152%files devel
153%defattr(644,root,root,755)
d9a0151d
JB
154%attr(755,root,root) %{_libdir}/libgxml-0.10.so
155%{_includedir}/gxml-0.10
156%{_datadir}/gir-1.0/GXml-0.10.gir
157%{_pkgconfigdir}/gxml-0.10.pc
78966943
JB
158
159%if %{with static_libs}
160%files static
161%defattr(644,root,root,755)
d9a0151d 162%{_libdir}/libgxml-0.10.a
78966943
JB
163%endif
164
165%files -n vala-gxml
166%defattr(644,root,root,755)
d9a0151d
JB
167%{_datadir}/vala/vapi/gxml-0.10.deps
168%{_datadir}/vala/vapi/gxml-0.10.vapi
169
170%if %{with apidocs}
171%files apidocs
172%defattr(644,root,root,755)
173%{_gtkdocdir}/gxml
174%endif
This page took 0.105449 seconds and 4 git commands to generate.