Subversion Repositories ALCASAR

Rev

Rev 2968 | Rev 2990 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2968 Rev 2987
Line 7... Line 7...
7
  - wkhtmltopdf (html to pdf renderer)
7
  - wkhtmltopdf (html to pdf renderer)
8
  - nfdump (collector & processor for netflow data)
8
  - nfdump (collector & processor for netflow data)
9
 
9
 
10
This howto explains how to build RPM of these programs in order to keep the distribution clean
10
This howto explains how to build RPM of these programs in order to keep the distribution clean
11
The compilation options are set in /etc/rpm/macro.d/*
11
The compilation options are set in /etc/rpm/macro.d/*
-
 
12
The .spec & RPM can be test check with the tool "rpmlint"
12
 
13
 
13
****  Prepare the RPM creation structure ***
14
****  Prepare the RPM creation structure ***
14
- upadate your system : urpmi --auto-update
15
- upadate your system : urpmi --auto-update
15
- install the following RPMs : urpmi kernel-userspace-headers rpm-build gengetopt libtool
16
- install the following RPMs : urpmi kernel-userspace-headers rpm-build gengetopt libtool
16
- create directories structure in your home : mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp}
17
- create directories structure in your home : mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp}
Line 28... Line 29...
28
 
29
 
29
INFO : .spec tunning :
30
INFO : .spec tunning :
30
	- add this 1st line : "%define _disable_ld_no_undefined 1" to avoid errors for unused references (ld)
31
	- add this 1st line : "%define _disable_ld_no_undefined 1" to avoid errors for unused references (ld)
31
	- add the line "automake --add-missing" before "make"
32
	- add the line "automake --add-missing" before "make"
32
	- for 64b version, add 2 lines with "lib64" directory on the section removing statics binaries (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
33
	- for 64b version, add 2 lines with "lib64" directory on the section removing statics binaries (rm -rf $RPM_BUILD_ROOT/usr/lib/*.la)
33
	- remove from the archive the unuused files for ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
34
	- remove from the archive the unused files for ALCASAR (wpad.dat, wwwdir, etc. via la directive '%exclude')
34
	- change %make (deprecated) with %make_build and change %makeinstall (deprecated) with %make_install
35
	- change %make (deprecated) with %make_build and change %makeinstall (deprecated) with %make_install
35
 
36
 
36
**** For HAVP ****
37
**** For HAVP ****
37
- install the RPM of clamav-devel
38
- install the RPM of clamav-devel
38
- download, uncompress, and test the compilation of the last version of havp (./configure + make)
39
- download, uncompress, and test the compilation of the last version of havp (./configure + make)