X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=lua51.spec;h=fdbd1403bcbdec389956f6b78ea557476a516eea;hb=7b01e365e80213408d6de5ef298bc92add5c69be;hp=b6741056ad92539d6774dcbbe60b9a5607318df1;hpb=f30f361b214ed25406b896f740ce949813d8dbb8;p=packages%2Flua51.git diff --git a/lua51.spec b/lua51.spec index b674105..fdbd140 100644 --- a/lua51.spec +++ b/lua51.spec @@ -6,7 +6,7 @@ Summary: A simple lightweight powerful embeddable programming language Summary(pl.UTF-8): Prosty, lekki ale potężny, osadzalny język programowania Name: lua51 Version: 5.1.5 -Release: 2 +Release: 4 License: MIT Group: Development/Languages Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz @@ -17,6 +17,7 @@ Patch0: %{name}-link.patch Patch1: debian_make.patch URL: http://www.lua.org/ %{?with_luastatic:BuildRequires: dietlibc-static} +BuildRequires: libstdc++-devel BuildRequires: readline-devel BuildRequires: sed >= 4.0 Requires: %{name}-libs = %{version}-%{release} @@ -49,8 +50,8 @@ konfiguracji, skryptów i szybkich prototypów. Ta wersja ma wkompilowaną obsługę ładowania dynamicznych bibliotek. %package libs -Summary: lua 5.1.x libraries -Summary(pl.UTF-8): Biblioteki lua 5.1.x +Summary: Lua 5.1.x shared library +Summary(pl.UTF-8): Biblioteka współdzielona Lua 5.1.x Group: Libraries # Provide old SONAME to avoid rebuilds %ifarch %{x8664} @@ -60,28 +61,16 @@ Provides: liblua.so.5.1 %endif %description libs -lua 5.1.x libraries. +Lua 5.1.x shared library. %description libs -l pl.UTF-8 -Biblioteki lua 5.1.x. - -%package libs-c++ -Summary: lua 5.1.x libraries -Summary(pl.UTF-8): Biblioteki lua 5.1.x -Group: Libraries - -%description libs-c++ -lua 5.1.x C++ libraries. - -%description libs-c++ -l pl.UTF-8 -Biblioteki lua 5.1.x C++. +Biblioteka współdzielona Lua 5.1.x. %package devel Summary: Header files for Lua Summary(pl.UTF-8): Pliki nagłówkowe dla Lua Group: Development/Languages Requires: %{name}-libs = %{version}-%{release} -Requires: %{name}-libs-c++ = %{version}-%{release} Provides: lua-devel = %{version} %description devel @@ -105,6 +94,45 @@ Static Lua libraries. %description static -l pl.UTF-8 Biblioteki statyczne Lua. +%package c++-libs +Summary: Lua 5.1.x shared library with C++ exceptions support +Summary(pl.UTF-8): Biblioteka współdzielona Lua 5.1.x z obsługą wyjątków C++ +Group: Libraries +Requires: %{name}-libs = %{version}-%{release} +Obsoletes: lua-libs-c++ + +%description c++-libs +Lua 5.1.x shared library with C++ exceptions support. + +%description c++-libs -l pl.UTF-8 +Biblioteka współdzielona Lua 5.1.x z obsługą wyjątków C++. + +%package c++-devel +Summary: Development files for Lua 5.1.x C++ library +Summary(pl.UTF-8): Pliki programistyczne biblioteki C++ Lua 5.1.x +Group: Development/Libraries +Requires: %{name}-c++-libs = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} +Requires: libstdc++-devel + +%description c++-devel +Development files for Lua 5.1.x C++ library. + +%description c++-devel -l pl.UTF-8 +Pliki programistyczne biblioteki C++ Lua 5.1.x. + +%package c++-static +Summary: Static Lua 5.1.x C++ library +Summary(pl.UTF-8): Statyczna biblioteka C++ Lua 5.1.x +Group: Development/Libraries +Requires: %{name}-c++-devel = %{version}-%{release} + +%description c++-static +Static Lua 5.1.x C++ library. + +%description c++-static -l pl.UTF-8 +Statyczna biblioteka C++ Lua 5.1.x. + %package luastatic Summary: Static Lua interpreter Summary(pl.UTF-8): Statycznie skonsolidowany interpreter lua @@ -173,28 +201,28 @@ ln -s liblua5.1.so.0 $RPM_BUILD_ROOT%{_libdir}/liblua.so.5.1 %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblua5.1-c++.la # create pkgconfig files -cat > $RPM_BUILD_ROOT%{_pkgconfigdir}/lua5.1.pc <<'EOF' +cat > $RPM_BUILD_ROOT%{_pkgconfigdir}/lua5.1.pc < $RPM_BUILD_ROOT%{_pkgconfigdir}/lua5.1-c++.pc <<'EOF' +cat > $RPM_BUILD_ROOT%{_pkgconfigdir}/lua5.1-c++.pc <