]>
Commit | Line | Data |
---|---|---|
78966943 JB |
1 | # |
2 | # Conditional build: | |
094ae6fb JB |
3 | %bcond_with apidocs # API documentation [doesn't build up to 0.8.0 release] |
4 | %bcond_without static_libs # static library | |
78966943 JB |
5 | # |
6 | Summary: GXml - GObject API that wraps around libxml2 | |
7 | Summary(pl.UTF-8): GXml - API GObject obudowujące libxml2 | |
8 | Name: gxml | |
5eb0f726 | 9 | Version: 0.8.2 |
78966943 JB |
10 | Release: 1 |
11 | License: LGPL v2.1+ | |
12 | Group: Libraries | |
094ae6fb | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gxml/0.8/%{name}-%{version}.tar.xz |
5eb0f726 | 14 | # Source0-md5: 77af0fb4e1e178b60fc898b8beeaabfe |
78966943 JB |
15 | URL: https://github.com/GNOME/gxml |
16 | BuildRequires: autoconf >= 2.65 | |
17 | BuildRequires: automake >= 1:1.11 | |
a2526220 | 18 | BuildRequires: gettext-tools >= 0.18.1 |
3452f816 | 19 | BuildRequires: glib2-devel >= 1:2.32.0 |
78966943 JB |
20 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
21 | BuildRequires: intltool >= 0.35.0 | |
3452f816 | 22 | BuildRequires: libgee-devel >= 0.10.5 |
78966943 JB |
23 | BuildRequires: libtool >= 2:2 |
24 | BuildRequires: libxml2-devel >= 1:2.7 | |
25 | BuildRequires: pkgconfig >= 1:0.21 | |
26 | BuildRequires: sed >= 4.0 | |
27 | BuildRequires: tar >= 1:1.22 | |
ca825fa8 | 28 | BuildRequires: vala >= 2:0.26 |
094ae6fb | 29 | %{?with_apidocs:BuildRequires: valadoc >= 0.3.1} |
3452f816 | 30 | BuildRequires: yelp-tools |
78966943 | 31 | BuildRequires: xz |
3452f816 | 32 | Requires: glib2 >= 1:2.32.0 |
78966943 JB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | GXml is a GObject API that wraps around libxml2. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | GXml to API GObject obudowujące libxml2. | |
40 | ||
41 | %package devel | |
42 | Summary: Header files for GXml library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GXml | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
3452f816 JB |
46 | Requires: glib2-devel >= 1:2.32.0 |
47 | Requires: libgee-devel >= 0.10.5 | |
78966943 JB |
48 | Requires: libxml2-devel >= 1:2.7 |
49 | ||
50 | %description devel | |
51 | Header files for GXml library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki GXml. | |
55 | ||
56 | %package static | |
57 | Summary: Static GXml library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka GXml | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static GXml library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka GXml. | |
67 | ||
68 | %package -n vala-gxml | |
69 | Summary: Vala API for GXml library | |
70 | Summary(pl.UTF-8): API języka Vala dla biblioteki GXml | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
ca825fa8 | 73 | Requires: vala >= 2:0.26 |
3452f816 | 74 | Requires: vala-libgee >= 0.10.5 |
78966943 JB |
75 | |
76 | %description -n vala-gxml | |
77 | Vala API for GXml library. | |
78 | ||
79 | %description -n vala-gxml -l pl.UTF-8 | |
80 | API języka Vala dla biblioteki GXml. | |
81 | ||
82 | %prep | |
83 | %setup -q | |
84 | ||
78966943 JB |
85 | %build |
86 | %{__intltoolize} | |
87 | %{__libtoolize} | |
88 | %{__aclocal} -I m4 | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
92 | %configure \ | |
93 | --enable-gi-system-install \ | |
94 | --disable-silent-rules \ | |
094ae6fb JB |
95 | %{?with_static_libs:--enable-static} \ |
96 | %{?with_apidocs:--enable-docs --enable-gtk-docs --enable-valadoc} | |
97 | # --enable-gir-docs --enable-devhelp-docs ??? | |
78966943 JB |
98 | %{__make} |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
106 | # obsoleted by pkg-config | |
ca825fa8 | 107 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgxml-0.6.la |
78966943 JB |
108 | # packaged as %doc |
109 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc | |
110 | ||
094ae6fb JB |
111 | %find_lang GXml |
112 | ||
78966943 JB |
113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
094ae6fb | 119 | %files -f GXml.lang |
78966943 | 120 | %defattr(644,root,root,755) |
3452f816 | 121 | %doc AUTHORS ChangeLog NEWS README |
ca825fa8 | 122 | %attr(755,root,root) %{_libdir}/libgxml-0.6.so.*.*.* |
094ae6fb | 123 | %attr(755,root,root) %ghost %{_libdir}/libgxml-0.6.so.8 |
ca825fa8 | 124 | %{_libdir}/girepository-1.0/GXml-0.6.typelib |
78966943 JB |
125 | |
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
ca825fa8 JB |
128 | %attr(755,root,root) %{_libdir}/libgxml-0.6.so |
129 | %{_includedir}/gxml-0.6 | |
130 | %{_datadir}/gir-1.0/GXml-0.6.gir | |
131 | %{_pkgconfigdir}/gxml-0.6.pc | |
78966943 JB |
132 | |
133 | %if %{with static_libs} | |
134 | %files static | |
135 | %defattr(644,root,root,755) | |
ca825fa8 | 136 | %{_libdir}/libgxml-0.6.a |
78966943 JB |
137 | %endif |
138 | ||
139 | %files -n vala-gxml | |
140 | %defattr(644,root,root,755) | |
ca825fa8 JB |
141 | %{_datadir}/vala/vapi/gxml-0.6.deps |
142 | %{_datadir}/vala/vapi/gxml-0.6.vapi |