]>
Commit | Line | Data |
---|---|---|
78966943 JB |
1 | # |
2 | # Conditional build: | |
328a2b6e | 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 | |
328a2b6e | 9 | Version: 0.20.0 |
4106a0a1 | 10 | Release: 1 |
78966943 JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
328a2b6e JB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gxml/0.20/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 6ee8f2e8f555a76de87cc293dee2106a | |
15 | URL: https://wiki.gnome.org/GXml | |
a2526220 | 16 | BuildRequires: gettext-tools >= 0.18.1 |
3452f816 | 17 | BuildRequires: glib2-devel >= 1:2.32.0 |
78966943 | 18 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
3e059345 | 19 | BuildRequires: libgee-devel >= 0.18.0 |
78966943 | 20 | BuildRequires: libxml2-devel >= 1:2.7 |
328a2b6e JB |
21 | BuildRequires: meson |
22 | BuildRequires: ninja >= 1.5 | |
78966943 JB |
23 | BuildRequires: pkgconfig >= 1:0.21 |
24 | BuildRequires: sed >= 4.0 | |
25 | BuildRequires: tar >= 1:1.22 | |
5b66fccf | 26 | BuildRequires: vala >= 2:0.34.7 |
3e059345 | 27 | %{?with_apidocs:BuildRequires: valadoc >= 0.30} |
78966943 | 28 | BuildRequires: xz |
9ce7c6de | 29 | BuildRequires: yelp-tools |
3452f816 | 30 | Requires: glib2 >= 1:2.32.0 |
78966943 JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | GXml is a GObject API that wraps around libxml2. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | GXml to API GObject obudowujące libxml2. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for GXml library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GXml | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
3452f816 | 44 | Requires: glib2-devel >= 1:2.32.0 |
3e059345 | 45 | Requires: libgee-devel >= 0.18.0 |
78966943 JB |
46 | Requires: libxml2-devel >= 1:2.7 |
47 | ||
48 | %description devel | |
49 | Header files for GXml library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki GXml. | |
53 | ||
54 | %package static | |
55 | Summary: Static GXml library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka GXml | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static GXml library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka GXml. | |
65 | ||
66 | %package -n vala-gxml | |
67 | Summary: Vala API for GXml library | |
68 | Summary(pl.UTF-8): API języka Vala dla biblioteki GXml | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-devel = %{version}-%{release} | |
5b66fccf | 71 | Requires: vala >= 2:0.34.7 |
3e059345 | 72 | Requires: vala-libgee >= 0.18.0 |
9ce7c6de | 73 | BuildArch: noarch |
78966943 JB |
74 | |
75 | %description -n vala-gxml | |
76 | Vala API for GXml library. | |
77 | ||
78 | %description -n vala-gxml -l pl.UTF-8 | |
79 | API języka Vala dla biblioteki GXml. | |
80 | ||
d9a0151d JB |
81 | %package apidocs |
82 | Summary: API documentation for GXml library | |
83 | Summary(pl.UTF-8): Dokumentacja API biblioteki GXml | |
84 | Group: Documentation | |
85 | ||
86 | %description apidocs | |
87 | API documentation for GXml library. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API biblioteki GXml. | |
91 | ||
78966943 JB |
92 | %prep |
93 | %setup -q | |
573e748b | 94 | |
78966943 | 95 | %build |
328a2b6e JB |
96 | %if %{with static_libs} |
97 | %meson build-static \ | |
98 | --default-library=static \ | |
99 | -Ddocs=false | |
100 | ||
101 | %ninja_build -C build-static | |
102 | %endif | |
103 | ||
5b66fccf | 104 | %meson build \ |
328a2b6e JB |
105 | --default-library=shared \ |
106 | %{!?with_apidocs:-Ddocs=false} | |
5b66fccf JB |
107 | |
108 | %ninja_build -C build | |
78966943 JB |
109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
328a2b6e JB |
113 | %if %{with static_libs} |
114 | %ninja_install -C build-static | |
115 | %endif | |
d9a0151d | 116 | |
5b66fccf | 117 | %ninja_install -C build |
573e748b | 118 | |
328a2b6e | 119 | %find_lang GXml-0.20 |
094ae6fb | 120 | |
78966943 JB |
121 | %clean |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
328a2b6e | 127 | %files -f GXml-0.20.lang |
78966943 | 128 | %defattr(644,root,root,755) |
328a2b6e JB |
129 | %doc AUTHORS MAINTAINERS NEWS README |
130 | %attr(755,root,root) %{_libdir}/libgxml-0.20.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libgxml-0.20.so.2 | |
132 | %{_libdir}/girepository-1.0/GXml-0.20.typelib | |
78966943 JB |
133 | |
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
328a2b6e JB |
136 | %attr(755,root,root) %{_libdir}/libgxml-0.20.so |
137 | %{_includedir}/gxml-0.20 | |
138 | %{_datadir}/gir-1.0/GXml-0.20.gir | |
139 | %{_pkgconfigdir}/gxml-0.20.pc | |
78966943 JB |
140 | |
141 | %if %{with static_libs} | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
328a2b6e | 144 | %{_libdir}/libgxml-0.20.a |
78966943 JB |
145 | %endif |
146 | ||
147 | %files -n vala-gxml | |
148 | %defattr(644,root,root,755) | |
328a2b6e JB |
149 | %{_datadir}/vala/vapi/gxml-0.20.deps |
150 | %{_datadir}/vala/vapi/gxml-0.20.vapi | |
d9a0151d JB |
151 | |
152 | %if %{with apidocs} | |
153 | %files apidocs | |
154 | %defattr(644,root,root,755) | |
328a2b6e | 155 | %{_datadir}/devhelp/books/GXml-0.20 |
d9a0151d | 156 | %endif |