ES RPM source

I would like to setup up an ElasticSearch rpm project on openSUSE Build
Service https://build.opensuse.org/.
Where can I find the official ES RPM source or the elasticsearch.spec files?

I can't it find on GitHub.

Cheers
Joerg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

the files are automatically created from information in the pom.xml file
when 'mvn package' is called. They are put into the target/ directory.

Out of curiosity: What advantage does using the openSuse Build service have
compared to building the package from the pom.xml

--Alex

On Sun, Oct 20, 2013 at 2:41 PM, Joerg Heinemann heinemannj66@gmail.comwrote:

I would like to setup up an Elasticsearch rpm project on openSUSE Build
Service https://build.opensuse.org/.
Where can I find the official ES RPM source or the elasticsearch.spec
files?

I can't it find on GitHub.

Cheers
Joerg

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Alex,

I don't want to compile ES packuage.
I only want to distribute the official ES as an rpm packet repository with
OBS for a robust and easy to manage integration into openSUSE packet
management.

For building Suse Studio appliances the setup would become much easier.

Joerg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ES packaging is based on Maven, not RPM. Check if

http://duncan.mac-vicar.com/2012/01/26/on-java-maven-jpp-and-rpm/

can give some hints. You have to compile ES packages using the build stack
of OpenSUSE to create a clean solution. JPP seems the way to go.

If there is anybody working on Fedora ES builds, I'd appreciate to get some
info about it. TIA!

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

There exists elasticsearch spec files for fedora/rhel based systems made by
tavisto on

On the other hand ElasticSearch has build official rpm packuages during the
last official releases.
My first goal is to define robust install, postinstall and remove
procedures inside the spec files and systemd integration.

I would like to be close as possible to official ElasticSearch rpm
definitions.
Is there any way to export the definitions from pom.xml to rpm sepec file
format?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

If you improve the systemd integration, I'd be more than happy to include
this upstream. In order to give you a little orientation, how the packaging
process works using mvn

  • Check out the src/rpm directory in the source repo
  • src/rpm/init.d contains an init script, which is not important if you are
    interested in systemd
  • src/rpm/scripts contains a postinstall, preremove, preinstall and
    preremove script, where the systemd registration is done in postinstall and
    disabled in the preremove script
  • src/rpm/sysconfig/elasticsearch is the sysconfig configuration
  • src/rpm/systemd/ contains elasticsearch.conf and elasticsearch.service
    files

You can run mvn -DskipTests=true rpm:rpm to create an RPM/generate the spec
files. The spec will be put
into target/rpm/elasticsearch/SPECS/elasticsearch.spec

If you need to built for a specific version just use "git checkout v0.90.5"
instead of building RPMs of master.

Hope this helps for a first start.

--Alex

On Mon, Oct 21, 2013 at 11:33 AM, Joerg Heinemann heinemannj66@gmail.comwrote:

There exists elasticsearch spec files for fedora/rhel based systems made
by tavisto on

GitHub - tavisto/elasticsearch-rpms: Spec files and other things needed to package up elasticsearch

On the other hand Elasticsearch has build official rpm packuages during
the last official releases.
My first goal is to define robust install, postinstall and remove
procedures inside the spec files and systemd integration.

I would like to be close as possible to official Elasticsearch rpm
definitions.
Is there any way to export the definitions from pom.xml to rpm sepec file
format?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tach Alex,

I have build the elasticsearch.spec file as recommended.

But the integration of this spec on openSUSE Build Service seems to be a
hard way:
https://build.opensuse.org/package/show/home:heinemannj66/elasticsearch

If anyone is interested on maintaining this little build project - Every
help is welcome :wink:

Cheers
Joerg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Buy the way - openSUSE:Packaging checks and guidline can be found here:

http://en.opensuse.org/openSUSE:Packaging_checks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.