SPECS: lua50.spec - create lua50.pc. inspired from gentoo
glen
glen at pld-linux.org
Mon Aug 22 17:19:25 CEST 2005
Author: glen Date: Mon Aug 22 15:19:25 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- create lua50.pc. inspired from gentoo
---- Files affected:
SPECS:
lua50.spec (1.20 -> 1.21)
---- Diffs:
================================================================
Index: SPECS/lua50.spec
diff -u SPECS/lua50.spec:1.20 SPECS/lua50.spec:1.21
--- SPECS/lua50.spec:1.20 Mon Aug 22 16:36:22 2005
+++ SPECS/lua50.spec Mon Aug 22 17:19:20 2005
@@ -7,7 +7,7 @@
Summary(pl): Prosty, lekki ale potężny, osadzalny język programowania
Name: lua50
Version: 5.0.2
-Release: 4
+Release: 4.1
License: MIT
Group: Development/Languages
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
@@ -148,6 +148,23 @@
install bin.static/luac $RPM_BUILD_ROOT%{_bindir}/luac50.static
%endif
+# create pkgconfig file
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+cat > $RPM_BUILD_ROOT%{_pkgconfigdir}/%{name}.pc <<'EOF'
+prefix=%{_prefix}
+exec_prefix=%{_exec_prefix}
+includedir=%{_includedir}/%{name}
+libdir=%{_libdir}
+interpreter=%{_bindir}/%{name}
+compiler=%{_bindir}/%{name}
+
+Name: Lua
+Description: An extension programming language
+Version: %{version}
+Cflags: -I%{_includedir}/%{name}
+Libs: -L%{_libdir} -llua50 -llualib50 -ldl -lm
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -168,6 +185,7 @@
%doc refman.ps.gz doc test
%attr(755,root,root) %{_libdir}/lib*.so
%{_includedir}/lua50
+%{_pkgconfigdir}/%{name}.pc
%files static
%defattr(644,root,root,755)
@@ -185,6 +203,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.21 2005/08/22 15:19:20 glen
+- create lua50.pc. inspired from gentoo
+
Revision 1.20 2005/08/22 14:36:22 glen
- parallel make unfriendly make
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/lua50.spec?r1=1.20&r2=1.21&f=u
More information about the pld-cvs-commit
mailing list