summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-12-23 14:20:19 +0100
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-12-23 14:23:51 +0100
commita97fbf725aa75db53756b59df6888e59b47c931d (patch)
tree2a0560590750b1ef8dd70b084135d4006957c967
parentb108e098eadbe68c4afc7e198c97b960ca0cf29c (diff)
downloadlzo-accepted/tizen/base/20151223.052402.tar.gz
lzo-accepted/tizen/base/20151223.052402.tar.bz2
lzo-accepted/tizen/base/20151223.052402.zip
Bug-Tizen: TC-2238 Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
-rw-r--r--packaging/lzo.spec25
1 files changed, 11 insertions, 14 deletions
diff --git a/packaging/lzo.spec b/packaging/lzo.spec
index 110bb27..08f3804 100644
--- a/packaging/lzo.spec
+++ b/packaging/lzo.spec
@@ -1,12 +1,12 @@
Name: lzo
-Version: 2.03
-Release: 3.15
+Version: 2.08
+Release: 0
License: GPL-2.0+
Summary: Data compression library with very fast (de)compression
Url: http://www.oberhumer.com/opensource/lzo/
Group: System/Libraries
Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz
-Source1001: lzo.manifest
+Source1001: lzo.manifest
BuildRequires: zlib-devel
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -52,19 +52,18 @@ cp %{SOURCE1001} .
--enable-shared \
CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`"
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
# build minilzo too (bz 439979)
gcc %{optflags} -O2 -g -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
-#gcc -O2 -g -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
%install
%make_install
install -m 755 libminilzo.so.0 %{buildroot}%{_libdir}
-ln -s libminilzo.so.0 %{buildroot}%{_libdir}/libminilzo.so
+ln -sf libminilzo.so.0 %{buildroot}%{_libdir}/libminilzo.so
install -p -m 644 minilzo/minilzo.h %{buildroot}%{_includedir}/lzo
-
+rm -f %{buildroot}%{_datadir}/doc/%{name}/COPYING
%post -p /sbin/ldconfig
@@ -72,21 +71,17 @@ install -p -m 644 minilzo/minilzo.h %{buildroot}%{_includedir}/lzo
%postun -p /sbin/ldconfig
-
%post minilzo -p /sbin/ldconfig
%postun minilzo -p /sbin/ldconfig
-
-
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%doc AUTHORS COPYING THANKS NEWS
+%license COPYING
%{_libdir}/liblzo2.so.*
-
%files minilzo
%manifest %{name}.manifest
%defattr(-,root,root,-)
@@ -96,7 +91,9 @@ install -p -m 644 minilzo/minilzo.h %{buildroot}%{_includedir}/lzo
%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT
+%doc %{_datadir}/doc/%{name}/AUTHORS
+%doc %{_datadir}/doc/%{name}/LZO*
+%doc %{_datadir}/doc/%{name}/NEWS
+%doc %{_datadir}/doc/%{name}/THANKS
%{_includedir}/lzo
%{_libdir}/lib*lzo*.so
-