Hello community,

here is the log from the commit of package lua52 for openSUSE:Factory checked 
in at 2015-09-19 11:05:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua52 (Old)
 and      /work/SRC/openSUSE:Factory/.lua52.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua52"

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua52/lua52.changes      2015-08-07 
00:24:28.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.lua52.new/lua52.changes 2015-09-19 
11:10:51.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Sep  4 17:33:23 UTC 2015 - i...@marguerite.su
+
+- provides Lua(API) & Lua(devel)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lua52.spec ++++++
--- /var/tmp/diff_new_pack.LawPoY/_old  2015-09-19 11:10:52.000000000 +0200
+++ /var/tmp/diff_new_pack.LawPoY/_new  2015-09-19 11:10:52.000000000 +0200
@@ -17,13 +17,13 @@
 
 
 %define major_version 5.2
-%define libsuf        5_2
+%define lib_suffix    5_2
 Name:           lua52
 Version:        5.2.4
 Release:        0
 Summary:        Small Embeddable Language with Simple Procedural Syntax
 License:        MIT
-Group:          Development/Languages/Other
+Group:          Development/Languages/Lua
 Url:            http://www.lua.org
 Source:         http://www.lua.org/ftp/lua-%{version}.tar.gz
 Source1:        macros.lua
@@ -36,8 +36,12 @@
 Patch:          lua-suse.diff
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
-BuildRequires:  update-alternatives
-Requires(pre):  update-alternatives
+Requires(post):        update-alternatives
+Requires(preun):  update-alternatives
+# As other packages install files into /usr/share/lua/lua_version,
+# they ought to require lua = lua_version (which is only major_version)
+# in order to facilitate this, we provide the corresponding symbol here.
+Provides:       Lua(API) = %{major_version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -57,10 +61,9 @@
 Summary:        Development files for lua
 Group:          Development/Libraries/C and C++
 Requires:       %{name} = %{version}
-Requires:       liblua%{libsuf} = %{version}
-Conflicts:      lua-devel
-Conflicts:      lua51-devel
-Conflicts:      lua50-devel
+Requires:       liblua%{lib_suffix} = %{version}
+Provides:       Lua(devel) = %{major_version}
+Conflicts:      otherproviders(Lua(devel))
 
 %description devel
 Lua is a programming language originally designed for extending
@@ -70,13 +73,13 @@
 This package contains files needed for embedding lua into your
 application.
 
-%package -n liblua%{libsuf}
+%package -n liblua%{lib_suffix}
 Summary:        The Lua integration library
 Group:          System/Libraries
 Provides:       %{name}-libs = %{version}
 Obsoletes:      %{name}-libs < %{version}
 
-%description -n liblua%{libsuf}
+%description -n liblua%{lib_suffix}
 Lua is a programming language originally designed for extending
 applications, but also frequently used as a general-purpose,
 stand-alone language.
@@ -115,10 +118,14 @@
 
 %build
 sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h
+
 make %{?_smp_mflags} -C src CC="gcc" MYCFLAGS="%{optflags} -std=gnu99 
-D_GNU_SOURCE -fPIC -DLUA_USE_LINUX -DLUA_COMPAT_MODULE" MYLIBS="-Wl,-E -ldl 
-lreadline -lhistory -lncurses" V=%{major_version} all
 
 %install
 make install INSTALL_TOP="%{buildroot}%{_prefix}" 
INSTALL_LIB="%{buildroot}%{_libdir}" 
INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} 
INSTALL_MAN="%{buildroot}%{_mandir}/man1"
+
+find %{buildroot} -name "*.a" -delete -print
+
 # update-alternatives
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 for file in lua luac ; do
@@ -129,7 +136,7 @@
     touch "%{buildroot}%{_sysconfdir}/alternatives/${file}.1.gz"
     ln -sf "%{_sysconfdir}/alternatives/${file}.1.gz" 
"%{buildroot}%{_mandir}/man1/${file}.1.gz"
 done
-install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.lua52
+install -D -m 644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/rpm/macros.lua-%{major_version}
 
 # create pkg-config file
 cat > lua.pc <<-EOF
@@ -144,7 +151,7 @@
 Libs: -llua -lm
 Cflags:
 EOF
-install -D -m 644 lua.pc %{buildroot}/%{_libdir}/pkgconfig/lua.pc
+install -D -m 644 lua.pc 
%{buildroot}/%{_libdir}/pkgconfig/lua-%{major_version}.pc
 
 %check
 cd src
@@ -152,7 +159,7 @@
 
 %post
 %{_sbindir}/update-alternatives --install                                      
             \
-            %{_bindir}/lua            lua       %{_bindir}/lua%{major_version} 
        15 \
+            %{_bindir}/lua            lua       %{_bindir}/lua%{major_version} 
        20 \
     --slave %{_bindir}/luac           luac      
%{_bindir}/luac%{major_version}           \
     --slave %{_mandir}/man1/lua.1.gz  lua.1.gz  
%{_mandir}/man1/lua%{major_version}.1.gz  \
     --slave %{_mandir}/man1/luac.1.gz luac.1.gz 
%{_mandir}/man1/luac%{major_version}.1.gz
@@ -162,9 +169,9 @@
     %{_sbindir}/update-alternatives --remove lua %{_bindir}/lua%{major_version}
 fi
 
-%post -n liblua%{libsuf} -p /sbin/ldconfig
+%post -n liblua%{lib_suffix} -p /sbin/ldconfig
 
-%postun -n liblua%{libsuf} -p /sbin/ldconfig
+%postun -n liblua%{lib_suffix} -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
@@ -186,21 +193,20 @@
 %ghost %{_sysconfdir}/alternatives/lua.1.gz
 %ghost %{_sysconfdir}/alternatives/luac.1.gz
 
-%files -n liblua%{libsuf}
+%files -n liblua%{lib_suffix}
 %defattr(-,root,root)
 %{_libdir}/liblua.so.%{major_version}
 
 %files devel
 %defattr(-,root,root)
-%config %{_sysconfdir}/rpm/macros.lua52
+%config %{_sysconfdir}/rpm/macros.lua-%{major_version}
 %{_includedir}/lauxlib.h
 %{_includedir}/lua.h
 %{_includedir}/lua.hpp
 %{_includedir}/luaconf.h
 %{_includedir}/lualib.h
-%{_libdir}/liblua.a
 %{_libdir}/liblua.so
-%{_libdir}/pkgconfig/lua.pc
+%{_libdir}/pkgconfig/lua-%{major_version}.pc
 
 %files doc
 %defattr(-,root,root)


Reply via email to