Compare commits
10 Commits
0fae034b5c
...
175f42f72b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
175f42f72b | ||
|
|
8f24078290 | ||
|
|
9dd5aa998f | ||
|
|
d59ce88e2d | ||
|
|
bdafd52628 | ||
|
|
45de651252 | ||
|
|
85e164dcda | ||
|
|
1198fb2a83 | ||
|
|
11c680e205 | ||
|
|
05deb4d9cb |
114
appstream.spec
114
appstream.spec
@ -1,45 +1,39 @@
|
|||||||
|
|
||||||
# Vala/Vapi support ( upstream disabled by default, probably explains why it the build breaks often )
|
# Vala/Vapi support ( upstream disabled by default, probably explains why it the build breaks often )
|
||||||
%global vala 1
|
%global vala 1
|
||||||
|
|
||||||
Summary: Utilities to generate, maintain and access the AppStream database
|
|
||||||
Name: appstream
|
Name: appstream
|
||||||
Version: 0.12.11
|
Version: 0.16.1
|
||||||
Release: 1
|
Release: 2
|
||||||
|
Summary: Utilities to generate, maintain and access the AppStream database
|
||||||
# lib LGPLv2+, tools GPLv2+
|
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
#URL: http://www.freedesktop.org/wiki/Distributions/AppStream
|
|
||||||
URL: https://github.com/ximion/appstream
|
URL: https://github.com/ximion/appstream
|
||||||
Source0: AppStream-%{version}.tar.xz
|
Source0: https://github.com/ximion/appstream/archive/refs/tags/v%{version}.tar.gz
|
||||||
|
|
||||||
## upstream patches (lookaside cache)
|
# https://github.com/ximion/appstream/pull/546/
|
||||||
|
Patch0: backport-fix-a-function-declaration-without-prototype-issue.patch
|
||||||
|
|
||||||
## upstreamable patches
|
BuildRequires: cmake meson gettext gperf gtk-doc intltool itstool
|
||||||
|
BuildRequires: libstemmer-devel sed
|
||||||
# needed for cmake auto-provides
|
|
||||||
BuildRequires: cmake
|
|
||||||
BuildRequires: meson
|
|
||||||
BuildRequires: gettext
|
|
||||||
BuildRequires: gperf
|
|
||||||
BuildRequires: gtk-doc
|
|
||||||
BuildRequires: intltool
|
|
||||||
BuildRequires: itstool
|
|
||||||
BuildRequires: libstemmer-devel
|
|
||||||
BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0)
|
BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0)
|
||||||
BuildRequires: pkgconfig(libsoup-2.4)
|
BuildRequires: pkgconfig(libsoup-2.4)
|
||||||
BuildRequires: pkgconfig(libxml-2.0)
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
BuildRequires: pkgconfig(lmdb)
|
BuildRequires: pkgconfig(lmdb)
|
||||||
BuildRequires: pkgconfig(packagekit-glib2)
|
BuildRequires: pkgconfig(packagekit-glib2)
|
||||||
BuildRequires: pkgconfig(protobuf-lite)
|
BuildRequires: protobuf-lite-devel
|
||||||
BuildRequires: pkgconfig(Qt5Core)
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
# lrelease
|
|
||||||
BuildRequires: qt5-linguist
|
BuildRequires: qt5-linguist
|
||||||
BuildRequires: pkgconfig(yaml-0.1)
|
BuildRequires: pkgconfig(yaml-0.1)
|
||||||
BuildRequires: vala
|
BuildRequires: vala
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
|
BuildRequires: pkgconfig(cairo)
|
||||||
Requires: appstream-data
|
BuildRequires: pkgconfig(freetype2)
|
||||||
|
BuildRequires: pkgconfig(fontconfig)
|
||||||
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
BuildRequires: pkgconfig(librsvg-2.0)
|
||||||
|
BuildRequires: pkgconfig(pango)
|
||||||
|
BuildRequires: pkgconfig(xmlb)
|
||||||
|
BuildRequires: systemd-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
AppStream makes it easy to access application information from the
|
AppStream makes it easy to access application information from the
|
||||||
@ -48,10 +42,22 @@ AppStream database over a nice GObject-based interface.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
# -vala subpackage removed in F30
|
|
||||||
Obsoletes: appstream-vala < 0.12.4-3
|
Obsoletes: appstream-vala < 0.12.4-3
|
||||||
Provides: appstream-vala = %{version}-%{release}
|
|
||||||
%description devel
|
%description devel
|
||||||
|
Provides: appstream-vala = %{version}-%{release}
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package compose
|
||||||
|
Summary: Library for generating AppStream data
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
%description compose
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package compose-devel
|
||||||
|
Summary: Development files for %{name}-compose library
|
||||||
|
Requires: %{name}-compose%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
%description compose-devel
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package qt
|
%package qt
|
||||||
@ -67,15 +73,15 @@ Requires: pkgconfig(Qt5Core)
|
|||||||
%description qt-devel
|
%description qt-devel
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n AppStream-%{version} -p1
|
%autosetup -n appstream-%{version} -p1
|
||||||
|
|
||||||
sed -i -e "s|0.12.2|%{version}|" meson.build
|
#sed -i -e "s|0.15.2|%{version}|" meson.build
|
||||||
sed -i '/-Wno-error=deprecated-copy/ s/^/#/g' meson.build
|
#sed -i '/-Wno-error=deprecated-copy/ s/^/#/g' meson.build
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{meson} \
|
%{meson} \
|
||||||
|
-Dcompose=true \
|
||||||
-Dqt=true \
|
-Dqt=true \
|
||||||
-Dvapi=%{?vala:true}%{!?vala:false}
|
-Dvapi=%{?vala:true}%{!?vala:false}
|
||||||
|
|
||||||
@ -101,7 +107,6 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
|
|||||||
%check
|
%check
|
||||||
%{meson_test} ||:
|
%{meson_test} ||:
|
||||||
|
|
||||||
|
|
||||||
#%ldconfig_scriptlets
|
#%ldconfig_scriptlets
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -109,25 +114,15 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
|
|||||||
%posttrans
|
%posttrans
|
||||||
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
||||||
|
|
||||||
## use file triggers instead of static pkg names
|
|
||||||
## other repos can provide appdata too
|
|
||||||
%if 0%{?fedora} > 25
|
|
||||||
## not sure how smart appstreamcli is about cache validation
|
|
||||||
## to judge if --force is really needed here or not -- rex
|
|
||||||
%transfiletriggerin -- %{_datadir}/app-info/xmls
|
%transfiletriggerin -- %{_datadir}/app-info/xmls
|
||||||
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
||||||
|
|
||||||
%transfiletriggerpostun -- %{_datadir}/app-info/xmls
|
%transfiletriggerpostun -- %{_datadir}/app-info/xmls
|
||||||
%{_bindir}/appstreamcli refresh >& /dev/null ||:
|
%{_bindir}/appstreamcli refresh --force >& /dev/null ||:
|
||||||
%else
|
|
||||||
%triggerun -- appstream-data
|
|
||||||
%{_bindir}/appstreamcli refresh >& /dev/null ||:
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -f appstream.lang
|
%files -f appstream.lang
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
%license LICENSE.GPLv2
|
%license COPYING
|
||||||
%license LICENSE.LGPLv2.1
|
|
||||||
%{_bindir}/appstreamcli
|
%{_bindir}/appstreamcli
|
||||||
%{_mandir}/man1/appstreamcli.1*
|
%{_mandir}/man1/appstreamcli.1*
|
||||||
%config(noreplace) %{_sysconfdir}/appstream.conf
|
%config(noreplace) %{_sysconfdir}/appstream.conf
|
||||||
@ -160,6 +155,23 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
|
|||||||
## symlink pointing to ^^, but need to take care, since rpm has
|
## symlink pointing to ^^, but need to take care, since rpm has
|
||||||
## trouble replacing dirs with symlinks, omit it for now -- rex
|
## trouble replacing dirs with symlinks, omit it for now -- rex
|
||||||
%exclude %{_datadir}/gtk-doc/html/appstream
|
%exclude %{_datadir}/gtk-doc/html/appstream
|
||||||
|
%{_datadir}/installed-tests/appstream/metainfo-validate.test
|
||||||
|
|
||||||
|
%ldconfig_scriptlets compose
|
||||||
|
|
||||||
|
%files compose
|
||||||
|
%{_libexecdir}/appstreamcli-compose
|
||||||
|
%{_mandir}/man1/appstreamcli-compose.1*
|
||||||
|
%{_libdir}/libappstream-compose.so.0*
|
||||||
|
%{_libdir}/girepository-1.0/AppStreamCompose-1.0.typelib
|
||||||
|
%{_metainfodir}/org.freedesktop.appstream.compose.metainfo.xml
|
||||||
|
|
||||||
|
%files compose-devel
|
||||||
|
%{_includedir}/appstream-compose/
|
||||||
|
%{_libdir}/libappstream-compose.so
|
||||||
|
%{_libdir}/pkgconfig/appstream-compose.pc
|
||||||
|
%{_datadir}/gir-1.0/AppStreamCompose-1.0.gir
|
||||||
|
%{_datadir}/gtk-doc/html/appstream-compose
|
||||||
|
|
||||||
%ldconfig_scriptlets qt
|
%ldconfig_scriptlets qt
|
||||||
|
|
||||||
@ -172,7 +184,21 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
|
|||||||
%{_libdir}/cmake/AppStreamQt/
|
%{_libdir}/cmake/AppStreamQt/
|
||||||
%{_libdir}/libAppStreamQt.so
|
%{_libdir}/libAppStreamQt.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 11 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 0.16.1-2
|
||||||
|
- Backport a patch for fixing a function declaration without prototype issue
|
||||||
|
|
||||||
|
* Mon Oct 16 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.16.1-1
|
||||||
|
- Upgrade to 0.16.1
|
||||||
|
|
||||||
|
* Mon Jun 20 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.15.2-2
|
||||||
|
- fix build error
|
||||||
|
- File listed twice libappstream-compose.so.0.15.2
|
||||||
|
- uppackaged /usr/share/gtk-doc/html/appstream-compose
|
||||||
|
|
||||||
|
* Fri Apr 15 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.15.2-1
|
||||||
|
- Update to 0.15.2
|
||||||
|
- Add appstream.yaml
|
||||||
|
|
||||||
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.12.11-1
|
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.12.11-1
|
||||||
- Initial release for OpenEuler
|
- Initial release for OpenEuler
|
||||||
|
|||||||
4
appstream.yaml
Normal file
4
appstream.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: appstream
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
From 82dc772ab6d0beeccf5ae9156016f794ebe26663 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gleb Popov <6yearold@gmail.com>
|
||||||
|
Date: Tue, 31 Oct 2023 10:12:22 +0300
|
||||||
|
Subject: [PATCH] fix a function declaration without prototype issue
|
||||||
|
|
||||||
|
Tested-by: jchzhou <zhoujiacheng@iscas.ac.cn>
|
||||||
|
---
|
||||||
|
compose/asc-globals.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/compose/asc-globals.c b/compose/asc-globals.c
|
||||||
|
index 314f75c..0bf221e 100644
|
||||||
|
--- a/compose/asc-globals.c
|
||||||
|
+++ b/compose/asc-globals.c
|
||||||
|
@@ -455,7 +455,7 @@ asc_globals_get_hint_tag_details (const gchar *tag)
|
||||||
|
* Returns: (transfer full): A list of valid hint tags. Free with %g_strfreev
|
||||||
|
*/
|
||||||
|
gchar**
|
||||||
|
-asc_globals_get_hint_tags ()
|
||||||
|
+asc_globals_get_hint_tags (void)
|
||||||
|
{
|
||||||
|
AscGlobalsPrivate *priv = asc_globals_get_priv ();
|
||||||
|
GHashTableIter iter;
|
||||||
|
--
|
||||||
|
2.47.1
|
||||||
|
|
||||||
BIN
v0.16.1.tar.gz
Normal file
BIN
v0.16.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user