You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
6.4 KiB
122 lines
6.4 KiB
<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/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>net.sourceforge.subsonic</groupId>
|
|
<artifactId>subsonic-installer-rpm</artifactId>
|
|
<packaging>pom</packaging>
|
|
<name>Subsonic Installer for RPM</name>
|
|
|
|
<parent>
|
|
<groupId>net.sourceforge.subsonic</groupId>
|
|
<artifactId>subsonic</artifactId>
|
|
<version>6.0.1</version>
|
|
</parent>
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
<id>rpm</id>
|
|
<activation>
|
|
<property>
|
|
<name>rpm</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>create</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<doCheck>false</doCheck>
|
|
<doUpdate>false</doUpdate>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>rpm</id>
|
|
<phase>compile</phase>
|
|
<configuration>
|
|
<target>
|
|
<echo>Creating RPM package...</echo>
|
|
|
|
<copy file="${basedir}/src/subsonic.spec"
|
|
todir="${project.build.directory}/rpm/SPECS">
|
|
<filterset>
|
|
<filter token="VERSION" value="${project.version}"/>
|
|
<filter token="BUILD_NUMBER" value="${buildNumber}"/>
|
|
</filterset>
|
|
</copy>
|
|
|
|
<!--Remove ".beta" suffix from version tag.-->
|
|
<replace file="${project.build.directory}/rpm/SPECS/subsonic.spec">
|
|
<replacetoken>.beta1</replacetoken>
|
|
<replacetoken>.beta2</replacetoken>
|
|
<replacetoken>.beta3</replacetoken>
|
|
<replacetoken>.beta4</replacetoken>
|
|
</replace>
|
|
|
|
<mkdir dir="${project.build.directory}/rpm/RPMS/i386"/>
|
|
|
|
<copy file="${basedir}/src/etc/init.d/subsonic"
|
|
todir="${project.build.directory}/rpm/buildroot/etc/init.d"/>
|
|
<copy file="${basedir}/src/etc/sysconfig/subsonic"
|
|
todir="${project.build.directory}/rpm/buildroot/etc/sysconfig"/>
|
|
<copy file="../subsonic-booter/src/main/script/subsonic.sh"
|
|
todir="${project.build.directory}/rpm/buildroot/usr/share/subsonic"/>
|
|
<copy file="../subsonic-booter/target/subsonic-booter-jar-with-dependencies.jar"
|
|
todir="${project.build.directory}/rpm/buildroot/usr/share/subsonic"/>
|
|
<copy file="../subsonic-main/target/subsonic.war"
|
|
todir="${project.build.directory}/rpm/buildroot/usr/share/subsonic"/>
|
|
<copy file="../subsonic-transcode/linux/ffmpeg"
|
|
todir="${project.build.directory}/rpm/buildroot/var/subsonic/transcode"/>
|
|
<copy file="../subsonic-transcode/linux/lame"
|
|
todir="${project.build.directory}/rpm/buildroot/var/subsonic/transcode"/>
|
|
|
|
<exec executable="rpmbuild">
|
|
<arg value="-bb"/>
|
|
<arg value="--buildroot"/>
|
|
<arg value="${project.build.directory}/rpm/buildroot"/>
|
|
<arg value="--define"/>
|
|
<arg value="_topdir ${project.build.directory}/rpm"/>
|
|
<arg value="--target"/>
|
|
<arg value="i386"/>
|
|
<arg value="${project.build.directory}/rpm/SPECS/subsonic.spec"/>
|
|
</exec>
|
|
|
|
<copy tofile="${project.build.directory}/subsonic-${project.version}.rpm">
|
|
<fileset dir="${project.build.directory}/rpm/RPMS/i386">
|
|
<include name="*.rpm"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<exec executable="rpmlint">
|
|
<arg value="${project.build.directory}/subsonic-${project.version}.rpm"/>
|
|
</exec>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|
|
|