From 360b17c91f12d903e1ad0a62fbb221232afe30db Mon Sep 17 00:00:00 2001 From: mjk Date: Tue, 6 Jun 2006 02:14:28 +0000 Subject: split out subpackage -devel. added pkgconfig to -devel requires --- lua.spec | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/lua.spec b/lua.spec index d7a62dc..e24ed59 100644 --- a/lua.spec +++ b/lua.spec @@ -1,6 +1,6 @@ Name: lua Version: 5.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Powerful light-weight programming language Group: Development/Languages @@ -10,7 +10,6 @@ Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz Patch0: lua-5.1-autotoolize-r1.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: pkgconfig BuildRequires: readline-devel, ncurses-devel Provides: %{name}-devel = %{version}-%{release} @@ -24,6 +23,14 @@ is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping. +%package devel +Summary: Development files for %{name} +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +Requires: ncurses-devel, pkgconfig + +%description devel +This package contains development files for %{name}. %prep %setup -q @@ -43,6 +50,8 @@ make %{?_smp_mflags} rm -rf %{buildroot} %makeinstall +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' + %clean rm -rf %{buildroot} @@ -51,14 +60,22 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %doc COPYRIGHT HISTORY README doc/*.html doc/*.gif %{_bindir}/lua* +%{_libdir}/liblua-*.so +%{_mandir}/man1/lua*.1* + +%files devel +%defattr(-,root,root,-) %{_includedir}/l*.h %{_includedir}/l*.hpp -%{_libdir}/liblua*.* +%{_libdir}/liblua.so +%{_libdir}/*.a %{_libdir}/pkgconfig/*.pc -%{_mandir}/man1/lua*.1* %changelog +* Tue Jun 06 2006 Michael J. Knox - 5.1-5 +- split out devel subpackage + * Thu Jun 01 2006 Michael J. Knox - 5.1-4 - added Requires for pkgconfig BZ#193674 -- cgit