File: packages

package info (click to toggle)
yada 0.34
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,160 kB
  • ctags: 83
  • sloc: perl: 3,554; makefile: 26; sh: 12
file content (100 lines) | stat: -rw-r--r-- 2,909 bytes parent folder | download
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
# packages,v 1.20 2003/07/24 16:21:28 dexter Exp

# debian/packages for yada
# Copyright 1999 Charles Briscoe-Smith.  Licenced according to the GNU GPL.
# Copyright 1999-2003 Piotr Roszatycki.

%define with_doc_lyx %{?$with_doc_lyx:1}%{!?$with_doc_lyx:0}
%define with_templates %{?$with_templates:1}%{!?$with_templates:0}

%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

Source: yada
Section: devel
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Upstream-Authors: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Home-Page: <URI:http://yada.alioth.debian.org/>
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 1999 Charles Briscoe-Smith
 Copyright 1999-2003 Piotr Roszatycki
 .
%`sed -e 's/^$/./' -e 's/^/ /' debian/license.GPL`
Build: sh
 echo test build
%include packages.after
%include packages.before
 for pod in *.pod; do
     eval pod2man $(head -n1 $pod | sed 's/^# pod2man //') $pod \
         > $(basename $pod .pod).$(head -n1 $pod | sed -e 's/.*--section=//' -e 's/ .*//')
 done
Clean: sh
 rm -f *.[1-9]* || true
 # This shouldn't find its way into the source package...
 cd doc && make clean || true
%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

# 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 tool.
Install: sh
 yada install -script debian/yada
 yada install -man yada.1
 yada install -man packages.7

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 debian/*.syntax
%if %{with_doc_lyx}
 yada install -doc doc/yada.lyx
%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