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