Logoj0ke.net Open Build Service > Projects > devel > lua51 > Changes
Sign Up | Log In

Changes of Revision 3

[-] Added lua51.spec
x
 
1
@@ -0,0 +1,111 @@
2
+#
3
+# spec file for package lua51 (Version 5.1)
4
+#
5
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+# norootforbuild
13
+
14
+Name:           lua51
15
+%define pkg_name lua
16
+%define pkg_major 5.1
17
+Version:        5.1
18
+Release:        1
19
+#
20
+Group:          Development/Languages/Lua
21
+License:        MIT
22
+#
23
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
24
+BuildRequires:  ncurses-devel readline-devel
25
+#
26
+Url:            http://www.lua.org/
27
+Source0:        http://www.lua.org/ftp/lua-%{version}.tar.gz
28
+Source1:        http://www.lua.org/ftp/refman-5.0.pdf
29
+Patch0:         lua-5.1-autotoolize-r1.patch.bz2
30
+Patch1:         lua51-5.1.1_pkgconfig_libdir.patch
31
+Patch2:         lua-5.1_automake18.patch
32
+#
33
+Summary:        Powerful light-weight programming language
34
+
35
+%description
36
+Lua is a powerful light-weight programming language designed for
37
+extending applications. Lua is also frequently used as a
38
+general-purpose, stand-alone language. Lua is free software.
39
+Lua combines simple procedural syntax with powerful data description
40
+constructs based on associative arrays and extensible semantics. Lua
41
+is dynamically typed, interpreted from bytecodes, and has automatic
42
+memory management with garbage collection, making it ideal for
43
+configuration, scripting, and rapid prototyping.
44
+
45
+%package   libs
46
+Summary:        Development files for %{pkg_name}
47
+Group:          Development/Languages/Lua
48
+
49
+%description libs
50
+Libraries for lua 5.1
51
+
52
+%package   devel
53
+Summary:        Development files for %{pkg_name}
54
+Group:          Development/Languages/Lua
55
+Requires:       %{name} = %{version}-%{release}
56
+Requires:       ncurses-devel, readline-devel, pkgconfig
57
+
58
+%description   devel
59
+This package contains development files for %{pkg_name}.
60
+
61
+%prep
62
+%setup -q -n %{pkg_name}-%{version}
63
+%patch0 -p1
64
+%patch1
65
+%patch2
66
+%{__cp} %{S:1} .
67
+
68
+%build
69
+# fix perms on auto files
70
+chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missing
71
+./autogen.sh
72
+%configure --with-readline
73
+%{__make}
74
+
75
+%install
76
+%makeinstall -C src
77
+find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
78
+%{__install} -d -m 0755 %{buildroot}{%{_datadir},%{_libdir}}/lua/%{pkg_major}/ %{buildroot}%{_mandir}/man1/
79
+%{__install} -m 0644 doc/*.1 %{buildroot}%{_mandir}/man1/
80
+%{__install} -m 0644 -D etc/lua.pc %{buildroot}%{_libdir}/pkgconfig/lua.pc
81
+
82
+%clean
83
+%{__rm} -rf %{buildroot}
84
+
85
+%post -p /sbin/ldconfig
86
+
87
+%postun -p /sbin/ldconfig
88
+
89
+%files
90
+%defattr(-,root,root,-)
91
+%doc COPYRIGHT HISTORY README doc/*.html doc/*.gif *.pdf
92
+%{_bindir}/lua*
93
+%{_mandir}/man1/lua*.1*
94
+
95
+%files libs
96
+%defattr(-,root,root,-)
97
+%{_libdir}/liblua-*.so
98
+%dir %{_datadir}/lua/
99
+%dir %{_libdir}/lua/
100
+%dir %{_datadir}/lua/%{pkg_major}/
101
+%dir %{_libdir}/lua/%{pkg_major}/
102
+
103
+%files devel
104
+%defattr(-,root,root,-)
105
+%{_includedir}/l*.h
106
+%{_libdir}/liblua.so
107
+%{_libdir}/*.a
108
+%{_libdir}/pkgconfig/*.pc
109
+
110
+%changelog -n lua51
111
+* Mon Nov 27 2006 - mrueckert@suse.de
112
+- actually build again
113
[+] Added lua-5.1-autotoolize-r1.patch.bz2 ^
[+] Added lua-5.1_automake18.patch ^
[+] Added lua51-5.1.1_pkgconfig_libdir.patch ^
Added lua-5.1.tar.gz ^
[+] Added lua51-rpmlintrc ^
[+] Added refman-5.0.pdf ^