# # spec file for package vala (Version 0.3.3) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: vala Version: 0.3.3 Release: 2 Summary: Vala is a new programming language for GNOME Group: Development/Languages/Other License: LGPL v2.1 or later Url: http://live.gnome.org/Vala Source0: http://www.paldo.org/vala/vala-%{version}.tar.bz2 Patch0: return-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison flex glib2-devel #Requires: %if 0%{?suse_version} < 1030 %define _prefix /opt/gnome %endif %description Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C. Authors: -------- Jürg Billeter Raffaele Sandrini %package devel License: LGPL v2.0 only Summary: Vala is a new programming language for GNOME Group: Development/Languages/Other Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C. Authors: -------- Jürg Billeter Raffaele Sandrini %prep %setup -q %patch -p1 %build %configure --enable-vapigen # Don't use rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?jobs:-j%jobs} %install #rm -rf $RPM_BUILD_ROOT %makeinstall rm $RPM_BUILD_ROOT%{_libdir}/libvala.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING INSTALL NEWS README %{_bindir}/valac %{_bindir}/vala-gen-introspect %{_bindir}/vapicheck %{_datadir}/vala %{_libdir}/libvala.so.* %{_mandir}/*/* %files devel %defattr(-,root,root,-) %{_includedir}/vala-1.0 %{_bindir}/*gen %{_libdir}/libvala.so %{_libdir}/vala %{_libdir}/pkgconfig/vala-1.0.pc %changelog * Fri Sep 12 2008 mauro@suse.de - Added return-fix.patch to fix the error " Program returns random data in a function". * Fri Jul 25 2008 mauro@suse.de - initial SUSE package