#10 Update lua.spec
Opened 3 months ago by huakim. Modified 3 months ago
rpms/ huakim/lua rawhide  into  rawhide

file modified
+21
@@ -159,6 +159,27 @@ 

  

  %install

  %make_install

+ 

+ echo 'major_ver=%{major_version}            

+ prefix=%{_usr}            

+ exec_prefix=${prefix}            

+ libdir=%{_libdir}            

+ includedir=%{_includedir}            

+ INSTALL_BIN=%{_bindir}            

+ INSTALL_INC=${includedir}            

+ INSTALL_LIB=${libdir}            

+ INSTALL_MAN=%{_mandir}/man1            

+ INSTALL_LMOD=%{_datadir}/lua/${major_ver}            

+ INSTALL_CMOD=${libdir}/lua/${major_ver}            

+ 

+ Name: lua            

+ Description: An Extensible Extension Language            

+ Version: ${major_ver}            

+ Requires:            

+ Libs: -llua -lm -ldl            

+ Cflags: -I${includedir} ' > %{buildroot}%{_libdir}/pkgconfig/lua.pc

+          

+ 

  rm $RPM_BUILD_ROOT%{_libdir}/*.la

  mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/%{major_version}

  mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/%{major_version}

fix bug 'pkg-config lua'

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/dce4efebf2974bf9a6d4740fafa7f589

2 new commits added

  • Update lua.spec
  • Update lua.spec
3 months ago

There's a lot of unnecessary change in that diff. Also, there's no reason the .pc file couldn't be patched in and generated, or at the least, included as a Source file in the package.

Generally, it's not good for us to add pkgconfig files that aren't provided by upstream, because this will cause problems for other developers who find it on Fedora and assume using it for detection will work everywhere. A cleaned up version of this change, adding a generated pkgconfig file to the lua source code (and build process) should go upstream first. If you need help with that task, just let me know.

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/0a48a391b2074dc49b0af792155ab1a5

Metadata