Red Hat Bugzilla – Bug 1474069
[Packaging] Please don't ship source file packages
Last modified: 2017-07-24 14:15:42 EDT
Version-Release number of selected component (if applicable):
always (caused by packaging)
Steps to Reproduce:
1. download or install eclipse-pydev
2. have a look at the internal file structure
for every folder in /usr/lib/eclipse/plugins, eclipse-pydev contains a source .jar file
Do not contain a source .jar file. Most of the code is written in python, so source code is not required. Source code belongs into a SRPM file.
See https://fedoraproject.org/wiki/Packaging:Guidelines#Source_RPM_Buildtime_Macros for details.
I'm not sure this is true. Can you give an example?
The first few I looked at, e.g.:
These contain only bytecode (i.e. *.class files) and no source at all.
Upstream Pydev makes the choice to install dir-shaped bundles, with the Java bytecode contained in embedded jars that are referenced from the bundle manifest with the "Bundle-ClassPath" directive.
This is admittedly a non-standard way to ship a plug-in, but it is valid nonetheless.
The folder where the source files are installed: /usr/lib/eclipse/droplets/pydev-core/eclipse/plugins
An example: com.python.pydev.debug.source_5.8.0.v20170616-0956.jar in that folder.
PS: sorry, I put the wrong path in comment #0.