Project

General

Profile

Revision 75e60ab7

ID75e60ab7bec748b5661ba732c18cfcadf1404b04
Parent c482ac76
Child e0c97dab

Added by Francois POIROTTE about 7 years ago

Ajout de la structure de packaging

Change-Id: Idd65bb1f02aa2d6846d15ce92fd4713b9d0e6c45
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2363
Tested-by: Build system <>
Reviewed-by: Francois POIROTTE <>

View differences:

.gitignore
1
*.pyc
2
*.pyo
3
*.egg-info
4
*~
5
*.swp
6
.directory
7
*,cover
8

  
9
.coverage
10
develop-eggs/
11
extend-develop/
12
parts/
13
eggs/
14
*-log.txt
15
.installed.cfg
16
bin/
17
build/
18
dist/
19
.pydevproject
20
.pydevproject.bak
21
.project
22
.settings
23
.noseids
24
doc/apidoc/
25
doc/_build/
26
doc/coverage/
27
i18n/*/LC_MESSAGES/*.mo
28
i18n/*/LC_MESSAGES/*.js
29
src/twisted/plugins/dropin.cache
30

  
Makefile
1
NAME = glpi
2

  
3
all:
4

  
5
include buildenv/Makefile.common.nopython
6

  
7
install: install_pkg
8

  
9
install_pkg: $(INFILES)
10
	-mkdir -p $(DESTDIR)$(DATADIR)/$(NAME)/plugins/vigilo
11
	cp -pr src/* $(DESTDIR)$(DATADIR)/$(NAME)/plugins/vigilo/
12

  
13
clean: clean_common
14

  
15
doc: sphinxdoc
16

  
17
.PHONY: all install install_pkg clean man doc
VERSION.txt
1
4.0
buildenv
1
../buildenv/
buildout.cfg
1
[buildout]
2
extends = buildenv/buildout.nopython.cfg
3
name = vigilo-glpi
4

  
5
# vim: set noexpandtab :
pkg/glpi.redhat.spec
1
%define module  @SHORT_NAME@
2

  
3
Name:       vigilo-%{module}
4
Summary:    Vigilo integration plugin for GLPI
5
Version:    @VERSION@
6
Release:    @RELEASE@%{?dist}
7
Source0:    %{name}-%{version}.tar.gz
8
URL:        http://www.projet-vigilo.org
9
Group:      Applications/System
10
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-build
11
License:    GPLv2
12
Buildarch:  noarch
13

  
14
Requires:   glpi
15
Requires:   vigilo-vigiconf
16

  
17
%description
18
This package provides a plugin that makes it possible to configure Vigilo
19
and deploy new configuration files from GLPI's GUI.
20
This application is part of the Vigilo Project <http://vigilo-project.org>
21

  
22
%prep
23
%setup -q
24

  
25
%build
26

  
27
%install
28
rm -rf $RPM_BUILD_ROOT
29
make install_pkg \
30
    DESTDIR=$RPM_BUILD_ROOT \
31
    SYSCONFDIR=%{_sysconfdir} \
32
    DATADIR=%{_datadir} \
33

  
34

  
35
%clean
36
rm -rf $RPM_BUILD_ROOT
37

  
38
%files
39
%defattr(644,root,root,755)
40
%doc COPYING.txt
41
%{_datadir}/%{module}/plugins/

Also available in: Unified diff