146 lines
4.8 KiB
RPMSpec
146 lines
4.8 KiB
RPMSpec
|
%define tagver %(echo %version | tr . _)
|
||
|
Name: appstream-glib
|
||
|
Version: 0.2.5
|
||
|
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: libxml2-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
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
|
||
|
%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-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
|
||
|
%{_mandir}/man1/appstream-builder.1*
|
||
|
%{_mandir}/man1/appstream-util.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_absorb.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_appdata.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_blacklist.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_dbus.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_desktop.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_font.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_gettext.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_gir.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_gresource.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_gstreamer.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_hardcoded.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_ibus_sql.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_ibus_xml.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_kde_notifyrc.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_kde_services.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_metainfo.*
|
||
|
%{_libdir}/asb-plugins/libasb_plugin_nm.*
|
||
|
%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/appstream-xml.m4
|
||
|
%{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir
|
||
|
%{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
|
||
|
%doc NEWS README.md
|
||
|
|
||
|
%changelog
|
||
|
* Wed Aug 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.5-1mamba
|
||
|
- package created using the webbuild interface
|