Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:1-MinimalX
vala
vala.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vala.spec of Package vala
# # spec file for package vala # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: vala Version: 0.32.1 Release: 0 %define vala_version 0.32 %define vala_libversion 0_32 # The priority defines which version of vala, in case of multiple ones are installed # is to be used by default. The rule-of-thumb for vala is to use MAJORMINOR without # decimal separator, hoping they will not get to the idea to create a 0.100 release. %define vala_priority 32 Summary: Programming language for GNOME License: LGPL-2.0 Group: Development/Languages/Other Url: http://live.gnome.org/Vala Source0: http://download.gnome.org/sources/vala/0.32/%{name}-%{version}.tar.xz BuildRequires: bison BuildRequires: fdupes BuildRequires: flex BuildRequires: glib2-devel >= 2.32.0 BuildRequires: xsltproc Requires(post): update-alternatives Requires(postun): update-alternatives # Vala is a compiler, so it's also a devel package Provides: vala-devel = %{version} Obsoletes: vala-devel < %{version} # provide generic pkgconfig(vapigen) instead of -version one; not auto-detected due to %{_datadir}/pkgconfig/vapigen.pc being %ghost Provides: pkgconfig(vapigen) = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Vala is a new 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. %package -n libvala-%{vala_libversion}-0 Summary: Programming language for GNOME Group: System/Libraries %description -n libvala-%{vala_libversion}-0 Vala is a new 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. %package -n libvala-%{vala_libversion}-devel Summary: Programming language for GNOME Group: Development/Libraries/Other Requires: libvala-%{vala_libversion}-0 = %{version} %description -n libvala-%{vala_libversion}-devel Vala is a new 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. %prep %setup -q %build %configure --with-pic --enable-vapigen make %{?jobs:-j%jobs} %install %makeinstall find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print # Setup update-alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives ln -s -f %{_sysconfdir}/alternatives/vala %{buildroot}%{_bindir}/vala ln -s -f %{_sysconfdir}/alternatives/valac %{buildroot}%{_bindir}/valac ln -s -f %{_sysconfdir}/alternatives/vala-gen-introspect %{buildroot}%{_bindir}/vala-gen-introspect ln -s -f %{_sysconfdir}/alternatives/vapicheck %{buildroot}%{_bindir}/vapicheck ln -s -f %{_sysconfdir}/alternatives/vapigen %{buildroot}%{_bindir}/vapigen ln -s -f %{_sysconfdir}/alternatives/valac.1.gz %{buildroot}%{_mandir}/man1/valac.1.gz ln -s -f %{_sysconfdir}/alternatives/vala-gen-introspect.1.gz %{buildroot}%{_mandir}/man1/vala-gen-introspect.1.gz ln -s -f %{_sysconfdir}/alternatives/vapigen.1.gz %{buildroot}%{_mandir}/man1/vapigen.1.gz ln -s -f %{_sysconfdir}/alternatives/vapigen.pc %{buildroot}%{_datadir}/pkgconfig/vapigen.pc %fdupes %{buildroot}%{_datadir} %post update-alternatives \ --install %{_bindir}/vala vala %{_bindir}/vala-%{vala_version} \ %{vala_priority} \ --slave %{_bindir}/valac valac %{_bindir}/valac-%{vala_version} \ --slave %{_bindir}/vala-gen-introspect vala-gen-introspect %{_bindir}/vala-gen-introspect-%{vala_version} \ --slave %{_bindir}/vapicheck vapicheck %{_bindir}/vapicheck-%{vala_version} \ --slave %{_bindir}/vapigen vapigen %{_bindir}/vapigen-%{vala_version} \ --slave %{_mandir}/man1/valac.1.gz valac.1.gz %{_mandir}/man1/valac-%{vala_version}.1.gz \ --slave %{_mandir}/man1/vala-gen-introspect.1.gz vala-gen-introspect.1.gz %{_mandir}/man1/vala-gen-introspect-%{vala_version}.1.gz \ --slave %{_mandir}/man1/vapigen.1.gz vapigen.1.gz %{_mandir}/man1/vapigen-%{vala_version}.1.gz \ --slave %{_datadir}/pkgconfig/vapigen.pc vapigen.pc %{_datadir}/pkgconfig/vapigen-%{vala_version}.pc %postun # Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed if [ ! -f %{_bindir}/vala-%{vala_version} ]; then update-alternatives --remove vala %{_bindir}/vala-%{vala_version} fi %post -n libvala-%{vala_libversion}-0 -p /sbin/ldconfig %postun -n libvala-%{vala_libversion}-0 -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %{_bindir}/vala %{_bindir}/valac %{_bindir}/vala-gen-introspect %{_bindir}/vapicheck %{_bindir}/vapigen %{_mandir}/man1/valac.1* %{_mandir}/man1/vala-gen-introspect.1* %{_mandir}/man1/vapigen.1* %{_datadir}/pkgconfig/vapigen.pc %ghost %attr(755,root,root) %{_sysconfdir}/alternatives/vala %ghost %attr(755,root,root) %{_sysconfdir}/alternatives/valac %ghost %attr(755,root,root) %{_sysconfdir}/alternatives/vala-gen-introspect %ghost %attr(755,root,root) %{_sysconfdir}/alternatives/vapicheck %ghost %attr(755,root,root) %{_sysconfdir}/alternatives/vapigen %ghost %attr(644,root,root) %{_sysconfdir}/alternatives/valac.1.gz %ghost %attr(644,root,root) %{_sysconfdir}/alternatives/vala-gen-introspect.1.gz %ghost %attr(644,root,root) %{_sysconfdir}/alternatives/vapigen.1.gz %ghost %attr(644,root,root) %{_sysconfdir}/alternatives/vapigen.pc %{_bindir}/vala-%{vala_version} %{_bindir}/valac-%{vala_version} %{_bindir}/vala-gen-introspect-%{vala_version} %{_bindir}/vapicheck-%{vala_version} %{_bindir}/vapigen-%{vala_version} %{_mandir}/man1/valac-%{vala_version}.1* %{_mandir}/man1/vala-gen-introspect-%{vala_version}.1* %{_mandir}/man1/vapigen-%{vala_version}.1* %{_datadir}/aclocal/vala.m4 %{_datadir}/aclocal/vapigen.m4 %{_datadir}/pkgconfig/vapigen-%{vala_version}.pc %dir %{_datadir}/vala %{_datadir}/vala/Makefile.vapigen %{_datadir}/vala-%{vala_version}/ %{_libdir}/vala-%{vala_version}/ %files -n libvala-%{vala_libversion}-0 %defattr(-,root,root,-) %{_libdir}/libvala-%{vala_version}.so.* %files -n libvala-%{vala_libversion}-devel %defattr(-,root,root,-) %{_includedir}/vala-%{vala_version}/ %{_libdir}/libvala-%{vala_version}.so %{_libdir}/pkgconfig/libvala-%{vala_version}.pc %dir %{_datadir}/devhelp/ %dir %{_datadir}/devhelp/books/ %{_datadir}/devhelp/books/%{name}-%{vala_version}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor