[packages/gucharmap] - added vala package

qboosh qboosh at pld-linux.org
Thu Oct 18 19:30:04 CEST 2012


commit 1750fbbe015c3082881c19db266f6c6d57c980a4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 18 19:30:15 2012 +0200

    - added vala package

 gucharmap.spec | 36 +++++++++++++++++++++++++++++++-----
 1 file changed, 31 insertions(+), 5 deletions(-)
---
diff --git a/gucharmap.spec b/gucharmap.spec
index 163b538..f9ef0f6 100644
--- a/gucharmap.spec
+++ b/gucharmap.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	vala	# Vala API
+#
 Summary:	Unicode character map
 Summary(pl.UTF-8):	Mapa znaków unikodowych
 Name:		gucharmap
@@ -24,6 +28,7 @@ BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(find_lang) >= 1.23
 BuildRequires:	rpmbuild(macros) >= 1.311
 BuildRequires:	tar >= 1:1.22
+%{?with_vala:BuildRequires:	vala >= 2:0.18}
 BuildRequires:	xz
 BuildRequires:	yelp-tools
 Requires(post,postun):	gtk-update-icon-cache
@@ -93,6 +98,19 @@ gucharmap library API documentation (GTK+ 3 version).
 %description apidocs -l pl.UTF-8
 Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3).
 
+%package -n vala-gucharmap
+Summary:	gucharmap API for Vala language
+Summary(pl.UTF-8):	API gucharmap dla języka Vala
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	vala >= 2:0.16
+
+%description -n vala-gucharmap
+gucharmap API for Vala language.
+
+%description -n vala-gucharmap -l pl.UTF-8
+API gucharmap dla języka Vala.
+
 %prep
 %setup -q
 
@@ -105,19 +123,21 @@ Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3).
 %{__autoheader}
 %{__autoconf}
 %configure \
-	--disable-silent-rules \
 	--disable-scrollkeeper \
-	--enable-introspection \
+	--disable-silent-rules \
 	--enable-gtk-doc \
-	--with-html-dir=%{_gtkdocdir} \
-	--enable-static
+	--enable-introspection \
+	--enable-static \
+	%{?with_vala:--enable-vala} \
+	--with-html-dir=%{_gtkdocdir}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+	DESTDIR=$RPM_BUILD_ROOT \
+	vapidir=%{_datadir}/vala/vapi
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
@@ -165,3 +185,9 @@ rm -rf $RPM_BUILD_ROOT
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/gucharmap-2.90
+
+%if %{with vala}
+%files -n vala-gucharmap
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/Gucharmap-2.90.vapi
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gucharmap.git/commitdiff/1750fbbe015c3082881c19db266f6c6d57c980a4



More information about the pld-cvs-commit mailing list