blob: 9025f688fc752a77718db490106a4ade0de04f0d [file] [log] [blame]
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.scada.deploy</groupId>
<artifactId>org.eclipse.scada.deploy.packages.common</artifactId>
<version>0.3.0.M7</version>
<relativePath>../../common</relativePath>
</parent>
<groupId>org.eclipse.scada.deploy</groupId>
<artifactId>org.eclipse.scada-centos6</artifactId>
<packaging>pom</packaging>
<description>
Eclipse NeoSCADA base package
</description>
<properties>
<srcBase>${basedir}/../../src</srcBase>
</properties>
<profiles>
<profile>
<!--rpm must be a profile since it requires 'rpmbuild' on the target machine -->
<id>rpm</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<configuration>
<copyright>EPL</copyright>
<distribution>Eclipse NeoSCADA %{version} (Incubation)</distribution>
<group>System Environment/Base</group>
<changelogFile>../rpm/changelog</changelogFile>
</configuration>
<executions>
<execution>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
<phase>compile</phase>
<configuration>
<provides>
<provide>org.eclipse.scada-distribution</provide>
</provides>
<requires>
<require>org.eclipse.scada = %{version}</require>
<!-- for adding the user with "adduser" -->
<require>shadow-utils</require>
<!-- # for the "getent" command -->
<require>glibc-common</require>
<!-- for jsvc -->
<require>jakarta-commons-daemon-jsvc</require>
<require>openssh-clients</require>
<require>perl</require>
<require>jre &gt;= 1.7.0</require>
</requires>
<defaultUsername>root</defaultUsername>
<defaultGroupname>root</defaultGroupname>
<mappings>
<mapping>
<directory>/etc/default</directory>
<configuration>true</configuration>
<directoryIncluded>false</directoryIncluded>
<sources>
<source>
<location>${srcBase}/default/eclipsescada.common</location>
<destination>eclipsescada</destination>
</source>
</sources>
</mapping>
<mapping>
<directory>/usr/share/perl5/EclipseSCADA</directory>
<filemode>0755</filemode>
<sources>
<source>
<location>${srcBase}/perl/EclipseSCADA</location>
</source>
</sources>
</mapping>
</mappings>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile> <!-- rpm -->
</profiles>
</project>