File vala.spec of Package vala
Name: vala
Version: 0.3.3
Release: 1
Summary: A modern programming language for GNOME
Group: Development/Languages/Other
License: LGPL
URL: http://vala.paldo.org/
Source0: http://www.paldo.org/vala/vala-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel flex bison
#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.
valac, the Vala compiler, is a self-hosting compiler that translates
Vala source code into C source and header files. It uses the GObject
type system to create classes and interfaces declared in the Vala source
code. It's also planned to generate GIDL files when gobject-
introspection is ready.
The syntax of Vala is similar to C#, modified to better fit the GObject
type system.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
Development files for %{name}. This is not necessary for using the %{name}
compiler.
%debug_package
%prep
%setup -q
%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
* Wed Jun 04 2008 wcfarrington@gmail.com
- Update to 0.3.3
* Mon May 19 2008 kevin@kubasik.net
- Update to 0.3.2
* Wed Sep 5 2007 00:09:00 EDT - michel.sylvan@gmail.com
- Enable binding generation tools
* Sun Sep 2 2007 18:04:00 EDT - michel.sylvan@gmail.com
- Initial package