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

Changes of Revision 4

[+] Deleted lua51.changes
[-] Changed lua.spec ^
x
 
1
@@ -1,190 +1,290 @@
2
-Name:           lua
3
-Version:        5.1.3
4
-Release:        1
5
-Summary:        Powerful light-weight programming language
6
-Group:          Development/Languages
7
-License:        MIT
8
-URL:            http://www.lua.org/
9
-Source0:        http://www.lua.org/ftp/lua-%{version}.tar.gz
10
-Patch0:         lua-5.1.3-autotoolize.patch
11
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
-BuildRequires:  readline-devel ncurses-devel
13
-Provides:       lua = 5.1
14
-Provides:  lua51
15
+#
16
+# spec file for package lua (Version 5.1.4)
17
+#
18
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
19
+#
20
+# All modifications and additions to the file contributed by third parties
21
+# remain the property of their copyright owners, unless otherwise agreed
22
+# upon. The license for this file, and modifications and additions to the
23
+# file, is the same license as for the pristine package itself (unless the
24
+# license for the pristine package is not an Open Source License, in which
25
+# case the license is the MIT License). An "Open Source License" is a
26
+# license that conforms to the Open Source Definition (Version 1.9)
27
+# published by the Open Source Initiative.
28
 
29
-%description
30
-Lua is a powerful light-weight programming language designed for
31
-extending applications. Lua is also frequently used as a
32
-general-purpose, stand-alone language. Lua is free software.
33
-Lua combines simple procedural syntax with powerful data description
34
-constructs based on associative arrays and extensible semantics. Lua
35
-is dynamically typed, interpreted from bytecodes, and has automatic
36
-memory management with garbage collection, making it ideal for
37
-configuration, scripting, and rapid prototyping.
38
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
39
+#
40
 
41
+# norootforbuild
42
 
43
-%package devel
44
-Summary:        Development files for %{name}
45
-Group:          System Environment/Libraries
46
-Requires:       %{name} = %{version}-%{release}
47
-Requires:       pkgconfig
48
-Provides:  lua51-devel
49
 
50
-%description devel
51
-This package contains development files for %{name}.
52
+Name:           lua
53
+Version:        5.1.4
54
+Release:        10.4
55
+%define major_version 5.1
56
+License:        MIT License (or similar)
57
+Group:          System/Libraries
58
+AutoReqProv:    on
59
+BuildRequires:  pkg-config readline-devel update-alternatives
60
+PreReq:         update-alternatives
61
+Summary:        Small Embeddable Language with Simple Procedural Syntax
62
+Url:            http://www.lua.org
63
+Source:         %{name}-%{version}.tar.bz2
64
+Source1:        macros.lua
65
+Source2:        baselibs.conf
66
+Patch0:         %{name}-%{version}-shared.diff
67
+Patch1:         %{name}-%{version}-module-path.diff
68
+Patch2:         %{name}-%{version}-upstream-bugfix.diff
69
+Patch3:         %{name}-%{version}-libdir.diff
70
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
71
 
72
-%package static
73
-Summary:        Static library for %{name}
74
-Group:          System Environment/Libraries
75
-Requires:       %{name} = %{version}-%{release}
76
-Provides:  lua51-static
77
+%description
78
+Lua is a programming language originally designed for extending
79
+applications, but also frequently used as a general-purpose,
80
+stand-alone language.
81
+
82
+Lua combines simple procedural syntax (similar to Pascal) with powerful
83
+data description constructs based on associative arrays and extensible
84
+semantics. Lua is dynamically typed, interpreted from byte codes, and
85
+has automatic memory management, making it ideal for configuration,
86
+scripting, and rapid prototyping. Lua is implemented as a small library
87
+of C functions, written in ANSI C, and the implementation goals are
88
+simplicity, efficiency, portability, and low embedding cost.
89
 
90
-%description static
91
-This package contains the static version of liblua for %{name}.
92
+%package devel
93
+License:        MIT License (or similar)
94
+Summary:        Development files for lua
95
+Group:          Development/Libraries/C and C++
96
+Requires:       %{name} = %{version}
97
+Conflicts:      lua50-devel
98
+Conflicts:      lua51-devel
99
 
100
+%description devel
101
+Lua is a programming language originally designed for extending
102
+applications, but also frequently used as a general-purpose,
103
+stand-alone language.
104
+
105
+This package contains files needed for embedding lua into your
106
+application.
107
+
108
+%package -n liblua5_1
109
+License:        MIT License (or similar)
110
+Summary:        Small Embeddable Language with Simple Procedural Syntax
111
+Group:          System/Libraries
112
+Provides:       %{name}-libs = 5.1.3
113
+Obsoletes:      %{name}-libs <= 5.1.3
114
+
115
+%description -n liblua5_1
116
+Lua is a programming language originally designed for extending
117
+applications, but also frequently used as a general-purpose,
118
+stand-alone language.
119
+
120
+Lua combines simple procedural syntax (similar to Pascal) with powerful
121
+data description constructs based on associative arrays and extensible
122
+semantics. Lua is dynamically typed, interpreted from byte codes, and
123
+has automatic memory management, making it ideal for configuration,
124
+scripting, and rapid prototyping. Lua is implemented as a small library
125
+of C functions, written in ANSI C, and the implementation goals are
126
+simplicity, efficiency, portability, and low embedding cost.
127
+
128
+%package doc
129
+License:        MIT License (or similar)
130
+Summary:        Small Embeddable Language with Simple Procedural Syntax
131
+Group:          System/Libraries
132
+%if 0%{?suse_version} >= 1120
133
+BuildArch:      noarch
134
+%endif
135
+
136
+%description doc
137
+Lua is a programming language originally designed for extending
138
+applications, but also frequently used as a general-purpose,
139
+stand-alone language.
140
+
141
+Lua combines simple procedural syntax (similar to Pascal) with powerful
142
+data description constructs based on associative arrays and extensible
143
+semantics. Lua is dynamically typed, interpreted from byte codes, and
144
+has automatic memory management, making it ideal for configuration,
145
+scripting, and rapid prototyping. Lua is implemented as a small library
146
+of C functions, written in ANSI C, and the implementation goals are
147
+simplicity, efficiency, portability, and low embedding cost.
148
 
149
 %prep
150
 %setup -q
151
-%patch0 -p1 -E -z .autoxxx
152
-# fix perms on auto files
153
-chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missing
154
-
155
+%patch0 -b .shared
156
+%patch1 -p1
157
+%patch2
158
+%patch3 -p1
159
 
160
 %build
161
-%configure --with-readline
162
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
163
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
164
-# hack so that only /usr/bin/lua gets linked with readline as it is the
165
-# only one which needs this and otherwise we get License troubles
166
-make %{?_smp_mflags} LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
167
-# also remove readline from lua.pc
168
-sed -i 's/-lreadline -lncurses //g' etc/lua.pc
169
-
170
+sed -i 's:LUA_ROOT2 "LIBDIR/lua/%{major_version}/":LUA_ROOT2 \"%{_lib}/lua/%{major_version}/":' src/luaconf.h
171
+make %{?jobs:-j%jobs} -C src MYCFLAGS="$RPM_OPT_FLAGS -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=%{major_version} all
172
 
173
 %install
174
-rm -rf $RPM_BUILD_ROOT
175
-make install DESTDIR=$RPM_BUILD_ROOT
176
-rm $RPM_BUILD_ROOT%{_libdir}/*.la
177
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/5.1
178
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/5.1
179
-
180
+make install INSTALL_TOP="$RPM_BUILD_ROOT%{_prefix}" INSTALL_LIB="$RPM_BUILD_ROOT%{_libdir}" INSTALL_CMOD=$RPM_BUILD_ROOT%{_libdir}/lua/%{major_version} INSTALL_MAN="$RPM_BUILD_ROOT%{_mandir}/man1"
181
+install -D -m644 etc/lua.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/lua.pc
182
+for file in lua luac ; do
183
+    mv "%{buildroot}%{_bindir}/${file}"        "%{buildroot}%{_bindir}/${file}%{major_version}"
184
+    mv "%{buildroot}%{_mandir}/man1/${file}.1" "%{buildroot}%{_mandir}/man1/${file}%{major_version}.1"
185
+done
186
+install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}/lua/%{major_version}
187
+install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lua/%{major_version}
188
+install -D %{SOURCE1} %buildroot/etc/rpm/macros.lua
189
 
190
 %clean
191
 rm -rf $RPM_BUILD_ROOT
192
 
193
+%post
194
+/usr/sbin/update-alternatives --install                                                   \
195
+            %{_bindir}/lua            lua       %{_bindir}/lua%{major_version}         10 \
196
+    --slave %{_bindir}/luac           luac      %{_bindir}/luac%{major_version}           \
197
+    --slave %{_mandir}/man1/lua.1.gz  lua.1.gz  %{_mandir}/man1/lua%{major_version}.1.gz  \
198
+    --slave %{_mandir}/man1/luac.1.gz luac.1.gz %{_mandir}/man1/luac%{major_version}.1.gz
199
+
200
+%preun
201
[+] Deleted lua51.spec ^
[+] Deleted lua-5.1-autotoolize-r1.patch.bz2 ^
[+] Deleted lua-5.1.3-autotoolize.patch ^
[+] Added lua-5.1.4-libdir.diff ^
[+] Added lua-5.1.4-module-path.diff ^
[+] Added lua-5.1.4-shared.diff ^
[+] Added lua-5.1.4-upstream-bugfix.diff ^
[+] Deleted lua-5.1_automake18.patch ^
[+] Deleted lua51-5.1.1_pkgconfig_libdir.patch ^
[+] Added baselibs.conf ^
[+] Changed lua-5.1.4.tar.bz2/Makefile ^
[+] Changed lua-5.1.4.tar.bz2/doc/manual.html ^
[+] Changed lua-5.1.4.tar.bz2/doc/readme.html ^
[+] Changed lua-5.1.4.tar.bz2/etc/lua.pc ^
[+] Changed lua-5.1.4.tar.bz2/src/lapi.c ^
[+] Changed lua-5.1.4.tar.bz2/src/lbaselib.c ^
[+] Changed lua-5.1.4.tar.bz2/src/ldebug.c ^
[+] Changed lua-5.1.4.tar.bz2/src/loadlib.c ^
[+] Changed lua-5.1.4.tar.bz2/src/lobject.h ^
[+] Changed lua-5.1.4.tar.bz2/src/lstrlib.c ^
[+] Changed lua-5.1.4.tar.bz2/src/ltablib.c ^
[+] Changed lua-5.1.4.tar.bz2/src/lua.h ^
[+] Changed lua-5.1.4.tar.bz2/src/luaconf.h ^
[+] Changed lua-5.1.4.tar.bz2/src/lundump.c ^
Deleted lua-5.1.tar.gz ^
[+] Deleted lua51-rpmlintrc ^
[+] Added macros.lua ^
[+] Deleted refman-5.0.pdf ^