1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
# $Id: /svn/trunk/debian/packages 369 2007-10-28T22:52:36.010328Z dexter $
# debian/packages for yada
# Copyright (C) 1999 Charles Briscoe-Smith. Licenced according to the GNU GPL.
# Copyright (C) 1999-2007 Piotr Roszatycki.
# If the debian/rules or debian/control file is missing, rebuild the file:
#
# $ yada rebuild control
# $ yada rebuild rules
# Environment variables:
# compiles documentation from XML DocBook format
# with_docbook=%{with_docbook}
# installs documentation in XML DocBook format
# with_doc_xml=%{with_doc_xml}
# installs debconf templates
# with_templates=%{with_templates}
# Other macros:
%define yada_doc_version_with_packages_7_manpage_moved_to_yada 0.26.0.1
%define yada_version_splitted_to_yada_doc 0.16
%define PATCHES patches/*.diff
%define PERL perl
%define TEST_MORE_LINES \
echo line 1 \
echo line 2
%define TEST_NESTED_SHELL_MACRO %`echo "{%{PERL}}"`
Source: yada
Section: devel
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Upstream-Authors: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.7.2
Homepage: http://yada.alioth.debian.org/
Vcs-Browser: http://svn.debian.org/wsvn/yada
Vcs-Svn: svn://svn.debian.org/yada/
Description: Yet Another Debianisation Aid
YADA is a Debian packaging helper. It parses a special file,
debian/packages, in a source package, and generates an appropriate
debian/rules to control building of the package.
Patches: %{PATCHES}
Copyright: GPL
Copyright (C) 1999 Charles Briscoe-Smith
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Piotr
Roszatycki
.
%`sed -e 's/^$/./' -e 's/^/ /' debian/license.GPL`
%if %{with_docbook}
Build-Depends: docbook-utils, elinks, tidy
%endif
Build: bash
echo test build
%include packages.after
%include packages.before
for pod in man/*.pod; do
eval pod2man $(head -n1 $pod | sed 's/^# pod2man //') $pod \
> ${pod%.pod}.$(head -n1 $pod | sed -e 's/.*--section=//' -e 's/ .*//')
done
for pod in man/pl/*.pod; do
eval pod2man $(head -n1 $pod | sed 's/^# pod2man //') $pod \
| iconv -f utf-8 -t iso8859-2 \
> ${pod%.pod}.$(head -n1 $pod | sed -e 's/.*--section=//' -e 's/ .*//')
done
%if %{with_docbook}
pushd doc
make
popd
%endif
Clean: bash
rm -f man/*.[1-9]* || true
# This shouldn't find its way into the source package...
pushd doc
make clean || true
%if %{with_docbook}
make distclean || true
%endif
popd
%if 1
echo test 1
%if 2
echo test 2
%if 0
echo test 0
%else
echo test -0
%endif
echo test 2
%else
echo test -2
%endif
echo test 1
%else
echo test -1
%endif
echo test "%{TEST_NESTED_SHELL_MACRO}"
# Packages files can contain comments, like this one.
Package: yada
Architecture: all
Depends: dpkg-dev, file, patch
%include packages.yada.depends
Recommends: yada-doc
Suggests: bzip2
Conflicts: yada-doc (<< %{yada_doc_version_with_packages_7_manpage_moved_to_yada})
Replaces: yada-doc (<< %{yada_doc_version_with_packages_7_manpage_moved_to_yada})
Description: Yet Another Debianisation Aid
This package provides YADA script.
.
The /usr/bin/yada script can be also copied as source package's debian/yada
file if this package won't be available on system for package building.
Install: sh
yada install -script debian/yada
yada install -man man/yada.1
yada install -man man/packages.7
for lang in pl; do
yada install -man -lang $lang man/$lang/yada.1
yada install -man -lang $lang man/$lang/packages.7
done
Package: yada-doc
Architecture: all
Suggests: yada
Conflicts: yada (<< %{yada_version_splitted_to_yada_doc})
Description: Yet Another Debianisation Aid - documentation and examples
This package provides documentation for YADA and some examples of
debian/packages files.
Install: sh
yada install -doc doc/yada.txt doc/yada.pdf debian/*.syntax
%if %{with_doc_xml}
yada install -doc doc/yada.xml
%endif
yada install -doc -subdir examples examples/*
yada install -doc -subdir examples/yada debian/packages debian/packages.* debian/%{PATCHES}
echo test "?" %{?PERL:ok} %{?ERR:err}
echo test "!?" %{!?ERR:ok} %{!?PERL:err}
echo %{TEST_MORE_LINES}
%include packages.yada.templates
|