forked from pool/AppStream
171 lines
4.8 KiB
RPMSpec
171 lines
4.8 KiB
RPMSpec
#
|
|
# spec file for package appstream-qt5
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: AppStream
|
|
Version: 0.9.1
|
|
Release: 0
|
|
Summary: Utilities to generate, maintain and access the AppStream Xapian database
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://www.freedesktop.org/wiki/Distributions/AppStream/Software
|
|
Source: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz
|
|
BuildRequires: cmake
|
|
BuildRequires: gettext
|
|
BuildRequires: intltool
|
|
BuildRequires: libxapian-devel
|
|
BuildRequires: xmlto
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(packagekit-glib2)
|
|
BuildRequires: libyaml-devel
|
|
BuildRequires: pkgconfig(protobuf)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: libappstream3
|
|
|
|
%description
|
|
AppStream-Core makes it easy to access application information from the
|
|
AppStream database over a nice GObject-based interface.
|
|
|
|
%package -n libappstream3
|
|
Summary: The main library for AppStream
|
|
Group: System/Libraries
|
|
|
|
%description -n libappstream3
|
|
The main library for AppStream.
|
|
|
|
%package -n libAppstreamQt1
|
|
Summary: Qt5 bindings for AppStream
|
|
Group: System/Libraries
|
|
|
|
%description -n libAppstreamQt1
|
|
The Qt5 bindings for AppStream.
|
|
|
|
%package -n libAppstreamQt-devel
|
|
Summary: Needed include files and libraries for development
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libAppstreamQt1 = %{version}
|
|
Requires: libappstream3 = %{version}
|
|
|
|
%description -n libAppstreamQt-devel
|
|
This package contains all necessary include files, libraries,
|
|
configuration files and development tools (with manual pages) needed to
|
|
compile and link applications using the Qt bindings for AppStream.
|
|
|
|
%package devel
|
|
Summary: Needed include files and libraries for development
|
|
License: GPL-2.0+
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
This package contains all necessary include files, libraries,
|
|
configuration files and development tools (with manual pages) needed to
|
|
compile and link applications using AppStream.
|
|
|
|
%package -n typelib-1_0-AppStream-1.0
|
|
Summary: Simple software installation management software -- Introspection bindings
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
|
|
%description -n typelib-1_0-AppStream-1.0
|
|
PackageKit is a system designed to make installing and updating
|
|
software on your computer easier. The primary design goal is to unify
|
|
all the software graphical tools used in different distributions, and
|
|
use some of the latest technology like PolicyKit to make the process
|
|
suck less.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
%if "%{?_lib}" == "lib64"
|
|
SUFFIX="64"
|
|
%else
|
|
SUFFIX=""
|
|
%endif
|
|
|
|
%cmake -DQT=ON \
|
|
-DINSTALL_PREBUILT_DOCS=OFF \
|
|
-DDOCUMENTATION=OFF \
|
|
-DAPPSTREAM_QT_VERSION=5
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install -C build
|
|
|
|
%find_lang appstream %{name}.lang
|
|
|
|
%post -n libappstream3
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libappstream3
|
|
/sbin/ldconfig
|
|
|
|
%post -n libAppstreamQt1
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libAppstreamQt1
|
|
/sbin/ldconfig
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE* NEWS
|
|
%{_bindir}/appstreamcli
|
|
%config(noreplace) %{_sysconfdir}/appstream.conf
|
|
%dir %{_datadir}/app-info
|
|
%{_datadir}/app-info/categories.xml
|
|
%{_mandir}/man1/appstreamcli.*
|
|
|
|
%files -n libappstream3
|
|
%defattr(-,root,root)
|
|
%doc LICENSE* NEWS
|
|
%{_libdir}/libappstream.so.*
|
|
|
|
%files -n libAppstreamQt1
|
|
%defattr(-,root,root)
|
|
%doc LICENSE*
|
|
%{_libdir}/libAppstreamQt.so.*
|
|
|
|
%files -n libAppstreamQt-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/AppstreamQt/
|
|
%{_libdir}/cmake/AppstreamQt/
|
|
%{_libdir}/libAppstreamQt.so
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libappstream.so
|
|
%{_libdir}/pkgconfig/appstream.pc
|
|
%{_includedir}/AppStream/
|
|
%{_datadir}/gir-1.0/AppStream-1.0.gir
|
|
%{_datadir}/gettext/
|
|
|
|
%files -n typelib-1_0-AppStream-1.0
|
|
%defattr(-,root,root)
|
|
%doc LICENSE*
|
|
%{_libdir}/girepository-1.0/AppStream-1.0.typelib
|
|
|
|
%changelog
|