robert pushed to lua-socket (f20). "Add -devel package."

notifications at fedoraproject.org notifications at fedoraproject.org
Sat Apr 18 12:00:51 UTC 2015


>From ba0a52aebe37732e823cf09e9fafabda128d33ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <mcepl at redhat.com>
Date: Mon, 9 Sep 2013 14:41:38 +0200
Subject: Add -devel package.


diff --git a/lua-socket.spec b/lua-socket.spec
index 124cd39..6f81ffd 100644
--- a/lua-socket.spec
+++ b/lua-socket.spec
@@ -1,4 +1,9 @@
+%if 0%{?fedora} >= 20 || 0%{?rhel} > 7
 %define luaver 5.2
+%else
+%define luaver 5.1
+%endif
+
 %define lualibdir %{_libdir}/lua/%{luaver}
 %define luapkgdir %{_datadir}/lua/%{luaver}
 %global baseversion 3.0-rc1
@@ -6,7 +11,7 @@
 
 Name:           lua-socket
 Version:        3.0
-Release:        0.3rc1%{?dist}
+Release:        0.4rc1%{?dist}
 Summary:        Network support for the Lua language
 
 Group:          Development/Libraries
@@ -24,6 +29,12 @@ BuildRequires:  lua >= %{luaver}, lua-devel >= %{luaver}
 BuildRequires:  /usr/bin/iconv
 Requires:       lua >= %{luaver}
 
+%package devel
+Summary:    Development files for %{name}
+Group:      Development/Languages
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+
+
 %description
 LuaSocket is a Lua extension library that is composed by two parts: a C core
 that provides support for the TCP and UDP transport layers, and a set of Lua
@@ -33,6 +44,11 @@ that deal with the Internet.
 Among the support modules, the most commonly used implement the SMTP, HTTP
 and FTP. In addition there are modules for MIME, URL handling and LTN12.
 
+%description devel
+Header files and libraries for building an extension library for the
+Lua using %{name}
+
+
 %prep
 %setup -q -n %{upstreamname}-%{baseversion}
 %patch0 -p1 -b .optflags
@@ -46,11 +62,17 @@ mv -f LICENSE.UTF8 LICENSE
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install-unix OPTFLAGS="%{optflags}" INSTALL_TOP=$RPM_BUILD_ROOT INSTALL_TOP_CDIR=$RPM_BUILD_ROOT%{lualibdir} INSTALL_TOP_LDIR=$RPM_BUILD_ROOT%{luapkgdir}
+make install-unix OPTFLAGS="%{optflags}" INSTALL_TOP=$RPM_BUILD_ROOT \
+    INSTALL_TOP_CDIR=$RPM_BUILD_ROOT%{lualibdir} \
+    INSTALL_TOP_LDIR=$RPM_BUILD_ROOT%{luapkgdir}
+
+# install development files
+install -d $RPM_BUILD_ROOT%{_includedir}/%{upstreamname}
+install -p src/*.h $RPM_BUILD_ROOT%{_includedir}/%{upstreamname}
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+#rm -rf $RPM_BUILD_ROOT
 
 
 %files
@@ -60,8 +82,15 @@ rm -rf $RPM_BUILD_ROOT
 %{lualibdir}/*
 %{luapkgdir}/*
 
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{upstreamname}
+
 
 %changelog
+* Mon Sep 09 2013 Matěj Cepl <mcepl at redhat.com> - 3.0-0.4rc1
+- Add -devel package.
+
 * Fri Aug 23 2013 Matěj Cepl <mcepl at redhat.com> - 3.0-0.3rc1
 - update to the 3.0rc1 from git
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lua-socket.git/commit/?h=f20&id=ba0a52aebe37732e823cf09e9fafabda128d33ab


More information about the scm-commits mailing list