Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044802
en ru br
Репозитории ALT
S:0.56.13-alt1
5.1: 0.7.7-alt1
www.altlinux.org/Changes

Группа :: Разработка/C
Пакет: vala

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# Vala is written in Vala itself. To solve bootstrap problem we pre-compile it to C
# and use those C sources during bootstrap phase. Next package rebuilds must be done
# without bootstrap define.
%def_with bootstrap

name: vala
version: 0.7.7
release: alt1
Group: Development/C
Summary: Vala is a programming language which makes GNOME programming easy
License: LGPL
Url: http://live.gnome.org/Vala
Packager: Alexander Bokovoy <ab at altlinux.org>

Source: %name-%version.tar
Patch: %name-%version-%release-pregenerated.patch

BuildRequires: flex libgtk+2-devel xsltproc libdbus-glib-devel dbus-tools-gui
%if_without bootstrap
BuildRequires: vala
%endif

%description
Vala is a 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.

Vala is designed to allow access to existing C libraries, especially GObject-based
libraries, without the need for runtime bindings. Each to be used library requires a Vala
API file at compile-time, containing the class and method declarations in Vala
syntax. Vala currently comes with experimental bindings for GLib and GTK+. It's planned to
provide generated bindings for the full GNOME Platform at a later stage.

%package -n libvala-devel
Summary: Development files for embedding Vala translator
Group: Development/C

%description -n libvala-devel
Vala is a 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.

This package contains infrastructure files to embed Vala translator into your programs

%package doc
Summary: Documentation for Vala programming language
Group: Development/C

%description doc
Vala is a 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.

This package contains Vala documentation for GNOME DevHelp.

%package tools
Summary: Tools for creating Vala API specifications and new projects
Group: Development/C

%description tools
Vala is a 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.

This packages contains additional tools to generate Vala projects and API specifications
for existing C and C++ libraries.

%prep
%setup -q
%if_with bootstrap
%patch0 -p1
# Make stamps for pregenerated source code so that Vala build system would not run valac again
for i in vala codegen ccode gee ; do
   touch $i/$i.vala.stamp
done
touch vapigen/{vapigen,vapicheck}.vala.stamp
touch compiler/valac.vala.stamp
%endif

%build
# Automake now requires to have ChangeLog and m4, fake them
touch ChangeLog
mkdir -p m4
autoreconf -v --install
%configure --enable-vapigen
%if_without bootstrap
# Delete stamps to force re-generation of C code with system-wide valac
find . -name '*.stamp' | xargs -r rm
%endif
%make
# Perform language environment tests
make  check

%install
%makeinstall

%files
%_bindir/valac
%_libdir/libvala.so.*
%_man1dir/valac.*
%dir %_datadir/vala
%_datadir/vala/vapi
%doc AUTHORS COPYING ChangeLog* NEWS README THANKS

%files -n libvala-devel
%_includedir/vala-1.0
%_pkgconfigdir/vala-1.0.pc
%_libdir/libvala.so

%files doc
%_datadir/devhelp/books/vala

%files tools
%_bindir/vapigen
%_bindir/vala-gen-introspect
%_bindir/vapicheck
%_libdir/vala/gen-introspect
%_man1dir/vala-gen-introspect.*
%_man1dir/vapigen.*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin