[opensuse-packaging] Building a source package

Hi all, I want to ask for your recommendations to build a sources package, resp. to include the sources in the development package. First of all, is there a standard path where it should go? like /usr/src/ <package>? Second, the idea to create the source package is 'just' to copy the source to the target folder, cp -r build/* /usr/src/<package>/. and then install it in the %files section. Any better proposal? Thanks Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On pią, May 3, 2019 at 7:10 PM, Axel Braun <axel.braun@gmx.de> wrote:
Hi all,
I want to ask for your recommendations to build a sources package, resp. to include the sources in the development package.
First of all, is there a standard path where it should go? like /usr/src/ <package>? Second, the idea to create the source package is 'just' to copy the source to the target folder,
cp -r build/* /usr/src/<package>/.
and then install it in the %files section. Any better proposal?
Hi, I feel like there is not enough context here, in case of C/C++ headers, there is a standard directory for those, if the sources are for something else, most languages have standard directories for this kind of files. If it's totally custom thing altogether, in case of gfxboot themes used for building openSUSE theme, the files are packaged in -devel, then copied over into another package from a %{_datadir}/gfxboot directory during build. Source packages however are automatically generated from sources put into obs, which I guess wouldn't be ideal for this ;) LCP [Stasiek] https://lcp.world -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Hi Stasiek, Am Samstag, 4. Mai 2019, 16:04:08 CEST schrieb Stasiek Michalski:
I want to ask for your recommendations to build a sources package, resp. to include the sources in the development package.
First of all, is there a standard path where it should go? like /usr/src/ <package>? Second, the idea to create the source package is 'just' to copy the source to the target folder,
cp -r build/* /usr/src/<package>/.
and then install it in the %files section. Any better proposal?
I feel like there is not enough context here, in case of C/C++ headers, there is a standard directory for those, if the sources are for something else, most languages have standard directories for this kind of files. If it's totally custom thing altogether, in case of gfxboot themes used for building openSUSE theme, the files are packaged in -devel, then copied over into another package from a %{_datadir}/gfxboot directory during build. Source packages however are automatically generated from sources put into obs, which I guess wouldn't be ideal for this ;)
Yes, the source package is not sufficient. I have solved it in that way that I expand the sources to /usr/src/%{name} and include them in the %{name}-devel package. There it is picked up from the plugin package that asks for the sources. Thanks Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Axel Braun
-
Stasiek Michalski