appstream-glib/appstream-glib.spec

168 lines
5.4 KiB
RPMSpec
Raw Permalink Normal View History

%define tagver %(echo %version | tr . _)
Name: appstream-glib
Version: 0.6.13
Release: 1mamba
Summary: A library that provides GObjects and helper methods to make it easy to read and write AppStream metadata
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/hughsie/appstream-glib
## GITSOURCE https://github.com/hughsie/appstream-glib.git appstream_glib_0_2_5
Source: https://github.com/hughsie/appstream-glib.git/appstream_glib_%{tagver}/appstream-glib-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libacl-devel
BuildRequires: libarchive-devel
BuildRequires: libatk-devel
BuildRequires: libattr-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk-devel
BuildRequires: libharfbuzz-devel
BuildRequires: liblzma-devel
BuildRequires: liblzo-devel
BuildRequires: libnettle-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libselinux-devel
BuildRequires: libsoup-devel
BuildRequires: libsqlite-devel
BuildRequires: libthai-devel
BuildRequires: libxml2-devel
BuildRequires: libyaml-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: gcab
Provides: appdata-tools
Obsoletes: appdata-tools
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This library provides GObjects and helper methods to make it easy to read and write AppStream metadata. It also provides a simple DOM implementation that makes it easy to edit nodes and convert to and from the standardized XML representation.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
./autogen.sh
%configure \
--disable-rpm
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/appstream-compose
%{_bindir}/appstream-builder
%{_bindir}/appstream-util
%{_datadir}/bash-completion/completions/appstream-builder
%{_datadir}/bash-completion/completions/appstream-util
%{_datadir}/installed-tests/appstream-glib/appdata-validate.test
%{_datadir}/installed-tests/appstream-glib/destdir-check.test
%{_datadir}/gettext/its/appdata.*
%{_mandir}/man1/appstream-*.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libappstream-builder.so.*
%{_libdir}/libappstream-glib.so.*
%{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib
%{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib
%dir %{_libdir}/asb-plugins-*
%{_libdir}/asb-plugins-*/libasb_plugin_*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/libappstream-builder
%{_includedir}/libappstream-builder/*.h
%dir %{_includedir}/libappstream-glib
%{_includedir}/libappstream-glib/*.h
%{_libdir}/libappstream-builder.a
%{_libdir}/libappstream-builder.la
%{_libdir}/libappstream-builder.so
%{_libdir}/libappstream-glib.a
%{_libdir}/libappstream-glib.la
%{_libdir}/libappstream-glib.so
%{_libdir}/pkgconfig/appstream-builder.pc
%{_libdir}/pkgconfig/appstream-glib.pc
%{_datadir}/aclocal/*.m4
%{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir
%{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
%doc NEWS README.md
%changelog
* Fri May 12 2017 Automatic Build System <autodist@mambasoft.it> 0.6.13-1mamba
- automatic version update by autodist
* Mon Apr 24 2017 Automatic Build System <autodist@mambasoft.it> 0.6.11-1mamba
- automatic version update by autodist
* Wed Mar 08 2017 Automatic Build System <autodist@mambasoft.it> 0.6.10-1mamba
- automatic version update by autodist
* Tue Nov 08 2016 Automatic Build System <autodist@mambasoft.it> 0.6.5-1mamba
- automatic version update by autodist
* Thu Oct 13 2016 Automatic Build System <autodist@mambasoft.it> 0.6.3-1mamba
- automatic version update by autodist
* Wed Jul 13 2016 Automatic Build System <autodist@mambasoft.it> 0.5.17-1mamba
- automatic version update by autodist
* Thu May 05 2016 Automatic Build System <autodist@mambasoft.it> 0.5.12-1mamba
- automatic version update by autodist
* Sat Mar 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-2mamba
- provide/obsolete appdata-tools
* Sat Feb 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-1mamba
- update to 0.4.1
* Sun Oct 26 2014 Automatic Build System <autodist@mambasoft.it> 0.3.0-1mamba
- automatic version update by autodist
* Wed Aug 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.5-1mamba
- package created using the webbuild interface