]>
Commit | Line | Data |
---|---|---|
7ace0cac | 1 | %define major_ver 0.14 |
2100e356 | 2 | Summary: GObject-based language compiler |
62a0034d | 3 | Summary(pl.UTF-8): Kompilator języka opartego na bibliotece GObject |
2100e356 | 4 | Name: vala |
c71834e9 | 5 | Version: 0.14.2 |
7ace0cac | 6 | Release: 1 |
c258620e | 7 | Epoch: 2 |
6a5cf96c | 8 | License: LGPL v2+ |
2100e356 | 9 | Group: Applications |
7ace0cac | 10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/vala/0.14/%{name}-%{version}.tar.xz |
c71834e9 | 11 | # Source0-md5: f05263a56c1e328637e4c97a61befdad |
9278bb59 | 12 | URL: http://live.gnome.org/Vala |
1d8bfdb9 | 13 | BuildRequires: autoconf |
7ace0cac | 14 | BuildRequires: automake >= 1:1.11 |
6a5cf96c | 15 | BuildRequires: bison |
2ac0ddb6 | 16 | BuildRequires: flex |
8dbbe0bb | 17 | BuildRequires: glib2-devel >= 1:2.16.0 |
1d8bfdb9 | 18 | BuildRequires: libtool |
7f0c5943 | 19 | BuildRequires: libxslt-progs |
6a5cf96c | 20 | BuildRequires: pkgconfig |
7ace0cac AF |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
a147192b | 23 | Conflicts: gdk-pixbuf2 < 2.23.3-1 |
2100e356 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Vala is a new programming language that aims to bring modern | |
28 | programming language features to GNOME developers without imposing any | |
29 | additional runtime requirements and without using a different ABI | |
30 | compared to applications and libraries written in C. | |
31 | ||
32 | valac, the Vala compiler, is a self-hosting compiler that translates | |
33 | Vala source code into C source and header files. It uses the GObject | |
34 | type system to create classes and interfaces declared in the Vala | |
35 | source code. It's also planned to generate GIDL files when | |
36 | gobject-introspection is ready. | |
37 | ||
38 | The syntax of Vala is similar to C#, modified to better fit the | |
39 | GObject type system. | |
40 | ||
a030a99c JR |
41 | %description -l pl.UTF-8 |
42 | Vala to nowy język programowania, którego celem jest udostępnienie | |
43 | cech nowoczesnych języków programowania programistom GNOME bez | |
44 | wymuszania dodatkowych wymagań co do środowiska uruchomieniowego i | |
45 | używania API innego niż w aplikacjach i bibliotekach napisanych w C. | |
fc5b0e4f | 46 | |
a030a99c JR |
47 | valac - kompilator języka Vala - to napisany w sobie samym kompilator |
48 | tłumaczący kod źródłowy w języku Vala na pliki źródłowe i nagłówkowe w | |
49 | C. Używa systemu typów GObject do tworzenia klas i interfejsów | |
50 | zadeklarowanych w kodzie źródłowym w języku Vala. Planowane jest także | |
51 | generowanie plików GIDL, kiedy system gobject-introspection będzie | |
fc5b0e4f JB |
52 | gotowy. |
53 | ||
a030a99c JR |
54 | Składnia języka Vala jest podobna do C#, zmodyfikowana tak, aby lepiej |
55 | pasować do systemu typów GObject. | |
fc5b0e4f | 56 | |
b0568d57 | 57 | %package apidocs |
58 | Summary: vala API documentation | |
59 | Summary(pl.UTF-8): Dokumentacja API vala | |
60 | Group: Documentation | |
8634ffb4 | 61 | Requires: devhelp |
b0568d57 | 62 | |
63 | %description apidocs | |
64 | vala API documentation. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API vala. | |
68 | ||
2100e356 | 69 | %prep |
70 | %setup -q | |
71 | ||
72 | %build | |
1d8bfdb9 | 73 | %{__libtoolize} |
7ace0cac | 74 | %{__aclocal} -I m4 |
1d8bfdb9 | 75 | %{__autoconf} |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure \ | |
9278bb59 | 79 | --disable-silent-rules \ |
2ca28226 | 80 | --enable-vapigen |
2100e356 | 81 | %{__make} |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
a3c413c5 PZ |
86 | install -d $RPM_BUILD_ROOT%{_datadir}/vala/vapi |
87 | ||
2100e356 | 88 | %{__make} install \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
a3c413c5 PZ |
91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
92 | ||
2100e356 | 93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
6a5cf96c JB |
96 | %post -p /sbin/ldconfig |
97 | %postun -p /sbin/ldconfig | |
98 | ||
2100e356 | 99 | %files |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_bindir}/* | |
a3c413c5 PZ |
102 | %attr(755,root,root) %{_libdir}/libvala-%{major_ver}.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libvala-%{major_ver}.so.0 | |
104 | %attr(755,root,root) %{_libdir}/libvala-%{major_ver}.so | |
092cc603 | 105 | %{_includedir}/vala-%{major_ver} |
e6241369 | 106 | %{_pkgconfigdir}/libvala-%{major_ver}.pc |
a3c413c5 PZ |
107 | %dir %{_datadir}/vala |
108 | %dir %{_datadir}/vala/vapi | |
092cc603 JK |
109 | %dir %{_datadir}/vala-%{major_ver} |
110 | %dir %{_datadir}/vala-%{major_ver}/vapi | |
111 | %{_datadir}/vala-%{major_ver}/vapi/*.vapi | |
112 | %{_datadir}/vala-%{major_ver}/vapi/*.deps | |
6a5cf96c | 113 | %{_mandir}/man1/valac.1* |
092cc603 JK |
114 | %{_mandir}/man1/valac-%{major_ver}.1* |
115 | %dir %{_libdir}/vala-%{major_ver} | |
116 | %attr(755,root,root) %{_libdir}/vala-%{major_ver}/gen-introspect-%{major_ver} | |
cbe6d1d3 | 117 | %{_mandir}/man1/vala-gen-introspect.1* |
092cc603 | 118 | %{_mandir}/man1/vala-gen-introspect-%{major_ver}.1* |
cbe6d1d3 | 119 | %{_mandir}/man1/vapigen.1* |
092cc603 JK |
120 | %{_mandir}/man1/vapigen-%{major_ver}.1* |
121 | %{_aclocaldir}/vala.m4 | |
b0568d57 | 122 | |
123 | %files apidocs | |
124 | %defattr(644,root,root,755) | |
092cc603 | 125 | %{_datadir}/devhelp/books/vala-%{major_ver} |