118 lines
3.0 KiB
RPMSpec
118 lines
3.0 KiB
RPMSpec
|
|
Summary: Utilities to generate, maintain and access the AppStream Xapian database
|
|
Name: appstream
|
|
Version: 0.4.0
|
|
Release: 3%{?dist}
|
|
|
|
# lib LGPLv3+, tools GPLv3+
|
|
License: GPLv3+ and LGPLv3+
|
|
URL: http://www.freedesktop.org/wiki/Distributions/Distributions/AppStream/Software/
|
|
Source0: http://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.gz
|
|
|
|
## upstream patches
|
|
# fix pkgconfig install
|
|
Patch0003: 0003-Always-install-appstream.pc-in-correct-libdir.patch
|
|
|
|
## upstreamable patches
|
|
# support LIB_SUFFIX
|
|
Patch1: AppStream-0.4.0-LIB_SUFFIX.patch
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gettext
|
|
BuildRequires: intltool
|
|
BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(packagekit-glib2)
|
|
BuildRequires: pkgconfig(packagekit-plugin)
|
|
BuildRequires: vala
|
|
BuildRequires: xapian-core-devel
|
|
BuildRequires: xmlto
|
|
|
|
%description
|
|
AppStream-Core makes it easy to access application information from the
|
|
AppStream database over a nice GObject-based interface. It uses a
|
|
PackageKit plugin to automatically (re)generate the AppStream Xapian
|
|
database of applications.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
%description devel
|
|
%{summary}.
|
|
|
|
%package vala
|
|
Summary: Vala bindings for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: vala
|
|
%description vala
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%setup -q -n AppStream-%{version}
|
|
|
|
%patch0003 -p1 -b .0003
|
|
%patch1 -p1 -b .LIB_SUFFIX
|
|
|
|
|
|
%build
|
|
mkdir -p %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake} ..
|
|
popd
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
mkdir -p %{buildroot}{%{_datadir},/var/cache}/app-info/{icons,xmls}
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc AUTHORS
|
|
%doc LICENSE.GPLv3 LICENSE.LGPLv3
|
|
%config(noreplace) %{_sysconfdir}/appstream.conf
|
|
%{_bindir}/appstream-index
|
|
%dir %{_libdir}/girepository-1.0
|
|
%{_libdir}/girepository-1.0/AppStream-0.4.typelib
|
|
%{_libdir}/libappstream.so.0*
|
|
%dir %{_libdir}/packagekit-plugins
|
|
%{_libdir}/packagekit-plugins/libpk_plugin_appstream.so
|
|
%dir %{_datadir}/app-info/
|
|
%dir %{_datadir}/app-info/icons
|
|
%dir %{_datadir}/app-info/xmls
|
|
%{_datadir}/app-info/categories.xml
|
|
%dir /var/cache/app-info
|
|
%dir /var/cache/app-info/icons
|
|
%dir /var/cache/app-info/xmls
|
|
%{_mandir}/man1/appstream-index.1*
|
|
|
|
%files devel
|
|
%{_includedir}/appstream.h
|
|
%{_libdir}/libappstream.so
|
|
%{_libdir}/pkgconfig/appstream.pc
|
|
%dir %{_datadir}/gir-1.0
|
|
%{_datadir}/gir-1.0/AppStream-0.4.gir
|
|
|
|
%files vala
|
|
%{_datadir}/vala/vapi/appstream.vapi
|
|
|
|
|
|
%changelog
|
|
* Fri Jan 31 2014 Rex Dieter <rdieter@fedoraproject.org> 0.4.0-3
|
|
- rebuild (PackageKit)
|
|
|
|
* Mon Nov 04 2013 Rex Dieter <rdieter@fedoraproject.org> 0.4.0-2
|
|
- -vala subpkg
|
|
- own %%{_libdir}/girepository-1.0, %%{_libdir}/packagekit-plugins (until someone better comes along)
|
|
|
|
* Sun Nov 03 2013 Rex Dieter <rdieter@fedoraproject.org> 0.4.0-1
|
|
- AppStream-0.4.0
|
|
|
|
|