summaryrefslogtreecommitdiff
path: root/examples/rpm_packaging/simple/SConstruct
blob: 77c9d9b641700fa65296a3d32a073265ae9faf48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os

install_dir  = os.path.join( ARGUMENTS.get('prefix', '/'), 'bin/' )
prog_install = Install( install_dir , Program( 'main.c') )

Tag( prog_install, unix_attr = '(0755, root, users)' )

Package( projectname    = 'foo',
         version        = '1.2.3',
         type           = 'rpm',
         license        = 'gpl',
         summary        = 'bla bla bla',
         packageversion = 0,
         x_rpm_Group    = 'Application/office',
         description    = 'this should be reallly really long',
         source_url     = 'http://foo.org/foo-1.2.3.tar.gz',
         source         = [ prog_install ],
        )

Alias( 'install', prog_install )