Skip to content

Commit

Permalink
[packaging] rpm packaging based on 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Islam Amer committed May 24, 2013
1 parent 7226712 commit 9b169ea
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rpm/disable-bootstrap.patch
@@ -0,0 +1,21 @@
diff --git a/autogen.sh b/autogen.sh
index d73d92d..b823cbe 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,16 +6,6 @@ test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir

-test -z "$VALAC" && VALAC=valac
-if ! $VALAC --version | sed -e 's/^Vala \([0-9]\+\.[0-9]\+\).*$/\1/' | grep -vq '^0\.\([0-9]\|1[0-1]\)$'
-then
- echo "**Error**: You must have valac >= 0.12.0 installed"
- echo " to build vala. Download the appropriate package"
- echo " from your distribution or get the source tarball at"
- echo " http://download.gnome.org/sources/vala/"
- exit 1
-fi
-
# Automake requires that ChangeLog exist.
touch ChangeLog
mkdir -p m4
133 changes: 133 additions & 0 deletions rpm/vala.changes
@@ -0,0 +1,133 @@
* Mon Dec 10 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.16.1
- Updated packaging.

* Tue Jun 26 2012 Marko Saukko <sage@merproject.org> - 0.16.1
- Update to version 0.16.1

* Mon Nov 14 2011 Marko Saukko <marko.saukko@cybercom.com> - 0.12.0
- Removed gtk2+ dependency added glib2 dep.

* Mon Apr 11 2011 Yan Yin <yan.yin@intel.com> - 0.12.0
- Update to 0.12.0 (BMC #15685)

* Wed Jan 19 2011 Yan Yin <yan.yin@intel.com> - 0.11.4
- Update to 0.11.4 (BMC #12618)

* Thu Dec 09 2010 Yan Yin <yan.yin@intel.com> - 0.11.2
- Update to 0.11.2 (BMC #11093 )

* Mon Aug 9 2010 Quanxian Wang <quanxian.wang@intel.com> - 0.9.4
- Update to 0.9.4

* Tue Jun 22 2010 Yan Yin <yan.yin@intel.com> - 0.9.2
- Update to 0.9.2

* Fri Apr 02 2010 Vivian Zhang <vivian.zhang@intel.com> - 0.8.0
- Update to 0.8.0

* Tue Feb 23 2010 Anas Nashif <anas.nashif@intel.com> - 0.7.9
- Use spectacle

* Sun Jan 31 2010 Vivian Zhang <vivian.zhang@intel.com> - 0.7.9
- Update to 0.7.9

* Fri Jan 01 2010 Anas Nashif <anas.nashif@intel.com> - 0.7.8
- Update to 0.7.8

* Mon Apr 27 2009 Vivian Zhang <vivian.zhang@intel.com> 0.7.1
- Update to 0.7.1

* Fri Feb 27 2009 Zhang, Qiang Z<qiang.z.zhang@intel.com> 0.5.7
- Update to 0.5.7

* Mon Feb 16 2009 Vivian Zhang <vivian.zhang@intel.com> 0.5.6
- Update to 0.5.6

* Sun Nov 23 2008 Michel Salim <salimma@fedoraproject.org> - 0.5.1-1
- Update to 0.5.1
- Remove BR:emacs emacs-el devhelp
- Remove Requires: gnome-common
- Mark man as %doc

* Fri Aug 22 2008 Michel Salim <salimma@fedoraproject.org> - 0.3.5-1
- Update to 0.3.5

* Tue Jul 15 2008 Michel Salim <salimma@fedoraproject.org> - 0.3.4-2
- Add vala-mode for editing Vala code in Emacs

* Tue Jul 1 2008 Lennart Poettering <lpoetter@redhat.com> - 0.3.4-1
- Update to 0.3.4

* Wed Jun 4 2008 Michel Salim <salimma@fedoraproject.org> - 0.3.3-1
- Update to 0.3.3

* Fri May 16 2008 Michel Salim <salimma@fedoraproject.org> - 0.3.2-1
- Update to 0.3.2

* Thu Apr 10 2008 Michel Salim <salimma@fedoraproject.org> - 0.2.0-1
- Update to 0.2.0

* Wed Mar 5 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.7-1
- Update to 0.1.7
- -tool subpackage now requires gnome-common, intltool and libtoolize
for out-of-the-box vala-gen-project support

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.6-2
- Autorebuild for GCC 4.3

* Sat Jan 19 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.6-1
- Update to 0.1.6
- Revert vapi addition, needed declarations have been inlined (r846)
- Rename -docs subpackage to -doc, to comply with guidelines

* Tue Jan 15 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.5-5
- Manually add Gee vapi file to package (bz #428692)

* Tue Dec 4 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.5-4
- Backport patch to autodetect location of automake shared files

* Tue Dec 4 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.5-3
- Add build dependency on gtk2-devel

* Tue Dec 4 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.5-2
- Enable project generator tool

* Tue Nov 27 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.5-1
- Update to 0.1.5

* Sun Nov 11 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.4-2
- Add build dependency on devhelp

* Fri Oct 19 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.4-1
- Update to 0.1.4
- Put newly-added documentation in its own subpackage (depends on devhelp)

* Mon Sep 17 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.3-5
- vapigen subpackage: add missing Require: on perl-XML-Twig

* Sat Sep 8 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.3-4
- Split -vapigen subpackage. It is functionally self-contained and the license
is more restricted
- Updated license declarations

* Wed Sep 5 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.3-3
- Licensing and URL updates

* Tue Sep 4 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.3-2
- Enable binding generation tools

* Sun Sep 2 2007 Michel Salim <salimma@fedoraproject.org> - 0.1.3-1
- Update to 0.1.3

* Sun Mar 25 2007 Michel Salim <salimma@fedoraproject.org> - 0.0.8-1
- Update to 0.0.8

* Wed Mar 7 2007 Michel Salim <salimma@fedoraproject.org> - 0.0.7-1
- Update to 0.0.7

* Wed Feb 28 2007 Michel Salim <salimma@fedoraproject.org> - 0.0.6-1
- Update to 0.0.6

* Mon Nov 6 2006 Michel Salim <salimma@fedoraproject.org> - 0.0.5-1
- Initial package

162 changes: 162 additions & 0 deletions rpm/vala.spec
@@ -0,0 +1,162 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.26
#

Name: vala

# >> macros
# << macros

Summary: A modern programming language for GNOME
Version: 0.16.1
Release: 1
Group: Development/Languages
License: LGPLv2+ and BSD
URL: http://live.gnome.org/Vala
Source0: http://download.gnome.org/sources/vala/0.16/vala-%{version}.tar.xz
Source100: vala.yaml
Patch0: disable-bootstrap.patch
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: flex
BuildRequires: bison

%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 doc
Summary: Documentation for %{name}
License: LGPLv2+
Group: Documentation
Requires: %{name} = %{version}-%{release}
Requires: devhelp

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


%package tools
Summary: Tools for creating projects and bindings for %{name}
License: LGPLv2+
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
Requires: gnome-common
Requires: intltool
Requires: libtool

%description tools
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 tools to generate Vala projects, as well as API bindings
from existing C libraries, allowing access from Vala programs.


%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description 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.

This package contains development files for %{name}. This is not necessary for
using the %{name} compiler.


%prep
%setup -q -n %{name}-%{version}/%{name}

# disable-bootstrap.patch
%patch0 -p1
# >> setup
# << setup

%build
# >> build pre
%autogen
# << build pre

%configure --disable-static \
--enable-vapigen

make %{?jobs:-j%jobs}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install

# >> install post
# << install post

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
# >> files
%doc COPYING
%{_bindir}/valac
%{_bindir}/valac-*
%{_bindir}/vala
%{_bindir}/vala-*
%{_datadir}/vala*
%{_libdir}/libvala*.so.*
%{_mandir}/*/valac*
# << files

%files doc
%defattr(-,root,root,-)
# >> files doc
%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS
# << files doc

%files tools
%defattr(-,root,root,-)
# >> files tools
%{_bindir}/*gen*
%{_bindir}/vapicheck*
%{_libdir}/vala*
%{_mandir}/*/*gen*
# << files tools

%files devel
%defattr(-,root,root,-)
# >> files devel
%{_includedir}/vala*
%{_libdir}/libvala*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/pkgconfig/*.pc
%{_datadir}/aclocal/*
# << files devel
80 changes: 80 additions & 0 deletions rpm/vala.yaml
@@ -0,0 +1,80 @@
Name: vala
Summary: A modern programming language for GNOME
Version: 0.16.1
Release: 1
Group: Development/Languages
License: LGPLv2+ and BSD
URL: http://live.gnome.org/Vala
Sources:
- http://download.gnome.org/sources/vala/0.16/vala-%{version}.tar.xz
Patches:
- disable-bootstrap.patch
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.
PkgBR:
- flex
- bison
PkgConfigBR:
- glib-2.0
SetupOptions: -q -n %{name}-%{version}/%{name}
Configure: configure
ConfigOptions:
- --enable-vapigen
Builder: make
SubPackages:
- Name: doc
Summary: Documentation for %{name}
Group: Documentation
License: LGPLv2+
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.
This package contains documentation in a devhelp HTML book.
Requires:
- devhelp

- Name: tools
Summary: Tools for creating projects and bindings for %{name}
Group: Development/Languages
License: LGPLv2+
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.
This package contains tools to generate Vala projects, as well as API bindings
from existing C libraries, allowing access from Vala programs.
Requires:
- gnome-common
- intltool
- libtool

- Name: devel
Summary: Development files for %{name}
Group: Development/Libraries
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.
This package contains development files for %{name}. This is not necessary for
using the %{name} compiler.

0 comments on commit 9b169ea

Please sign in to comment.