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