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