Project

General

Profile

Revision a43ec272

IDa43ec2727aaa600b80b9445bdac12c00e881d867
Parent 98ab9016
Child b00c0ea7

Added by Aurelien BOMPARD about 14 years ago

Packaging

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@2333 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

Makefile
1 1
NAME := vigiboard
2 2
all: build
3 3

  
4
install:
5
	$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES
6
	mkdir -p $(DESTDIR)$(HTTPD_DIR)
7
	ln -f -s $(SYSCONFDIR)/vigilo/vigiboard/vigiboard.conf $(DESTDIR)$(HTTPD_DIR)/
8
	echo $(HTTPD_DIR)/vigiboard.conf >> INSTALLED_FILES
9

  
4 10
include buildenv/Makefile.common
5 11

  
6 12
MODULE := $(NAME)
pkg/vigiboard.mdv.spec
1
%define module  vigiboard
2
%define name    vigilo-%{module}
3
%define version 1.0
4
%define release 1%{?svn}
5

  
6
Name:       %{name}
7
Summary:    Vigilo event board
8
Version:    %{version}
9
Release:    %{release}
10
Source0:    %{module}.tar.bz2
11
URL:        http://www.projet-vigilo.org
12
Group:      System/Servers
13
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-build
14
License:    GPLv2
15

  
16
BuildRequires:   python-setuptools
17
BuildRequires:   python-babel
18

  
19
Requires:   python >= 2.5
20
Requires:   python-setuptools
21
Requires:   vigilo-turbogears
22
Requires:   python-tw.forms
23

  
24
Buildarch:  noarch
25

  
26
# Renommage
27
Obsoletes: vigiboard < 1.0-1
28
Provides:  vigiboard = %{version}-%{release}
29

  
30

  
31

  
32
%description
33
Vigilo event board.
34
This application is part of the Vigilo Project <http://vigilo-project.org>
35

  
36
%prep
37
%setup -q -n %{module}
38

  
39
%build
40
make PYTHON=%{_bindir}/python SYSCONFDIR=%{_sysconfdir}
41

  
42
%install
43
rm -rf $RPM_BUILD_ROOT
44
make install \
45
	DESTDIR=$RPM_BUILD_ROOT \
46
	SYSCONFDIR=%{_sysconfdir} \
47
	PYTHON=%{_bindir}/python
48

  
49
%find_lang %{name}
50

  
51

  
52
%clean
53
rm -rf $RPM_BUILD_ROOT
54

  
55
%files -f %{name}.lang
56
%defattr(-,root,root)
57
%doc COPYING
58
%dir %{_sysconfdir}/vigilo
59
%config(noreplace) %{_sysconfdir}/vigilo/%{module}
60
%{_sysconfdir}/httpd/conf/webapps.d/%{module}.conf
61
%{_bindir}/*
62
%{python_sitelib}/*
63

  
64

  
65
%changelog
66
* Mon Feb 08 2010 Aurelien Bompard <aurelien.bompard@c-s.fr>
67
- initial package
setup.py
1 1
#!/usr/bin/env python
2 2
# -*- coding: utf-8 -*-
3 3
# vim:set expandtab tabstop=4 shiftwidth=4:
4

  
5
import os
6

  
4 7
try:
5 8
    from setuptools import setup, find_packages
6 9
except ImportError:
......
15 18
    'coverage',
16 19
]
17 20

  
21
sysconfdir = os.getenv("SYSCONFDIR", "/etc")
22

  
18 23
setup(
19 24
    name='vigiboard',
20 25
    version='0.1',
......
57 62
        ],
58 63
    },
59 64
    data_files=[
60
        ('/etc/vigilo/vigiboard/', [
65
        (os.path.join(sysconfdir, 'vigilo/vigiboard/'), [
61 66
            'deployment/vigiboard.conf',
62 67
            'deployment/vigiboard.wsgi',
63 68
            'deployment/settings.ini',

Also available in: Unified diff