]> git.pld-linux.org Git - packages/vala.git/blame - vala.spec
- updated to 0.42.5
[packages/vala.git] / vala.spec
CommitLineData
859c2d12 1#
787370ed
MB
2# Conditional build:
3%bcond_with bootstrap # bootstrap build
4
7692b5e7 5%define major_ver 0.42
2100e356 6Summary: GObject-based language compiler
62a0034d 7Summary(pl.UTF-8): Kompilator języka opartego na bibliotece GObject
2100e356 8Name: vala
4613cdbf 9Version: 0.42.5
113c79bf 10Release: 1
c258620e 11Epoch: 2
6a5cf96c 12License: LGPL v2+
37af0a44 13Group: Development/Languages
7692b5e7 14Source0: http://ftp.gnome.org/pub/GNOME/sources/vala/0.42/%{name}-%{version}.tar.xz
4613cdbf 15# Source0-md5: d204eb4fa210995e731e2a9a01c8c772
7692b5e7 16URL: https://wiki.gnome.org/Projects/Vala
27a73cba 17BuildRequires: autoconf >= 2.65
7ace0cac 18BuildRequires: automake >= 1:1.11
6a5cf96c 19BuildRequires: bison
2ac0ddb6 20BuildRequires: flex
50430cbc
MB
21BuildRequires: glib2-devel >= 1:2.40.0
22BuildRequires: graphviz-devel >= 2.16
e675a7aa 23BuildRequires: libtool >= 2:2.2.6
7f0c5943 24BuildRequires: libxslt-progs
e675a7aa 25BuildRequires: pkgconfig >= 1:0.21
7ace0cac 26BuildRequires: tar >= 1:1.22
7692b5e7 27%{!?with_bootstrap:BuildRequires: vala >= 2:0.39.5.8}
7ace0cac 28BuildRequires: xz
50430cbc 29Requires: glib2 >= 1:2.40.0
a147192b 30Conflicts: gdk-pixbuf2 < 2.23.3-1
2100e356 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34Vala is a new programming language that aims to bring modern
35programming language features to GNOME developers without imposing any
36additional runtime requirements and without using a different ABI
37compared to applications and libraries written in C.
38
39valac, the Vala compiler, is a self-hosting compiler that translates
40Vala source code into C source and header files. It uses the GObject
41type system to create classes and interfaces declared in the Vala
42source code. It's also planned to generate GIDL files when
43gobject-introspection is ready.
44
45The syntax of Vala is similar to C#, modified to better fit the
46GObject type system.
47
a030a99c
JR
48%description -l pl.UTF-8
49Vala to nowy język programowania, którego celem jest udostępnienie
50cech nowoczesnych języków programowania programistom GNOME bez
51wymuszania dodatkowych wymagań co do środowiska uruchomieniowego i
52używania API innego niż w aplikacjach i bibliotekach napisanych w C.
fc5b0e4f 53
a030a99c
JR
54valac - kompilator języka Vala - to napisany w sobie samym kompilator
55tłumaczący kod źródłowy w języku Vala na pliki źródłowe i nagłówkowe w
56C. Używa systemu typów GObject do tworzenia klas i interfejsów
57zadeklarowanych w kodzie źródłowym w języku Vala. Planowane jest także
58generowanie plików GIDL, kiedy system gobject-introspection będzie
fc5b0e4f
JB
59gotowy.
60
a030a99c
JR
61Składnia języka Vala jest podobna do C#, zmodyfikowana tak, aby lepiej
62pasować do systemu typów GObject.
fc5b0e4f 63
b0568d57 64%package apidocs
65Summary: vala API documentation
66Summary(pl.UTF-8): Dokumentacja API vala
67Group: Documentation
8634ffb4 68Requires: devhelp
e826d452
ER
69%if "%{_rpmversion}" >= "5"
70BuildArch: noarch
71%endif
b0568d57 72
73%description apidocs
74vala API documentation.
75
76%description apidocs -l pl.UTF-8
77Dokumentacja API vala.
78
50430cbc
MB
79%package -n valadoc
80Summary: Documentation tool for Vala
81Summary(pl.UTF-8): Narzędzie obsługujące dokumentację dla języka Vala
82Group: Development/Tools
83Requires: %{name} = %{epoch}:%{version}-%{release}
84
85%description -n valadoc
86Documentation tool for Vala.
87
88%description -n valadoc -l pl.UTF-8
89Narzędzie obsługujące dokumentację dla języka Vala.
90
91%package -n valadoc-devel
92Summary: Header file for Valadoc library
93Summary(pl.UTF-8): Plik nagłówkowy biblioteki Valadoc
94Group: Development/Libraries
95Requires: glib2-devel >= 1:2.40.0
96Requires: graphviz-devel >= 2.16
97Requires: valadoc = %{epoch}:%{version}-%{release}
98
99%description -n valadoc-devel
100Header file for Valadoc library.
101
102%description -n valadoc-devel -l pl.UTF-8
103Plik nagłówkowy biblioteki Valadoc.
104
105%package -n vala-valadoc
106Summary: Vala API for Valadoc library
107Summary(pl.UTF-8): API języka Vala do biblioteki Valadoc
108Group: Development/Libraries
109Requires: vala
110Requires: valadoc-devel = %{epoch}:%{version}-%{release}
111%if "%{_rpmversion}" >= "5"
112BuildArch: noarch
113%endif
114
115%description -n vala-valadoc
116Vala API for Valadoc library.
117
118%description -n vala-valadoc -l pl.UTF-8
119API języka Vala do biblioteki Valadoc.
120
2100e356 121%prep
122%setup -q
123
124%build
1d8bfdb9 125%{__libtoolize}
7ace0cac 126%{__aclocal} -I m4
1d8bfdb9 127%{__autoconf}
128%{__autoheader}
129%{__automake}
130%configure \
7ec7f175 131 --disable-silent-rules
2100e356 132%{__make}
133
134%install
135rm -rf $RPM_BUILD_ROOT
a3c413c5
PZ
136install -d $RPM_BUILD_ROOT%{_datadir}/vala/vapi
137
2100e356 138%{__make} install \
139 DESTDIR=$RPM_BUILD_ROOT
140
a3c413c5
PZ
141%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
142
50430cbc 143# loadable modules
e7af7537 144%{__rm} $RPM_BUILD_ROOT%{_libdir}/*/*.la
50430cbc
MB
145%{__rm} $RPM_BUILD_ROOT%{_libdir}/valadoc/*/*/*.la
146
2100e356 147%clean
148rm -rf $RPM_BUILD_ROOT
149
6a5cf96c
JB
150%post -p /sbin/ldconfig
151%postun -p /sbin/ldconfig
152
859c2d12 153%post -n valadoc -p /sbin/ldconfig
50430cbc
MB
154%postun -n valadoc -p /sbin/ldconfig
155
2100e356 156%files
157%defattr(644,root,root,755)
787370ed 158%doc AUTHORS ChangeLog NEWS README THANKS
a393e7a8
JB
159%attr(755,root,root) %{_bindir}/vala
160%attr(755,root,root) %{_bindir}/vala-%{major_ver}
161%attr(755,root,root) %{_bindir}/vala-gen-introspect
162%attr(755,root,root) %{_bindir}/vala-gen-introspect-%{major_ver}
163%attr(755,root,root) %{_bindir}/valac
164%attr(755,root,root) %{_bindir}/valac-%{major_ver}
a393e7a8
JB
165%attr(755,root,root) %{_bindir}/vapigen
166%attr(755,root,root) %{_bindir}/vapigen-%{major_ver}
a3c413c5
PZ
167%attr(755,root,root) %{_libdir}/libvala-%{major_ver}.so.*.*.*
168%attr(755,root,root) %ghost %{_libdir}/libvala-%{major_ver}.so.0
169%attr(755,root,root) %{_libdir}/libvala-%{major_ver}.so
092cc603 170%{_includedir}/vala-%{major_ver}
e6241369 171%{_pkgconfigdir}/libvala-%{major_ver}.pc
27a73cba
MB
172%{_pkgconfigdir}/vapigen-%{major_ver}.pc
173%{_pkgconfigdir}/vapigen.pc
a3c413c5 174%dir %{_datadir}/vala
ce788c9c 175%{_datadir}/vala/Makefile.vapigen
a3c413c5 176%dir %{_datadir}/vala/vapi
859c2d12 177%{_datadir}/vala/vapi/libvala-%{major_ver}.vapi
092cc603
JK
178%dir %{_datadir}/vala-%{major_ver}
179%dir %{_datadir}/vala-%{major_ver}/vapi
180%{_datadir}/vala-%{major_ver}/vapi/*.vapi
181%{_datadir}/vala-%{major_ver}/vapi/*.deps
092cc603
JK
182%dir %{_libdir}/vala-%{major_ver}
183%attr(755,root,root) %{_libdir}/vala-%{major_ver}/gen-introspect-%{major_ver}
e7af7537 184%attr(755,root,root) %{_libdir}/vala-%{major_ver}/libvalaccodegen.so
cbe6d1d3 185%{_mandir}/man1/vala-gen-introspect.1*
092cc603 186%{_mandir}/man1/vala-gen-introspect-%{major_ver}.1*
a393e7a8
JB
187%{_mandir}/man1/valac.1*
188%{_mandir}/man1/valac-%{major_ver}.1*
cbe6d1d3 189%{_mandir}/man1/vapigen.1*
092cc603
JK
190%{_mandir}/man1/vapigen-%{major_ver}.1*
191%{_aclocaldir}/vala.m4
ce788c9c 192%{_aclocaldir}/vapigen.m4
b0568d57 193
194%files apidocs
195%defattr(644,root,root,755)
092cc603 196%{_datadir}/devhelp/books/vala-%{major_ver}
50430cbc
MB
197
198%files -n valadoc
199%defattr(644,root,root,755)
200%attr(755,root,root) %{_bindir}/valadoc
e7af7537
MB
201%attr(755,root,root) %{_bindir}/valadoc-%{major_ver}
202%attr(755,root,root) %{_libdir}/libvaladoc-%{major_ver}.so.*.*.*
203%attr(755,root,root) %ghost %{_libdir}/libvaladoc-%{major_ver}.so.0
50430cbc
MB
204%dir %{_libdir}/valadoc
205%dir %{_libdir}/valadoc/doclets
206%dir %{_libdir}/valadoc/doclets/devhelp
207%attr(755,root,root) %{_libdir}/valadoc/doclets/devhelp/libdoclet.so
208%dir %{_libdir}/valadoc/doclets/gtkdoc
209%attr(755,root,root) %{_libdir}/valadoc/doclets/gtkdoc/libdoclet.so
210%dir %{_libdir}/valadoc/doclets/html
211%attr(755,root,root) %{_libdir}/valadoc/doclets/html/libdoclet.so
212%{_datadir}/valadoc
7692b5e7 213%{_mandir}/man1/valadoc-%{major_ver}.1*
50430cbc
MB
214%{_mandir}/man1/valadoc.1*
215
216%files -n valadoc-devel
217%defattr(644,root,root,755)
e7af7537
MB
218%attr(755,root,root) %{_libdir}/libvaladoc-%{major_ver}.so
219%{_includedir}/valadoc-%{major_ver}
220%{_pkgconfigdir}/valadoc-%{major_ver}.pc
50430cbc
MB
221
222%files -n vala-valadoc
223%defattr(644,root,root,755)
e7af7537
MB
224%{_datadir}/vala/vapi/valadoc-%{major_ver}.deps
225%{_datadir}/vala/vapi/valadoc-%{major_ver}.vapi
This page took 0.147525 seconds and 4 git commands to generate.