]>
Commit | Line | Data |
---|---|---|
2100e356 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %bcond_without tests # build without tests | |
5 | # | |
6 | Summary: GObject-based language compiler | |
7 | Name: vala | |
8 | Version: 0.0.1 | |
9 | Release: 0.1 | |
10 | License: LGPL 2.1 | |
11 | Group: Applications | |
12 | Source0: http://www.paldo.org/vala/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: c9b0916e6e091a115bc81ac552d19c10 | |
14 | URL: http://www.paldo.org/vala/ | |
15 | BuildRequires: glib2-devel >= 2.10.0 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Vala is a new programming language that aims to bring modern | |
20 | programming language features to GNOME developers without imposing any | |
21 | additional runtime requirements and without using a different ABI | |
22 | compared to applications and libraries written in C. | |
23 | ||
24 | valac, the Vala compiler, is a self-hosting compiler that translates | |
25 | Vala source code into C source and header files. It uses the GObject | |
26 | type system to create classes and interfaces declared in the Vala | |
27 | source code. It's also planned to generate GIDL files when | |
28 | gobject-introspection is ready. | |
29 | ||
30 | The syntax of Vala is similar to C#, modified to better fit the | |
31 | GObject type system. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | ||
36 | %build | |
37 | %configure | |
38 | %{__make} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %attr(755,root,root) %{_bindir}/* | |
52 | %dir %{_datadir}/vala | |
53 | %dir %{_datadir}/vala/vapi | |
54 | %{_datadir}/vala/vapi/*.vala |