2008-07-15 16:41:39 +00:00
|
|
|
%if %($(pkg-config emacs) ; echo $?)
|
|
|
|
%define emacs_version 22.2
|
|
|
|
%define emacs_lispdir %{_datadir}/emacs/site-lisp
|
|
|
|
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
|
|
|
|
%else
|
|
|
|
%define emacs_version %(pkg-config emacs --modversion)
|
|
|
|
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
|
|
|
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
|
|
|
%endif
|
|
|
|
|
2006-11-06 20:20:38 +00:00
|
|
|
Name: vala
|
2008-07-01 01:20:13 +00:00
|
|
|
Version: 0.3.4
|
2008-07-15 16:41:39 +00:00
|
|
|
Release: 2%{?dist}
|
2006-11-06 20:20:38 +00:00
|
|
|
Summary: A modern programming language for GNOME
|
|
|
|
|
|
|
|
Group: Development/Languages
|
2008-05-16 19:49:46 +00:00
|
|
|
# Most files are LGPLv2.1+, curses.vapi is 2-clause BSD
|
2007-09-08 17:12:52 +00:00
|
|
|
License: LGPLv2+ and BSD
|
2007-09-05 22:03:10 +00:00
|
|
|
URL: http://live.gnome.org/Vala
|
2008-05-16 19:49:46 +00:00
|
|
|
Source0: http://download.gnome.org/sources/vala/0.3/vala-%{version}.tar.bz2
|
2008-07-15 16:41:39 +00:00
|
|
|
Source1: vala-mode.el
|
|
|
|
Source2: vala-init.el
|
2006-11-06 20:20:38 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2007-12-04 15:59:03 +00:00
|
|
|
BuildRequires: gtk2-devel flex bison devhelp
|
2008-07-15 16:41:39 +00:00
|
|
|
BuildRequires: emacs emacs-el
|
2007-12-04 22:28:35 +00:00
|
|
|
Requires: gtk2-devel
|
2006-11-06 20:20:38 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
valac, the Vala compiler, is a self-hosting compiler that translates
|
|
|
|
Vala source code into C source and header files. It uses the GObject
|
|
|
|
type system to create classes and interfaces declared in the Vala source
|
|
|
|
code. It's also planned to generate GIDL files when gobject-
|
|
|
|
introspection is ready.
|
|
|
|
|
|
|
|
The syntax of Vala is similar to C#, modified to better fit the GObject
|
|
|
|
type system.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
2007-10-19 19:31:22 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains development files for %{name}. This is not necessary for
|
|
|
|
using the %{name} compiler.
|
2006-11-06 20:20:38 +00:00
|
|
|
|
2008-07-15 16:41:39 +00:00
|
|
|
|
2007-12-04 05:51:00 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Tools for creating projects and bindings for %{name}
|
2007-09-08 15:53:02 +00:00
|
|
|
Group: Development/Languages
|
2007-12-04 05:51:00 +00:00
|
|
|
License: LGPLv2+
|
2007-09-08 15:53:02 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2008-03-05 07:40:31 +00:00
|
|
|
Requires: gnome-common intltool libtool
|
2007-12-04 05:51:00 +00:00
|
|
|
Provides: %{name}-vapigen = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-vapigen < %{version}-%{release}
|
2007-09-08 15:53:02 +00:00
|
|
|
|
2007-12-04 05:51:00 +00:00
|
|
|
%description tools
|
2007-10-19 19:31:22 +00:00
|
|
|
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.
|
|
|
|
|
2007-12-04 05:51:00 +00:00
|
|
|
This package contains tools to generate Vala projects, as well as API bindings
|
|
|
|
from existing C libraries, allowing access from Vala programs.
|
2007-10-19 19:31:22 +00:00
|
|
|
|
2008-07-15 16:41:39 +00:00
|
|
|
|
2008-01-19 20:36:16 +00:00
|
|
|
%package doc
|
2007-10-19 19:31:22 +00:00
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
License: LGPLv2+
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: devhelp
|
2008-01-19 20:36:16 +00:00
|
|
|
Provides: %{name}-docs = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-docs < %{version}-%{release}
|
2007-10-19 19:31:22 +00:00
|
|
|
|
2008-01-19 20:36:16 +00:00
|
|
|
|
|
|
|
%description doc
|
2007-10-19 19:31:22 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains documentation in a devhelp HTML book.
|
2007-09-08 15:53:02 +00:00
|
|
|
|
2006-11-06 20:20:38 +00:00
|
|
|
|
2008-07-15 16:41:39 +00:00
|
|
|
%package -n emacs-vala
|
|
|
|
Summary: Vala mode for Emacs
|
|
|
|
Group: Applications/Editors
|
|
|
|
License: GPLv2+
|
|
|
|
Requires: emacs(bin) >= %{emacs_version}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n emacs-vala
|
|
|
|
An Emacs mode for editing Vala source code.
|
|
|
|
|
|
|
|
|
2006-11-06 20:20:38 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2007-12-04 05:51:00 +00:00
|
|
|
%configure --enable-vapigen --enable-gen-project
|
2006-11-06 20:20:38 +00:00
|
|
|
# Don't use rpath!
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
make %{?_smp_mflags}
|
2008-07-15 16:41:39 +00:00
|
|
|
# Compile emacs module
|
|
|
|
mkdir emacs-vala && cd emacs-vala && cp -p %{SOURCE1} .
|
|
|
|
emacs -batch -f batch-byte-compile vala-mode.el
|
2006-11-06 20:20:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libvala.la
|
|
|
|
|
2008-07-15 16:41:39 +00:00
|
|
|
# Emacs mode files
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
|
cp -p emacs-vala/*.el* $RPM_BUILD_ROOT%{emacs_lispdir}
|
|
|
|
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
|
|
2006-11-06 20:20:38 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
|
|
|
|
%{_bindir}/valac
|
|
|
|
%{_datadir}/vala
|
|
|
|
%{_libdir}/libvala.so.*
|
2007-11-28 07:21:08 +00:00
|
|
|
%{_mandir}/*/valac*
|
2006-11-06 20:20:38 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/vala-1.0
|
|
|
|
%{_libdir}/libvala.so
|
|
|
|
%{_libdir}/pkgconfig/vala-1.0.pc
|
|
|
|
|
2007-12-04 05:51:00 +00:00
|
|
|
%files tools
|
2007-09-08 15:53:02 +00:00
|
|
|
%defattr(-,root,root,-)
|
2007-11-28 07:06:53 +00:00
|
|
|
%{_bindir}/*gen*
|
2007-10-19 19:31:22 +00:00
|
|
|
%{_bindir}/vapicheck
|
2007-09-08 15:53:02 +00:00
|
|
|
%{_libdir}/vala
|
2007-11-28 07:21:08 +00:00
|
|
|
%{_mandir}/*/*gen*
|
2007-09-08 15:53:02 +00:00
|
|
|
|
2008-01-19 20:36:16 +00:00
|
|
|
%files doc
|
2007-10-19 19:31:22 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/devhelp/books/vala
|
|
|
|
|
2008-07-15 16:41:39 +00:00
|
|
|
%files -n emacs-vala
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{emacs_lispdir}/*
|
|
|
|
%{emacs_startdir}/*
|
|
|
|
|
2006-11-06 20:20:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-07-15 16:41:39 +00:00
|
|
|
* Tue Jul 15 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.3.4-2
|
|
|
|
- Add vala-mode for editing Vala code in Emacs
|
|
|
|
|
2008-07-01 01:20:13 +00:00
|
|
|
* Tue Jul 1 2008 Lennart Poettering <lpoetter@redhat.com> - 0.3.4-1
|
|
|
|
- Update to 0.3.4
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Wed Jun 4 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.3.3-1
|
|
|
|
- Update to 0.3.3
|
|
|
|
|
|
|
|
* Fri May 16 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.3.2-1
|
2008-05-16 19:49:46 +00:00
|
|
|
- Update to 0.3.2
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Thu Apr 10 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.2.0-1
|
2008-04-10 23:38:58 +00:00
|
|
|
- Update to 0.2.0
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Wed Mar 5 2008 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.7-1
|
2008-03-05 07:40:31 +00:00
|
|
|
- Update to 0.1.7
|
|
|
|
- -tool subpackage now requires gnome-common, intltool and libtoolize
|
|
|
|
for out-of-the-box vala-gen-project support
|
|
|
|
|
2008-02-19 23:25:07 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.6-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Sat Jan 19 2008 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.6-1
|
2008-01-19 20:36:16 +00:00
|
|
|
- Update to 0.1.6
|
|
|
|
- Revert vapi addition, needed declarations have been inlined (r846)
|
|
|
|
- Rename -docs subpackage to -doc, to comply with guidelines
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Tue Jan 15 2008 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.5-5
|
2008-01-15 15:05:39 +00:00
|
|
|
- Manually add Gee vapi file to package (bz #428692)
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Tue Dec 4 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.5-4
|
2007-12-04 22:28:35 +00:00
|
|
|
- Backport patch to autodetect location of automake shared files
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Tue Dec 4 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.5-3
|
2007-12-04 15:59:03 +00:00
|
|
|
- Add build dependency on gtk2-devel
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Tue Dec 4 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.5-2
|
2007-12-04 05:51:00 +00:00
|
|
|
- Enable project generator tool
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Tue Nov 27 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.5-1
|
2007-11-28 07:06:53 +00:00
|
|
|
- Update to 0.1.5
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Sun Nov 11 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.4-2
|
2007-11-11 08:24:53 +00:00
|
|
|
- Add build dependency on devhelp
|
2007-11-11 06:58:13 +00:00
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Fri Oct 19 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.4-1
|
2007-10-19 19:31:22 +00:00
|
|
|
- Update to 0.1.4
|
|
|
|
- Put newly-added documentation in its own subpackage (depends on devhelp)
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Mon Sep 17 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.3-5
|
2007-09-17 21:37:30 +00:00
|
|
|
- vapigen subpackage: add missing Require: on perl-XML-Twig
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Sat Sep 8 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.3-4
|
2007-09-08 15:53:02 +00:00
|
|
|
- Split -vapigen subpackage. It is functionally self-contained and the license
|
|
|
|
is more restricted
|
|
|
|
- Updated license declarations
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Wed Sep 5 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.3-3
|
2007-09-05 22:03:10 +00:00
|
|
|
- Licensing and URL updates
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Tue Sep 4 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.3-2
|
2007-09-05 03:36:20 +00:00
|
|
|
- Enable binding generation tools
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Sun Sep 2 2007 Michel Alexandre Salim <michel.sylvan@gmail.com> - 0.1.3-1
|
2007-09-02 22:24:39 +00:00
|
|
|
- Update to 0.1.3
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Sun Mar 25 2007 Michel Alexandre Salim <michel.salim@gmail.com> - 0.0.8-1
|
2007-03-25 16:02:02 +00:00
|
|
|
- Update to 0.0.8
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Wed Mar 7 2007 Michel Alexandre Salim <michel.salim@gmail.com> - 0.0.7-1
|
2007-03-08 01:47:22 +00:00
|
|
|
- Update to 0.0.7
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Wed Feb 28 2007 Michel Alexandre Salim <michel.salim@gmail.com> - 0.0.6-1
|
2007-03-01 01:53:47 +00:00
|
|
|
- Update to 0.0.6
|
|
|
|
|
2008-06-04 19:43:57 +00:00
|
|
|
* Mon Nov 6 2006 Michel Alexandre Salim <michel.salim@gmail.com> - 0.0.5-1
|
2006-11-06 20:20:38 +00:00
|
|
|
- Initial package
|