From f4cb27af8344d4235dca9a5831d22bbef0caa4630ec5ec1613380f96a3c9e646 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Fri, 5 Feb 2016 12:09:44 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=3 --- AppStream.spec | 153 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 AppStream.spec diff --git a/AppStream.spec b/AppStream.spec new file mode 100644 index 0000000..f0c07e3 --- /dev/null +++ b/AppStream.spec @@ -0,0 +1,153 @@ +# +# 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 + +%description +AppStream-Core makes it easy to access application information from the +AppStream database over a nice GObject-based interface. + +%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} + +%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 +mkdir -p build +cd build +cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ + -DQT=ON \ + -DLIB_SUFFIX=$SUFFIX \ + -DINSTALL_PREBUILT_DOCS=OFF \ + -DDOCUMENTATION=OFF \ + -DAPPSTREAM_QT_VERSION=5 .. +make %{?_smp_mflags} + +%install +%cmake_install + +%find_lang appstream %{name}.lang + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files lang -f %{name}.lang + +%files +%defattr(-,root,root) +%doc LICENSE* NEWS +%{_bindir}/appstreamcli +%{_libdir}/libappstream.so.* +%config(noreplace) %{_sysconfdir}/appstream.conf +%dir %{_datadir}/app-info +%{_datadir}/app-info/categories.xml +%{_mandir}/man1/appstreamcli.* + +%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 + +%files -n typelib-1_0-Appstream-1.0 +%defattr(-,root,root) +%doc LICENSE* +%{_libdir}/girepository-1.0/AppStream-1.0.typelib + +%changelog