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