[packages/mongoose] pldize
glen
glen at pld-linux.org
Fri Sep 27 11:06:51 CEST 2013
commit d6d24f3ff4ab082f089da57af4eb26ff9ee83ca1
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Sep 27 12:06:44 2013 +0300
pldize
mongoose.spec | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/mongoose.spec b/mongoose.spec
index b5c6e15..d58d554 100644
--- a/mongoose.spec
+++ b/mongoose.spec
@@ -4,10 +4,10 @@ Version: 3.1
Release: 1
License: MIT
Group: Applications/System
-URL: http://code.google.com/p/mongoose
Source0: http://mongoose.googlecode.com/files/%{name}-%{version}.tgz
# Source0-md5: e718fc287b4eb1bd523be3fa00942bb0
Source1: %{name}.conf
+URL: http://code.google.com/p/mongoose
BuildRequires: openssl-devel
# Build changes:
# http://code.google.com/p/mongoose/issues/detail?id=372
@@ -63,27 +63,24 @@ export VERSION=%{version}
%install
rm -rf $RPM_BUILD_ROOT
-install -D -p %{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
-
-install -D -p %{name}.1 $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_includedir}}
+install -p %{name} $RPM_BUILD_ROOT%{_bindir}
+cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
# -lib subpackage
-export VERSION=%{version}
-install -D -p lib%{name}.so.%{version} \
- $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.so.$VERSION
-ln -s %{_libdir}/lib%{name}.so.$VERSION \
- $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.so.${VERSION%.?}
+VERSION=%{version}
+install -p lib%{name}.so.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.$VERSION
+ln -s lib%{name}.so.$VERSION $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.${VERSION%.?}
# -devel subpackage
-install -D -p %{name}.h $RPM_BUILD_ROOT/%{_includedir}/%{name}.h
-ln -s %{_libdir}/lib%{name}.so.$VERSION \
- $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.so
+cp -p %{name}.h $RPM_BUILD_ROOT%{_includedir}
+ln -s lib%{name}.so.$VERSION $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
%clean
rm -rf $RPM_BUILD_ROOT
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mongoose.git/commitdiff/d6d24f3ff4ab082f089da57af4eb26ff9ee83ca1
More information about the pld-cvs-commit
mailing list