pax_global_header00006660000000000000000000000064116520221660014513gustar00rootroot0000000000000052 comment=3042a9ef1d37e39bd63b12022df397524b65ee9d rpm-build-vala-0.2/000075500000000000000000000000001165202216600141665ustar00rootroot00000000000000rpm-build-vala-0.2/.gear/000075500000000000000000000000001165202216600151625ustar00rootroot00000000000000rpm-build-vala-0.2/.gear/rules000064400000000000000000000000071165202216600162340ustar00rootroot00000000000000tar: . rpm-build-vala-0.2/rpm-build-vala.macros000064400000000000000000000000371165202216600202100ustar00rootroot00000000000000%_vapidir %_datadir/vala*/vapi rpm-build-vala-0.2/rpm-build-vala.spec000064400000000000000000000016061165202216600176610ustar00rootroot00000000000000Name: rpm-build-vala Version: 0.2 Release: alt1 Summary: RPM helper macros and dependency utils to build Vala packages License: GPL Group: Development/Other Source: %name-%version.tar BuildArch: noarch %description These helper macros and dependency calculation utils facilitate creation of RPM packages containing GObject Introspection files. %prep %setup %install mkdir -p %buildroot{%_rpmlibdir,%_rpmmacrosdir} install -pD -m644 rpm-build-vala.macros %buildroot%_rpmmacrosdir/vala install -pD -m644 vala-files.req.list %buildroot%_rpmlibdir/vala-files.req.list for f in vala.req* vala.prov* ; do install -m755 -p "$f" "%buildroot%_rpmlibdir/$f" done %files %_rpmmacrosdir/vala %_rpmlibdir/vala* %changelog * Wed Oct 26 2011 Alexey Shabalin 0.2-alt1 - update for vala-0.14 and vala-0.16 * Fri Jun 03 2011 Alexey Shabalin 0.1-alt1 - Initial release rpm-build-vala-0.2/vala-files.req.list000064400000000000000000000002421165202216600176720ustar00rootroot00000000000000# vala dirlist for /usr/lib/rpm/files.req /usr/share/vala/vapi vala /usr/share/vala-0.12/vapi vala /usr/share/vala-0.14/vapi vala /usr/share/vala-0.16/vapi vala rpm-build-vala-0.2/vala.prov000075500000000000000000000016701165202216600160300ustar00rootroot00000000000000#!/bin/sh -efu # # Copyright (C) 2011 Alexey Shabalin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # . /usr/lib/rpm/functions [ $# -eq 1 ] && [ -n "$1" -a -z "${1##/*}" ] || { ArgvFileAction "$0" "$@"; exit; } name="$(echo "${1##*/}" | sed 's/.vapi//')" echo "vapi($name)" rpm-build-vala-0.2/vala.prov.files000075500000000000000000000003401165202216600171220ustar00rootroot00000000000000#!/bin/sh -efu while IFS=$'\t' read -r f t; do case "$f" in ${RPM_BUILD_ROOT-}/usr/share/vala*/vapi/*.vapi) ;; *) continue ;; esac case "$t" in *' text'*) echo "$f" ;; *) echo "${0##*/}: $f: $t" >&2 ;; esac done rpm-build-vala-0.2/vala.req000075500000000000000000000025731165202216600156340ustar00rootroot00000000000000#!/bin/sh -efu # # Copyright (C) 2011 Alexey Shabalin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. #. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. # . /usr/lib/rpm/functions reqprov= ValaReq() { local f="$1" out=; shift out="$(cat "$f")" || Fatal "failed to process $f" [ -n "$out" ] || return 0 echo "$out" |while read -r line; do set -- $line case $# in 1) ;; *) Fatal "$f: invalid output: $line" ;; esac case "$1" in *[!A-Za-z0-9_.+-]*) Fatal "$f: invalid output: $line" ;; [A-Za-z0-9_]*) ;; *) Fatal "$f: invalid output: $line" ;; esac if [ $# = 1 ]; then echo "vapi($1)" continue fi done } case "${0##*/}" in vala.req*) reqprov=requires ArgvFileAction ValaReq "$@" ;; *) Fatal "req method not recognized" ;; esac rpm-build-vala-0.2/vala.req.files000075500000000000000000000003401165202216600167230ustar00rootroot00000000000000#!/bin/sh -efu while IFS=$'\t' read -r f t; do case "$f" in ${RPM_BUILD_ROOT-}/usr/share/vala*/vapi/*.deps) ;; *) continue ;; esac case "$t" in *' text'*) echo "$f" ;; *) echo "${0##*/}: $f: $t" >&2 ;; esac done