- updated to 0.7.0 (note: new soname) auto/th/AppStream-0.7.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Jul 2014 10:50:31 +0000 (12:50 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Jul 2014 10:50:31 +0000 (12:50 +0200)
- package AppstreamQt library

AppStream.spec

index 94305bae43fad6539aaf088d0d0420d102f13653..972b3d0e1b1a0596081c8f524673716dfbe9b667 100644 (file)
@@ -1,20 +1,22 @@
 #
 # Conditional build:
 %bcond_without apidocs         # API documentation build
+%bcond_without qt              # Qt library (libappstream-qt)
 %bcond_without vala            # Vala API (VAPI)
 #
 Summary:       AppStream-Core library and tools
 Summary(pl.UTF-8):     Biblioteka i narzędzia AppStream-Core
 Name:          AppStream
-Version:       0.6.2
+Version:       0.7.0
 Release:       1
-License:       LGPL v3
+License:       LGPL v2.1+
 Group:         Libraries
-Source0:       http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.gz
-# Source0-md5: c5df357df76156f7a6d4dd9a27b50b66
+Source0:       http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.xz
+# Source0-md5: 0626feadb9b64babda4a292ec9ebb684
 URL:           http://www.freedesktop.org/wiki/Distributions/AppStream/Software/
 BuildRequires: PackageKit-devel
-BuildRequires: cmake >= 2.8.6
+%{?with_qt:BuildRequires:      QtCore-devel >= 4.8.0}
+BuildRequires: cmake >= 2.8.12
 BuildRequires: gettext-devel
 BuildRequires: glib2-devel >= 1:2.36
 BuildRequires: gobject-introspection-devel
@@ -22,8 +24,11 @@ BuildRequires:       intltool
 BuildRequires: libstdc++-devel
 BuildRequires: libxml2-devel >= 2.0
 BuildRequires: pkgconfig
+%{?with_qt:BuildRequires:      qt4-qmake >= 4.8.0}
+BuildRequires: tar >= 1:1.22
 %{?with_vala:BuildRequires:    vala}
 BuildRequires: xapian-core-devel >= 1.2
+BuildRequires: xz
 %if %{with apidocs}
 BuildRequires: gtk-doc
 BuildRequires: publican
@@ -65,6 +70,32 @@ API documentation for AppStream library.
 %description apidocs -l pl.UTF-8
 Dokumentacja API biblioteki AppStream.
 
+%package qt
+Summary:       AppstreamQt library
+Summary(pl.UTF-8):     Biblioteka AppstreamQt
+Group:         Libraries
+Requires:      QtCore >= 4.8.0
+Requires:      xapian-core-libs >= 1.2
+
+%description qt
+AppstreamQt library.
+
+%description qt -l pl.UTF-8
+Biblioteka AppstreamQt.
+
+%package qt-devel
+Summary:       Header files for AppstreamQt library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki AppstreamQt
+Group:         Libraries
+Requires:      %{name}-qt = %{version}-%{release}
+Requires:      QtCore-devel >= 4.8.0
+
+%description qt-devel
+Header files for AppstreamQt library.
+
+%description qt-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki AppstreamQt.
+
 %package -n vala-appstream
 Summary:       Vala API for AppStream library
 Summary(pl.UTF-8):     API języka Vala do biblioteki AppStream
@@ -101,6 +132,7 @@ install -d build
 cd build
 %cmake .. \
        %{?with_apidocs:-DDOCUMENTATION=ON} \
+       %{?with_qt:-DQT=ON} \
        %{?with_vala:-DVAPI=ON}
 
 %{__make} -j1
@@ -111,20 +143,28 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_docdir}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc $RPM_BUILD_ROOT%{_docdir}
+
+%find_lang appstream
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
-%files
+%post  qt -p /sbin/ldconfig
+%postun        qt -p /sbin/ldconfig
+
+%files -f appstream.lang
 %defattr(644,root,root,755)
 %doc AUTHORS MAINTAINERS NEWS README RELEASE
 %attr(755,root,root) %{_bindir}/appstream-index
 %attr(755,root,root) %{_bindir}/appstream-validate
 %attr(755,root,root) %{_libdir}/libappstream.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libappstream.so.0
-%{_libdir}/girepository-1.0/Appstream-0.6.typelib
+%attr(755,root,root) %ghost %{_libdir}/libappstream.so.1
+%{_libdir}/girepository-1.0/Appstream-0.7.typelib
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/appstream.conf
 %dir %{_datadir}/app-info
 %{_datadir}/app-info/categories.xml
@@ -134,14 +174,27 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libappstream.so
-%{_datadir}/gir-1.0/Appstream-0.6.gir
+%{_datadir}/gir-1.0/Appstream-0.7.gir
 %{_includedir}/Appstream
 %{_pkgconfigdir}/appstream.pc
 
 %if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/html/*
+%{_gtkdocdir}/appstream
+%endif
+
+%if %{with qt}
+%files qt
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libAppstreamQt.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libAppstreamQt.so.0
+
+%files qt-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libAppstreamQt.so
+%{_includedir}/AppstreamQt
+%{_libdir}/cmake/AppstreamQt
 %endif
 
 %if %{with vala}
This page took 0.387603 seconds and 4 git commands to generate.