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