[packages/gxml] - new

qboosh qboosh at pld-linux.org
Mon Oct 28 20:11:49 CET 2013


commit 7896694334ddb6ea1c0ef9166b39319ca4d84cbe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 28 20:11:36 2013 +0100

    - new

 gxml.spec | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 139 insertions(+)
---
diff --git a/gxml.spec b/gxml.spec
new file mode 100644
index 0000000..0b81907
--- /dev/null
+++ b/gxml.spec
@@ -0,0 +1,139 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+#
+Summary:	GXml - GObject API that wraps around libxml2
+Summary(pl.UTF-8):	GXml - API GObject obudowujące libxml2
+Name:		gxml
+Version:	0.3.2
+Release:	1
+License:	LGPL v2.1+
+Group:		Libraries
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/gxml/0.3/%{name}-%{version}.tar.xz
+# Source0-md5:	5afc8779b38ff09ddd1d604928daf11d
+URL:		https://github.com/GNOME/gxml
+BuildRequires:	autoconf >= 2.65
+BuildRequires:	automake >= 1:1.11
+BuildRequires:	gettext-devel >= 0.18.1
+BuildRequires:	glib2-devel >= 1:2.16.0
+BuildRequires:	gobject-introspection-devel >= 1.32.0
+BuildRequires:	intltool >= 0.35.0
+BuildRequires:	libgee-devel >= 0.8
+BuildRequires:	libtool >= 2:2
+BuildRequires:	libxml2-devel >= 1:2.7
+BuildRequires:	pkgconfig >= 1:0.21
+BuildRequires:	sed >= 4.0
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	vala >= 2:0.22
+# needed only for docs regeneration
+#BuildRequires:	valadoc >= 0.3.1
+BuildRequires:	xz
+Requires:	glib2 >= 1:2.16.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GXml is a GObject API that wraps around libxml2.
+
+%description -l pl.UTF-8
+GXml to API GObject obudowujące libxml2.
+
+%package devel
+Summary:	Header files for GXml library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki GXml
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	glib2-devel >= 1:2.16.0
+Requires:	libgee-devel >= 0.8
+Requires:	libxml2-devel >= 1:2.7
+
+%description devel
+Header files for GXml library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki GXml.
+
+%package static
+Summary:	Static GXml library
+Summary(pl.UTF-8):	Statyczna biblioteka GXml
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static GXml library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka GXml.
+
+%package -n vala-gxml
+Summary:	Vala API for GXml library
+Summary(pl.UTF-8):	API języka Vala dla biblioteki GXml
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	vala >= 2:0.16
+Requires:	vala-libgee >= 0.8
+
+%description -n vala-gxml
+Vala API for GXml library.
+
+%description -n vala-gxml -l pl.UTF-8
+API języka Vala dla biblioteki GXml.
+
+%prep
+%setup -q
+
+%{__sed} -i -e 's/libvala-0\.20/libvala-0.22/' configure.ac
+
+%build
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--enable-gi-system-install \
+	--disable-silent-rules \
+	%{?with_static_libs:--enable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgxml.la
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%attr(755,root,root) %{_libdir}/libgxml.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgxml.so.3
+%{_libdir}/girepository-1.0/GXml-0.3.typelib
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgxml.so
+%{_includedir}/gxml
+%{_datadir}/gir-1.0/GXml-0.3.gir
+%{_pkgconfigdir}/gxml.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgxml.a
+%endif
+
+%files -n vala-gxml
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/gxml.deps
+%{_datadir}/vala/vapi/gxml.vapi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gxml.git/commitdiff/7896694334ddb6ea1c0ef9166b39319ca4d84cbe



More information about the pld-cvs-commit mailing list