Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 713fb6ed3123fa08cd5c73c8591e0ab1 > files > 2

appstream-glib-0.2.5-3.mga5.src.rpm

%define major	1
%define gmajor	1.0
%define libname	%mklibname %{name} %{major}
%define girname	%mklibname %{name}-gir %{gmajor}

%define libnameappstream_builder	%mklibname appstream-builder %{major}
%define girnameappstream_builder	%mklibname appstream-builder-gir %{gmajor}

%define devname	%mklibname %{name} -d

%define url_ver	%(echo %{version} | cut -d. -f1,2)

Name:		appstream-glib
Version:	0.2.5
Release:	%mkrel 3
Summary:	Library for reading and writing AppStream metadata
Group:		System/Libraries
License:	LGPLv2+
URL:		http://people.freedesktop.org/~hughsient/appstream-glib/
Source0:	http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.16.1
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	intltool
BuildRequires:	gtk-doc

%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 appstream-util
Summary:	Utility to do simple operations on AppStream metadata
Group:		System/Packaging

%description -n appstream-util
Utility to do simple operations on AppStream metadata.

Sub-commands understood by this utility include: 'install', 'uninstall',
'dump' and 'convert'.

%package -n %{libname}
Summary:	Library for reading and writing AppStream metadata
Group:		System/Libraries
Obsoletes:	%{_lib}appstream-glib1.0_1 < 0.1.1-2
Requires:	%{name}-i18n >= %{version}-%{release}

%description -n %{libname}
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 %{libnameappstream_builder}
Summary:	Library for reading and writing AppStream metadata
Group:		System/Libraries
Requires:	%{name}-i18n >= %{version}-%{release}

%description -n %{libnameappstream_builder}
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 %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Conflicts:	%{_lib}appstream-glib1.0_1 < 0.1.1-2

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n %{girnameappstream_builder}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libnameappstream_builder} = %{version}-%{release}

%description -n %{girnameappstream_builder}
GObject Introspection interface description for %{name}.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}appstream-glib1.0-devel < 0.1.1-2

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package i18n
Summary:	Library for reading and writing AppStream metadata - translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
This package contains translations used by %{name}.

%prep
%setup -q
%apply_patches

%build
NOCONFIGURE=1 ./autogen.sh
%configure2_5x --disable-static
%make V=1

%install
%makeinstall_std

# Remove unwanted la files
find %{buildroot} -name "*.la" -delete

%{find_lang} %{name}

%files -n appstream-util
%{_bindir}/appstream-util
%{_bindir}/appstream-builder
%{_datadir}/bash-completion/completions/appstream-util
%{_datadir}/bash-completion/completions/appstream-builder
%{_libdir}/asb-plugins/libasb_plugin_*.so
%{_mandir}/man1/appstream-builder.1*
%{_mandir}/man1/appstream-util.1*

%files -n %{libname}
%doc AUTHORS NEWS
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*
#%{python3_sitearch}/gi/overrides/*

%files -n %{libnameappstream_builder}
%{_libdir}/libappstream-builder.so.%{major}
%{_libdir}/libappstream-builder.so.%{major}.*

%files -n %{girname}
%{_libdir}/girepository-1.0/AppStreamGlib-%{gmajor}.typelib

%files -n %{girnameappstream_builder}
%{_libdir}/girepository-1.0/AppStreamBuilder-%{gmajor}.typelib

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/appstream-glib/
%{_includedir}/lib%{name}/
%{_includedir}/libappstream-builder/
%{_libdir}/lib%{name}.so
%{_libdir}/libappstream-builder.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/appstream-builder.pc
%{_datadir}/gir-1.0/AppStreamGlib-%{gmajor}.gir
%{_datadir}/gir-1.0/AppStreamBuilder-%{gmajor}.gir
%{_datadir}/aclocal/appstream-xml.m4
%{_datadir}/installed-tests/appstream-glib

%files i18n -f %{name}.lang


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 0.2.5-3.mga5
+ Revision: 742110
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.2.5-2.mga5
+ Revision: 677870
- Mageia 5 Mass Rebuild

* Tue Aug 19 2014 fwang <fwang> 0.2.5-1.mga5
+ Revision: 665469
- update file list
- 0.2.5

* Wed Jul 23 2014 ovitters <ovitters> 0.2.3-1.mga5
+ Revision: 656110
- new version 0.2.3

* Wed Jul 23 2014 ovitters <ovitters> 0.2.2-1.mga5
+ Revision: 656093
- new version 0.2.2
- dropped merged patch 1

* Tue Jun 24 2014 ovitters <ovitters> 0.2.1-2.mga5
+ Revision: 639514
- enable rpm support for appstream-builder

* Tue Jun 24 2014 ovitters <ovitters> 0.2.1-1.mga5
+ Revision: 639477
- add patch to fix build
- extensive update of filelist
- verbose make
- new version 0.2.1

* Wed May 28 2014 wally <wally> 0.1.6-1.mga5
+ Revision: 627255
- new version 0.1.6
- split out utility to own subpkg

* Wed May 28 2014 wally <wally> 0.1.1-2.mga5
+ Revision: 627245
- fix lib and devel pkg names and summaries
- split out gir typelib
- don't own gtk-doc dir

* Wed Mar 26 2014 ovitters <ovitters> 0.1.1-1.mga5
+ Revision: 608729
- imported package appstream-glib