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
|
#!/usr/bin/python
from distutils.core import setup
import re
import os
verpat = re.compile("VERSION *= *\"(.*)\"")
data = open("bm").read()
m = verpat.search(data)
if not m:
sys.exit("error: can't find VERSION")
VERSION = m.group(1)
bash_dir = "share/bash-completion/completions"
man_dir = "share/man"
setup(name="bm",
version = VERSION,
description = "BuildManager - rpm package building helper",
author = "Gustavo Niemeyer, Papoteur",
author_email = "niemeyer@conectiva.com, papoteur@mageialinux-online.org",
url = "http://gitweb.mageia.org/software/build-system/bm/",
license = "GPLv2",
long_description =
"""\
BuildManager, or bm, is a program that wraps and extends rpm while building
packages. Its features allow one to batch process thousand of RPMS at once,
controling logs, rpm and srpm moving, filtering the list of files, ignoring
given packages, completely cleaning the build directories, and many other
features.
""",
data_files=[
(bash_dir, ["bash-completion/bm"]),
(os.path.join(man_dir, "man8"), ["man/bm.8"]),
],
packages = ["BuildManager"],
scripts = ["bm", "bmclean"],
)
|