You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "arshadmohammad (via GitHub)" <gi...@apache.org> on 2025/04/15 19:24:26 UTC

[PR] [Feature] Add RPM generation support [seatunnel]

arshadmohammad opened a new pull request, #9181:
URL: https://github.com/apache/seatunnel/pull/9181

   Pass -Drpm.build.disable=false to enable RPM generation
   
   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/seatunnel/issues).
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   -->
   
   ### Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released SeaTunnel versions or within the unreleased branches such as dev.
   If no, write 'No'.
   If you are adding/modifying connector documents, please follow our new specifications: https://github.com/apache/seatunnel/issues/4544.
   -->
   
   
   ### How was this patch tested?
   
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   If you are adding E2E test cases, maybe refer to https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/resources/mysqlcdc_to_mysql.conf, here is a good example.
   -->
   
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
   * [ ] Update the [`release-note`](https://github.com/apache/seatunnel/blob/dev/release-note.md).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#issuecomment-2817561863

   Thanks @arshadmohammad ! I think we should add a test case for this. There are some example you can follow. https://github.com/apache/seatunnel/blob/dev/.github/workflows/backend.yml#L651


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #9181: [Feature] Add RPM generation support
URL: https://github.com/apache/seatunnel/pull/9181


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#discussion_r2051917592


##########
seatunnel-dist/pom.xml:
##########
@@ -68,6 +73,112 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>postinstall_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postinstall.sh">#!/bin/sh
+                                    mkdir -p ${rpm.stack.root}/current
+                                    ln -sfn ${rpm.stack.root}/${rpm.version}/seatunnel ${rpm.stack.root}/current
+                                    chmod 755 ${rpm.stack.root}/${rpm.version}/seatunnel/bin/*.sh
+                                    chmod 755 /etc/seatunnel/conf/*.sh</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>postremove_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postremove.sh">#!/bin/sh
+                                    rm -rf ${rpm.stack.root}/current/seatunnel
+                                    rm -rf ${rpm.stack.root}/${rpm.version}</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>rpm-maven-plugin</artifactId>

Review Comment:
   Some question:
   1. Do we need users to manually build rpm packages at present?
   2. Can the corresponding documentation be added?
   3. Can we push rpm to some third-party repositories in the future? For example, EPEL?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "shashwatsai (via GitHub)" <gi...@apache.org>.
shashwatsai commented on PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#issuecomment-2812185861

   LGTM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "shashwatsai (via GitHub)" <gi...@apache.org>.
shashwatsai commented on code in PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#discussion_r2048325534


##########
seatunnel-dist/pom.xml:
##########
@@ -68,6 +73,112 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>postinstall_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postinstall.sh">#!/bin/sh
+                                    mkdir -p ${rpm.stack.root}/current
+                                    ln -sfn ${rpm.stack.root}/${rpm.version}/seatunnel ${rpm.stack.root}/current
+                                    chmod 755 ${rpm.stack.root}/${rpm.version}/seatunnel/bin/*.sh
+                                    chmod 755 /etc/seatunnel/conf/*.sh</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>postremove_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postremove.sh">#!/bin/sh
+                                    rm -rf ${rpm.stack.root}/current/seatunnel
+                                    rm -rf ${rpm.stack.root}/${rpm.version}</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>rpm-maven-plugin</artifactId>
+                <version>2.3.0</version>
+                <executions>
+                    <execution>
+                        <id>generate-rpm</id>
+                        <goals>
+                            <goal>rpm</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <group>Development</group>
+                            <name>seatunnel</name>
+                            <version>${project.version}</version>
+                            <release>${rpm.release.number}</release>
+                            <needarch>x86_64</needarch>
+                            <group>Application/Java</group>
+                            <defaultFilemode>644</defaultFilemode>
+                            <defaultDirmode>755</defaultDirmode>
+                            <defaultUsername>root</defaultUsername>
+                            <defaultGroupname>root</defaultGroupname>
+                            <autoRequires>false</autoRequires>
+                            <disabled>${rpm.build.disable}</disabled>
+                            <mappings>
+                                <mapping>
+                                    <directory>${rpm.stack.root}/${rpm.version}/seatunnel/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/</location>
+                                            <excludes>
+                                                <exclude>config/**</exclude>
+                                            </excludes>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/etc/seatunnel/conf/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/config/</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/usr/sbin</directory>
+                                    <filemode>755</filemode>
+                                    <username>root</username>
+                                    <groupname>root</groupname>
+                                    <directoryIncluded>false</directoryIncluded>
+                                    <sources>
+                                        <source>
+                                            <location>${project.basedir}/sbin/seatunnel</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                            </mappings>
+                            <postinstallScriptlet>

Review Comment:
   should we have a preInstallScriptlet, /usr/bigtop, which is defined as an rpm root, may not be present, 
   
   ```
   <preInstallScriptlet>
     <![CDATA[
     #!/bin/bash
     mkdir -p /usr/bigtop
     ]]>
   </preInstallScriptlet>
   ```        



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on code in PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#discussion_r2048408203


##########
seatunnel-dist/pom.xml:
##########
@@ -68,6 +73,112 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>postinstall_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postinstall.sh">#!/bin/sh
+                                    mkdir -p ${rpm.stack.root}/current
+                                    ln -sfn ${rpm.stack.root}/${rpm.version}/seatunnel ${rpm.stack.root}/current
+                                    chmod 755 ${rpm.stack.root}/${rpm.version}/seatunnel/bin/*.sh
+                                    chmod 755 /etc/seatunnel/conf/*.sh</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>postremove_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postremove.sh">#!/bin/sh
+                                    rm -rf ${rpm.stack.root}/current/seatunnel
+                                    rm -rf ${rpm.stack.root}/${rpm.version}</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>rpm-maven-plugin</artifactId>
+                <version>2.3.0</version>
+                <executions>
+                    <execution>
+                        <id>generate-rpm</id>
+                        <goals>
+                            <goal>rpm</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <group>Development</group>
+                            <name>seatunnel</name>
+                            <version>${project.version}</version>
+                            <release>${rpm.release.number}</release>
+                            <needarch>x86_64</needarch>
+                            <group>Application/Java</group>
+                            <defaultFilemode>644</defaultFilemode>
+                            <defaultDirmode>755</defaultDirmode>
+                            <defaultUsername>root</defaultUsername>
+                            <defaultGroupname>root</defaultGroupname>
+                            <autoRequires>false</autoRequires>
+                            <disabled>${rpm.build.disable}</disabled>
+                            <mappings>
+                                <mapping>
+                                    <directory>${rpm.stack.root}/${rpm.version}/seatunnel/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/</location>
+                                            <excludes>
+                                                <exclude>config/**</exclude>
+                                            </excludes>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/etc/seatunnel/conf/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/config/</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/usr/sbin</directory>
+                                    <filemode>755</filemode>
+                                    <username>root</username>
+                                    <groupname>root</groupname>
+                                    <directoryIncluded>false</directoryIncluded>
+                                    <sources>
+                                        <source>
+                                            <location>${project.basedir}/sbin/seatunnel</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                            </mappings>
+                            <postinstallScriptlet>

Review Comment:
   During the installation of the RPM, if the rpm.stack.root directory (which is configurable but defaults to /usr/bigtop) does not exist, the yum install command will create it and then copy the necessary files and folders into it. Since we access the rpm.stack.root after the installation, it is guaranteed that the stack root will always be present.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on code in PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#discussion_r2048573043


##########
seatunnel-dist/pom.xml:
##########
@@ -68,6 +73,112 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>postinstall_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postinstall.sh">#!/bin/sh
+                                    mkdir -p ${rpm.stack.root}/current
+                                    ln -sfn ${rpm.stack.root}/${rpm.version}/seatunnel ${rpm.stack.root}/current
+                                    chmod 755 ${rpm.stack.root}/${rpm.version}/seatunnel/bin/*.sh
+                                    chmod 755 /etc/seatunnel/conf/*.sh</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>postremove_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postremove.sh">#!/bin/sh
+                                    rm -rf ${rpm.stack.root}/current/seatunnel
+                                    rm -rf ${rpm.stack.root}/${rpm.version}</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>rpm-maven-plugin</artifactId>
+                <version>2.3.0</version>
+                <executions>
+                    <execution>
+                        <id>generate-rpm</id>
+                        <goals>
+                            <goal>rpm</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <group>Development</group>
+                            <name>seatunnel</name>
+                            <version>${project.version}</version>
+                            <release>${rpm.release.number}</release>
+                            <needarch>x86_64</needarch>
+                            <group>Application/Java</group>
+                            <defaultFilemode>644</defaultFilemode>
+                            <defaultDirmode>755</defaultDirmode>
+                            <defaultUsername>root</defaultUsername>
+                            <defaultGroupname>root</defaultGroupname>
+                            <autoRequires>false</autoRequires>
+                            <disabled>${rpm.build.disable}</disabled>
+                            <mappings>
+                                <mapping>
+                                    <directory>${rpm.stack.root}/${rpm.version}/seatunnel/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/</location>
+                                            <excludes>
+                                                <exclude>config/**</exclude>
+                                            </excludes>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/etc/seatunnel/conf/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/config/</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/usr/sbin</directory>
+                                    <filemode>755</filemode>
+                                    <username>root</username>
+                                    <groupname>root</groupname>
+                                    <directoryIncluded>false</directoryIncluded>
+                                    <sources>
+                                        <source>
+                                            <location>${project.basedir}/sbin/seatunnel</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                            </mappings>
+                            <postinstallScriptlet>

Review Comment:
   Sure, I will add the documentation later as part of resolving task https://github.com/apache/seatunnel/issues/9196



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#issuecomment-3226277396

   This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "shashwatsai (via GitHub)" <gi...@apache.org>.
shashwatsai commented on code in PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#discussion_r2048502886


##########
seatunnel-dist/pom.xml:
##########
@@ -68,6 +73,112 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <id>postinstall_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postinstall.sh">#!/bin/sh
+                                    mkdir -p ${rpm.stack.root}/current
+                                    ln -sfn ${rpm.stack.root}/${rpm.version}/seatunnel ${rpm.stack.root}/current
+                                    chmod 755 ${rpm.stack.root}/${rpm.version}/seatunnel/bin/*.sh
+                                    chmod 755 /etc/seatunnel/conf/*.sh</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>postremove_script</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <target>
+                                <echo append="false" file="${project.build.directory}/postremove.sh">#!/bin/sh
+                                    rm -rf ${rpm.stack.root}/current/seatunnel
+                                    rm -rf ${rpm.stack.root}/${rpm.version}</echo>
+                            </target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>rpm-maven-plugin</artifactId>
+                <version>2.3.0</version>
+                <executions>
+                    <execution>
+                        <id>generate-rpm</id>
+                        <goals>
+                            <goal>rpm</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            <group>Development</group>
+                            <name>seatunnel</name>
+                            <version>${project.version}</version>
+                            <release>${rpm.release.number}</release>
+                            <needarch>x86_64</needarch>
+                            <group>Application/Java</group>
+                            <defaultFilemode>644</defaultFilemode>
+                            <defaultDirmode>755</defaultDirmode>
+                            <defaultUsername>root</defaultUsername>
+                            <defaultGroupname>root</defaultGroupname>
+                            <autoRequires>false</autoRequires>
+                            <disabled>${rpm.build.disable}</disabled>
+                            <mappings>
+                                <mapping>
+                                    <directory>${rpm.stack.root}/${rpm.version}/seatunnel/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/</location>
+                                            <excludes>
+                                                <exclude>config/**</exclude>
+                                            </excludes>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/etc/seatunnel/conf/</directory>
+                                    <sources>
+                                        <source>
+                                            <location>${project.build.directory}/apache-seatunnel-${project.version}-bin/apache-seatunnel-${project.version}/config/</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                                <mapping>
+                                    <directory>/usr/sbin</directory>
+                                    <filemode>755</filemode>
+                                    <username>root</username>
+                                    <groupname>root</groupname>
+                                    <directoryIncluded>false</directoryIncluded>
+                                    <sources>
+                                        <source>
+                                            <location>${project.basedir}/sbin/seatunnel</location>
+                                        </source>
+                                    </sources>
+                                </mapping>
+                            </mappings>
+                            <postinstallScriptlet>

Review Comment:
   thanks for the clarification, if we can accommodate in RPM installation guide, it would be helpulf, -Drpm.stack.root=/usr/<rpmroot>



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#issuecomment-2808547997

   By default rpm generation is disabled. Pass -Drpm.build.disable=false to enable RPM generation
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature] Add RPM generation support [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #9181:
URL: https://github.com/apache/seatunnel/pull/9181#issuecomment-3203487447

   This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org