Wrong path to %{name}.lang in %files section when use tarball-less source service
Hello! I am try to follow a 'Avoid tar balls' section of OBS documentation at https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.best-practi... and got an error when processing a lang package files: "[ 555s] Processing files: mypackage-lang-1.0.noarch [ 555s] error: Could not open %files file /home/abuild/rpmbuild/BUILD/home/abuild/rpmbuild/SOURCES/mypackage-lang-1.0.noarch/mypackage.lang: No such file or directory" Extra leading directories are present in the path: /home/abuild/rpmbuild/BUILD/home/abuild/rpmbuild/SOURCES/... I was looking for how %files -f works, but it looks like the basic rpm functionality, not a macro. Probably I can fix it by setting some variable manually before processing? My specfile looks like at guide: %if %{build_tar_ball} Source0: %{name}-%{version}.tar.bz2 %else Source0: _service %endif ... %prep %if %{build_tar_ball} %setup -q %else %setup -n %_sourcedir/%name-%version -T -D %endif _service: <services> <service name="obs_scm"> <param name="url">git://git.code.sf.net/p/mypackage/code</param> <param name="scm">git</param> <param name="versionformat">2.5+git%cd.%h</param> <param name="filename">mypackage</param> </service> <service mode="buildtime" name="set_version"/> </services> But when %define build_tar_ball 1 - the package build successful, %file -f path is correct. Looks like a bug... Or I am doing something wrong?
participants (1)
-
Alexey Svistunov