/[packages]/updates/infra_5/appstream-glib/current/SPECS/appstream-glib.spec
ViewVC logotype

Contents of /updates/infra_5/appstream-glib/current/SPECS/appstream-glib.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1109438 - (show annotations) (download)
Fri Jul 7 12:10:01 2017 UTC (6 years, 9 months ago) by ngompa
File size: 7730 byte(s)
Rebase backported appstream-glib to 0.6.13
1 %define major 8
2 %define gmajor 1.0
3 %define libname %mklibname %{name} %{major}
4 %define girname %mklibname %{name}-gir %{gmajor}
5
6 %define libnameappstream_builder %mklibname appstream-builder %{major}
7 %define girnameappstream_builder %mklibname appstream-builder-gir %{gmajor}
8
9 %define devname %mklibname %{name} -d
10
11 %define url_ver %(echo %{version} | cut -d. -f1,2)
12
13 # Versions for dependencies
14 %define min_libsoup_ver 2.51.92
15 %define min_jsonglib_ver 1.1.1
16 %define min_glib2_ver 2.45.8
17 %define min_gdkpixbuf2_ver 2.31.5
18
19 # Library names for runtime dep enforcement, required for mga5 backport
20 %define libsoupname %mklibname soup 2.4 1
21 %define libjsonglibname %mklibname json-glib 1.0 0
22 %define glib2name %mklibname glib 2.0 0
23 %define libgioname %mklibname gio 2.0 0
24 %define libgdkpixbuf2 %mklibname gdk_pixbuf 2.0 0
25
26 Name: appstream-glib
27 Version: 0.6.13
28 Release: %mkrel 1
29 Summary: Library for reading and writing AppStream metadata
30 Group: System/Libraries
31 License: LGPLv2+
32 URL: http://people.freedesktop.org/~hughsient/appstream-glib/
33 Source0: http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
34
35 # Mageia specific patches
36 ## (ngompa): Fix path for libstemmer headers
37 Patch1000: appstream-glib-0.6.5-mga-Fix-path-for-libstemmer.patch
38
39 # Because of Patch1000, we need to regenerate autofoo
40 BuildRequires: autoconf
41 BuildRequires: autoconf-archive
42 BuildRequires: automake
43 BuildRequires: libtool
44 BuildRequires: gettext-devel
45
46 # Regular build dependencies
47 BuildRequires: pkgconfig(libgcab-1.0)
48 BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= %{min_gdkpixbuf2_ver}
49 BuildRequires: pkgconfig(glib-2.0) >= %{min_glib2_ver}
50 BuildRequires: pkgconfig(gio-2.0)
51 BuildRequires: pkgconfig(gobject-2.0)
52 BuildRequires: pkgconfig(gthread-2.0)
53 BuildRequires: pkgconfig(gtk+-3.0)
54 BuildRequires: pkgconfig(gobject-introspection-1.0)
55 BuildRequires: pkgconfig(json-glib-1.0) >= %{min_jsonglib_ver}
56 BuildRequires: pkgconfig(libarchive)
57 BuildRequires: pkgconfig(libsoup-2.4) >= %{min_libsoup_ver}
58 BuildRequires: pkgconfig(rpm)
59 BuildRequires: pkgconfig(uuid)
60 BuildRequires: pkgconfig(yaml-0.1)
61 BuildRequires: libstemmer-devel
62 BuildRequires: intltool
63 BuildRequires: gtk-doc
64 BuildRequires: gcab
65 BuildRequires: gperf
66
67 %description
68 This library provides GObjects and helper methods to make it easy to read and
69 write AppStream metadata. It also provides a simple DOM implementation that
70 makes it easy to edit nodes and convert to and from the standardized XML
71 representation.
72
73 %package -n appstream-util
74 Summary: Utility to do simple operations on AppStream metadata
75 Group: System/Packaging
76 Obsoletes: appdata-tools < 0.1.9
77 Provides: appdata-tools = %{version}-%{release}
78 Requires: %{libname} = %{version}-%{release}
79 Requires: %{libnameappstream_builder} = %{version}-%{release}
80 Requires: %{libjsonglibname} >= %{min_jsonglib_ver}
81 Requires: %{libsoupname} >= %{min_libsoup_ver}
82 Requires: %{libgdkpixbuf2} >= %{min_gdkpixbuf2_ver}
83 Requires: %{glib2name} >= %{min_glib2_ver}
84 Requires: %{libgioname} >= %{min_glib2_ver}
85
86 %description -n appstream-util
87 Utility to do simple operations on AppStream metadata.
88
89 Sub-commands understood by this utility include: 'install', 'uninstall',
90 'dump' and 'convert'.
91
92 %package -n %{libname}
93 Summary: Library for reading and writing AppStream metadata
94 Group: System/Libraries
95 Obsoletes: %{_lib}appstream-glib1.0_1 < 0.1.1-2
96 Requires: %{name}-i18n >= %{version}-%{release}
97 Requires: %{libsoupname} >= %{min_libsoup_ver}
98 Requires: %{libgdkpixbuf2} >= %{min_gdkpixbuf2_ver}
99 Requires: %{glib2name} >= %{min_glib2_ver}
100 Requires: %{libgioname} >= %{min_glib2_ver}
101
102 %description -n %{libname}
103 This library provides GObjects and helper methods to make it easy to read and
104 write AppStream metadata. It also provides a simple DOM implementation that
105 makes it easy to edit nodes and convert to and from the standardized XML
106 representation.
107
108 %package -n %{libnameappstream_builder}
109 Summary: Library for reading and writing AppStream metadata
110 Group: System/Libraries
111 Requires: %{name}-i18n >= %{version}-%{release}
112 Requires: %{libgdkpixbuf2} >= %{min_gdkpixbuf2_ver}
113 Requires: %{glib2name} >= %{min_glib2_ver}
114 Requires: %{libgioname} >= %{min_glib2_ver}
115
116 %description -n %{libnameappstream_builder}
117 This library provides GObjects and helper methods to make it easy to read and
118 write AppStream metadata. It also provides a simple DOM implementation that
119 makes it easy to edit nodes and convert to and from the standardized XML
120 representation.
121
122 %package -n %{girname}
123 Summary: GObject Introspection interface description for %{name}
124 Group: System/Libraries
125 Requires: %{libname} = %{version}-%{release}
126 Conflicts: %{_lib}appstream-glib1.0_1 < 0.1.1-2
127
128 %description -n %{girname}
129 GObject Introspection interface description for %{name}.
130
131 %package -n %{girnameappstream_builder}
132 Summary: GObject Introspection interface description for %{name}
133 Group: System/Libraries
134 Requires: %{libnameappstream_builder} = %{version}-%{release}
135
136 %description -n %{girnameappstream_builder}
137 GObject Introspection interface description for %{name}.
138
139 %package -n %{devname}
140 Summary: Development files for %{name}
141 Group: Development/C
142 Requires: %{libname} = %{version}-%{release}
143 Requires: %{libnameappstream_builder} = %{version}-%{release}
144 Requires: %{girname} = %{version}-%{release}
145 Requires: %{girnameappstream_builder} = %{version}-%{release}
146 # tools are tested by some pkgs, thus fixing generating deps:
147 Requires: appstream-util
148 Provides: %{name}-devel = %{version}-%{release}
149 Provides: lib%{name}-devel = %{version}-%{release}
150 Obsoletes: %{_lib}appstream-glib1.0-devel < 0.1.1-2
151 Conflicts: appdata-tools < 0.1.9
152
153 %description -n %{devname}
154 The %{name}-devel package contains libraries and header files for
155 developing applications that use %{name}.
156
157 %package i18n
158 Summary: Library for reading and writing AppStream metadata - translations
159 Group: System/Internationalization
160 BuildArch: noarch
161
162 %description i18n
163 This package contains translations used by %{name}.
164
165 %prep
166 %autosetup -p1
167
168 %build
169 # Because of Patch1000, we need to regenerate autotools configure
170 rm -fv configure
171 NOCONFIGURE=1 ./autogen.sh
172 %configure2_5x --disable-static --enable-stemmer --enable-gtk-doc
173 %make_build V=1
174
175 %install
176 %make_install
177
178 # Remove unwanted la files
179 find %{buildroot} -name "*.la" -delete
180
181 %{find_lang} %{name}
182
183 %files -n appstream-util
184 %{_bindir}/appstream-util
185 %{_bindir}/appstream-builder
186 %{_bindir}/appstream-compose
187 %{_datadir}/bash-completion/completions/appstream-util
188 %{_datadir}/bash-completion/completions/appstream-builder
189 %{_libdir}/asb-plugins-5/libasb_plugin_*.so
190 %{_mandir}/man1/appstream-builder.1*
191 %{_mandir}/man1/appstream-util.1*
192 %{_mandir}/man1/appstream-compose.1*
193
194 %files -n %{libname}
195 %doc AUTHORS NEWS
196 %{_libdir}/lib%{name}.so.%{major}
197 %{_libdir}/lib%{name}.so.%{major}.*
198 #%{python3_sitearch}/gi/overrides/*
199
200 %files -n %{libnameappstream_builder}
201 %{_libdir}/libappstream-builder.so.%{major}
202 %{_libdir}/libappstream-builder.so.%{major}.*
203
204 %files -n %{girname}
205 %{_libdir}/girepository-1.0/AppStreamGlib-%{gmajor}.typelib
206
207 %files -n %{girnameappstream_builder}
208 %{_libdir}/girepository-1.0/AppStreamBuilder-%{gmajor}.typelib
209
210 %files -n %{devname}
211 %doc %{_datadir}/gtk-doc/html/appstream-glib/
212 %{_includedir}/lib%{name}/
213 %{_includedir}/libappstream-builder/
214 %{_libdir}/lib%{name}.so
215 %{_libdir}/libappstream-builder.so
216 %{_libdir}/pkgconfig/%{name}.pc
217 %{_libdir}/pkgconfig/appstream-builder.pc
218 %{_datadir}/gir-1.0/AppStreamGlib-%{gmajor}.gir
219 %{_datadir}/gir-1.0/AppStreamBuilder-%{gmajor}.gir
220 %{_datadir}/aclocal/appstream-xml.m4
221 %{_datadir}/aclocal/appdata-xml.m4
222 %{_datadir}/installed-tests/appstream-glib
223 %{_datadir}/gettext/its/appdata.its
224 %{_datadir}/gettext/its/appdata.loc
225
226 %files i18n -f %{name}.lang

  ViewVC Help
Powered by ViewVC 1.1.30