mirror of
https://abf.rosa.ru/djam/lua.git
synced 2025-02-24 06:12:58 +00:00
Automatic import for version 5.1.4-12
This commit is contained in:
parent
cec853a7d7
commit
9bf8fb0fd7
1 changed files with 31 additions and 38 deletions
69
lua.spec
69
lua.spec
|
@ -1,13 +1,13 @@
|
|||
%define major 5.1
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define develname %mklibname %{name} -d
|
||||
%define staticname %mklibname %{name} -d -s
|
||||
%define alt_priority %(echo %{major} | sed -e 's/[^0-9]//g')
|
||||
%define major 5.1
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define devname %mklibname %{name} -d
|
||||
%define static %mklibname %{name} -d -s
|
||||
%define alt_priority %(echo %{major} | sed -e 's/[^0-9]//g')
|
||||
|
||||
Summary: Powerful, light-weight programming language
|
||||
Name: lua
|
||||
Version: 5.1.4
|
||||
Release: %mkrel 10
|
||||
Release: 12
|
||||
License: MIT
|
||||
URL: http://www.lua.org/
|
||||
Group: Development/Other
|
||||
|
@ -16,9 +16,9 @@ Patch0: lua-5.1-dynlib.patch
|
|||
Patch1: lua-5.1-pkgconfig_libdir.patch
|
||||
Patch2: lua-5.1-modules_path.patch
|
||||
Provides: lua%{major}
|
||||
BuildRequires: libreadline-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: pkgconfig(ncurses)
|
||||
Provides: /usr/bin/lua
|
||||
|
||||
%description
|
||||
Lua is a programming language originally designed for extending applications,
|
||||
|
@ -31,11 +31,11 @@ prototyping. Lua is implemented as a small library of C functions, written in
|
|||
ANSI C, and compiles unmodified in all known platforms. The implementation
|
||||
goals are simplicity, efficiency, portability, and low embedding cost.
|
||||
|
||||
%package -n %{libname}
|
||||
%package -n %{libname}
|
||||
Summary: Powerful, light-weight programming language
|
||||
Group: Development/Other
|
||||
|
||||
%description -n %{libname}
|
||||
%description -n %{libname}
|
||||
Lua is a programming language originally designed for extending applications,
|
||||
but also frequently used as a general-purpose, stand-alone language. Lua
|
||||
combines simple procedural syntax (similar to Pascal) with powerful data
|
||||
|
@ -46,31 +46,30 @@ prototyping. Lua is implemented as a small library of C functions, written in
|
|||
ANSI C, and compiles unmodified in all known platforms. The implementation
|
||||
goals are simplicity, efficiency, portability, and low embedding cost.
|
||||
|
||||
%package -n %{develname}
|
||||
%package -n %{devname}
|
||||
Summary: Headers and development files for Lua
|
||||
Group: Development/Other
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: liblua%{major}-devel = %{version}-%{release}
|
||||
Provides: lua-devel = %{version}-%{release}
|
||||
Provides: lua%{major}-devel = %{version}-%{release}
|
||||
Obsoletes: %{_lib}lua5-devel < %{version}
|
||||
Obsoletes: %{_lib}lua4-devel
|
||||
Obsoletes: %{libname}-devel
|
||||
|
||||
%description -n %{develname}
|
||||
%description -n %{devname}
|
||||
This package contains the headers and development files for Lua.
|
||||
|
||||
%package -n %{staticname}
|
||||
%package -n %{static}
|
||||
Summary: Static development files for Lua
|
||||
Group: Development/Other
|
||||
Provides: lua-devel-static = %{version}-%{release}
|
||||
Provides: lua-static-devel = %{version}-%{release}
|
||||
Requires: %{develname} = %{version}-%{release}
|
||||
Requires: %{devname} = %{version}-%{release}
|
||||
Obsoletes: %{libname}-static-devel
|
||||
Obsoletes: %{libname}-devel-static
|
||||
|
||||
%description -n %{staticname}
|
||||
%description -n %{static}
|
||||
This package contains the static development files for Lua.
|
||||
|
||||
%prep
|
||||
|
@ -92,8 +91,6 @@ sed -i -e "s#/usr/local#%{_prefix}#" etc/lua.pc
|
|||
sed -i -e 's/-lreadline -lncurses //g' etc/lua.pc
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%makeinstall_std INSTALL_TOP=%{buildroot}%{_prefix} INSTALL_LIB=%{buildroot}%{_libdir} INSTALL_MAN=%{buildroot}%{_mandir}/man1
|
||||
install -d %{buildroot}%{_libdir}/lua/%{major}/
|
||||
install -d %{buildroot}%{_datadir}/lua/%{major}/
|
||||
|
@ -109,25 +106,13 @@ install -m 644 etc/lua.pc %{buildroot}%{_libdir}/pkgconfig/
|
|||
mv %{buildroot}%{_bindir}/lua %{buildroot}%{_bindir}/lua%{major}
|
||||
mv %{buildroot}%{_bindir}/luac %{buildroot}%{_bindir}/luac%{major}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
/usr/sbin/update-alternatives --install %{_bindir}/lua lua %{_bindir}/lua%{major} %{alt_priority} --slave %{_bindir}/luac luac %{_bindir}/luac%{major}
|
||||
|
||||
%if %mdkversion < 200900
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
%postun
|
||||
[[ -f %{_bindir}/lua%{major} ]] || /usr/sbin/update-alternatives --remove lua %{_bindir}/lua%{major}
|
||||
|
||||
%if %mdkversion < 200900
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr (-,root,root)
|
||||
%doc doc/*.html doc/*.gif
|
||||
%doc COPYRIGHT HISTORY INSTALL README
|
||||
%{_bindir}/*
|
||||
|
@ -136,22 +121,30 @@ rm -rf %{buildroot}
|
|||
%{_datadir}/lua/%{major}/*.lua
|
||||
|
||||
%files -n %{libname}
|
||||
%defattr (-,root,root)
|
||||
%{_libdir}/liblua.so.%{major}*
|
||||
|
||||
%files -n %{develname}
|
||||
%defattr (-,root,root)
|
||||
%files -n %{devname}
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_libdir}/liblua.so
|
||||
|
||||
%files -n %{staticname}
|
||||
%defattr (-,root,root)
|
||||
%files -n %{static}
|
||||
%{_libdir}/*.a
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed May 04 2011 Oden Eriksson <oeriksson@mandriva.com> 5.1.4-10mdv2011.0
|
||||
* Fri Mar 09 2012 Per Øyvind Karlsen <peroyvind@mandriva.org> 5.1.4-12
|
||||
+ Revision: 783646
|
||||
- fix buildrequires
|
||||
- drop explicit liblua%%{major}-devel provides
|
||||
- cleanups
|
||||
- add provides on /usr/bin/lua
|
||||
|
||||
* Tue Feb 14 2012 Paulo Andrade <pcpa@mandriva.com.br> 5.1.4-11
|
||||
+ Revision: 773903
|
||||
- Rebuild.
|
||||
|
||||
* Wed May 04 2011 Oden Eriksson <oeriksson@mandriva.com> 5.1.4-10
|
||||
+ Revision: 666103
|
||||
- mass rebuild
|
||||
|
||||
|
@ -227,7 +220,7 @@ rm -rf %{buildroot}
|
|||
- rebuild
|
||||
- kill re-definition of %%buildroot on Pixel's request
|
||||
|
||||
+ Olivier Blin <oblin@mandriva.com>
|
||||
+ Olivier Blin <blino@mandriva.org>
|
||||
- restore BuildRoot
|
||||
|
||||
* Sun Aug 05 2007 Anssi Hannula <anssi@mandriva.org> 5.1.2-4mdv2008.0
|
||||
|
|
Loading…
Add table
Reference in a new issue