Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RPM build to maven build #404

Open
wants to merge 1 commit into
base: papyrus_product
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ target/
.DS_Store
*.zip
*.rpm
!releng/com.zeligsoft.papyrus-cx.axcioma.rcp.rpm/
1 change: 1 addition & 0 deletions releng/com.zeligsoft.dds4ccm.configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<properties>
<tycho.version>2.5.0</tycho.version>
<tycho-extras.version>2.5.0</tycho-extras.version>
<rootdir>${maven.multiModuleProjectDirectory}</rootdir>
<project.build.sourceEncoding>ISO-8859-1
</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Name: papyrus-cx-axcioma
Version: %{version}
Release: %{release}
Summary: An Eclipse Papyrus extension for modeling with AXCIOMA
Group: Development Tools
License: Apache License, Version 2.0
BuildArch: x86_64
URL: https://github.com/ZeligsoftDev/CX4CBDDS
Expand Down
11 changes: 11 additions & 0 deletions releng/com.zeligsoft.papyrus-cx.axcioma.rcp.rpm/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.zeligsoft.papyrus-cx.axcioma.rcp.rpm</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
128 changes: 128 additions & 0 deletions releng/com.zeligsoft.papyrus-cx.axcioma.rcp.rpm/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<artifactId>com.zeligsoft.papyrus-cx.axcioma.rcp.rpm</artifactId>
<parent>
<groupId>com.zeligsoft.dds4ccm</groupId>
<artifactId>com.zeligsoft.dds4ccm.releng</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>
<packaging>rpm</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>build-qualifier</id>
<goals>
<goal>build-qualifier</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-buildtimestamp-jgit</artifactId>
<version>${tycho-extras.version}</version>
</dependency>
</dependencies>
<configuration>
<timestampProvider>jgit</timestampProvider>
<jgit.ignore>
pom.xml
.polyglot.build.properties
</jgit.ignore>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.2.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
</execution>
</executions>
<configuration>
<name>papyrus-cx-axcioma</name>
<projversion>${unqualifiedVersion}</projversion>
<release>${buildQualifier}</release>
<license>Apache 2.0 (c) 2022 Zeligsoft (2009) Limited and others</license>
<group>Development Tools</group>
<icon>../com.zeligsoft.papyrus-cx.axcioma.rcp/icons/papyrus-cx.xpm</icon>
<needarch>true</needarch>
<repackJars>false</repackJars>
<autoProvides>false</autoProvides>
<autoRequires>false</autoRequires>
<summary>An Eclipse Papyrus extension for modeling with AXCIOMA</summary>
<description>Papyrus CX for AXCIOMA is a modelling environment
based on Eclipse Papyrus
for modeling component-based systems built on AXCIOMA according to
the OMG CCM standard.
</description>
<url>https://github.com/ZeligsoftDev/CX4CBDDS</url>
<packager>Zeligsoft (2009) Limited</packager>
<vendor>Zeligsoft (2009) Limited</vendor>
<verifyScriplet>true</verifyScriplet>
<requires>
<require>java-11-openjdk</require>
</requires>
<defineStatements>
<defineStatement>_build_id_links none</defineStatement>
<defineStatement>_invalid_encoding_terminates_build 0</defineStatement>
</defineStatements>
<mappings>
<mapping>
<directory>/opt/papyrus-cx-axcioma/</directory>
<sources>
<source>
<location>../com.zeligsoft.papyrus-cx.axcioma.rcp.product/target/products/com.zeligsoft.papyrus-cx.axcioma.rcp.product/linux/gtk/x86_64/papyrus-cx-axcioma</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/usr/share/applications/</directory>
<sources>
<source>
<location>resources/papyrus-cx-axcioma.desktop</location>
</source>
</sources>
</mapping>
</mappings>
<preinstallScriptlet>
<script>
echo "Installing ${project.name} now"
</script>
</preinstallScriptlet>
<prepareScriplet>
<script>echo "Preparing ${project.name} now"</script>
</prepareScriplet>
<preremoveScriplet>
<script>echo "Pre-remove ${project.name} now"</script>
</preremoveScriplet>
<pretransScriplet>
<script>echo "Pre-trans ${project.name} now"</script>
</pretransScriplet>
<postinstallScriptlet>
<script>echo "Installed ${project.name}"</script>
</postinstallScriptlet>
<postremoveScriplet>
<script>echo "Post-remove ${project.name}"</script>
</postremoveScriplet>
<posttransScriplet>
<script>echo "Post-trans ${project.name}"</script>
</posttransScriplet>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Name=Papyrus CX for AXCIOMA
Comment=Papyrus CX for AXCIOMA
Exec=/opt/papyrus-cx-axcioma/papyrus-cx
Icon=/opt/papyrus-cx-axcioma/icon.xpm
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=false
StartupNotify=true

1 change: 1 addition & 0 deletions releng/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
<module>com.zeligsoft.papyrus-cx.axcioma.rcp</module>
<module>com.zeligsoft.papyrus-cx.axcioma.rcp.feature</module>
<module>com.zeligsoft.papyrus-cx.axcioma.rcp.product</module>
<module>com.zeligsoft.papyrus-cx.axcioma.rcp.rpm</module>
</modules>
</project>