]> git.pld-linux.org Git - packages/gxml.git/blob - gxml.spec
- unconditional noarch subpackages
[packages/gxml.git] / gxml.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  static_libs     # static library
5
6 Summary:        GXml - GObject API that wraps around libxml2
7 Summary(pl.UTF-8):      GXml - API GObject obudowujące libxml2
8 Name:           gxml
9 Version:        0.20.0
10 Release:        1
11 License:        LGPL v2.1+
12 Group:          Libraries
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
16 BuildRequires:  gettext-tools >= 0.18.1
17 BuildRequires:  glib2-devel >= 1:2.32.0
18 BuildRequires:  gobject-introspection-devel >= 1.32.0
19 BuildRequires:  libgee-devel >= 0.18.0
20 BuildRequires:  libxml2-devel >= 1:2.7
21 BuildRequires:  meson
22 BuildRequires:  ninja >= 1.5
23 BuildRequires:  pkgconfig >= 1:0.21
24 BuildRequires:  sed >= 4.0
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  vala >= 2:0.34.7
27 %{?with_apidocs:BuildRequires:  valadoc >= 0.30}
28 BuildRequires:  xz
29 BuildRequires:  yelp-tools
30 Requires:       glib2 >= 1:2.32.0
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}
44 Requires:       glib2-devel >= 1:2.32.0
45 Requires:       libgee-devel >= 0.18.0
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}
71 Requires:       vala >= 2:0.34.7
72 Requires:       vala-libgee >= 0.18.0
73 BuildArch:      noarch
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 %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
92 %prep
93 %setup -q
94
95 %build
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
104 %meson build \
105         --default-library=shared \
106         %{!?with_apidocs:-Ddocs=false}
107
108 %ninja_build -C build
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112
113 %if %{with static_libs}
114 %ninja_install -C build-static
115 %endif
116
117 %ninja_install -C build
118
119 %find_lang GXml-0.20
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files -f GXml-0.20.lang
128 %defattr(644,root,root,755)
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
133
134 %files devel
135 %defattr(644,root,root,755)
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
140
141 %if %{with static_libs}
142 %files static
143 %defattr(644,root,root,755)
144 %{_libdir}/libgxml-0.20.a
145 %endif
146
147 %files -n vala-gxml
148 %defattr(644,root,root,755)
149 %{_datadir}/vala/vapi/gxml-0.20.deps
150 %{_datadir}/vala/vapi/gxml-0.20.vapi
151
152 %if %{with apidocs}
153 %files apidocs
154 %defattr(644,root,root,755)
155 %{_datadir}/devhelp/books/GXml-0.20
156 %endif
This page took 0.680964 seconds and 3 git commands to generate.