diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:57:14 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:57:14 -0800 |
commit | 0bf0cefb36e1ada6e2545354e7af1fc06d14edf8 (patch) | |
tree | 4f6d4d7958c17a31d73a82fa14671fee59975ae5 | |
parent | 1bb1ce141783168d44a38cd1bb6b822eb13114fc (diff) | |
download | lzo-0bf0cefb36e1ada6e2545354e7af1fc06d14edf8.tar.gz lzo-0bf0cefb36e1ada6e2545354e7af1fc06d14edf8.tar.bz2 lzo-0bf0cefb36e1ada6e2545354e7af1fc06d14edf8.zip |
add packagingsubmit/tizen/20130517.023321submit/tizen/20130509.182000submit/tizen/20130503.225512accepted/tizen/20130520.100149accepted/tizen/20130503.230131
-rw-r--r-- | packaging/lzo.spec | 52 |
1 files changed, 22 insertions, 30 deletions
diff --git a/packaging/lzo.spec b/packaging/lzo.spec index a8c6cd8..b2790c5 100644 --- a/packaging/lzo.spec +++ b/packaging/lzo.spec @@ -1,16 +1,14 @@ - -Name: lzo -Summary: Data compression library with very fast (de)compression -Version: 2.03 -Release: 3.15 -Group: System/Libraries -License: GPLv2+ -URL: http://www.oberhumer.com/opensource/lzo/ -Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz +Name: lzo +Version: 2.03 +Release: 3.15 +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 +BuildRequires: zlib-devel Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig -BuildRequires: zlib-devel - %description LZO is a portable lossless data compression library written in ANSI C. @@ -19,12 +17,10 @@ Decompression requires no memory. In addition there are slower compression levels achieving a quite competitive compression ratio while still decompressing at this very high speed. - - %package minilzo -Summary: Mini version of lzo for apps which don't need the full version -Group: System/Libraries -Requires: %{name} = %{version}-%{release} +Summary: Mini version of lzo for apps which don't need the full version +Group: System/Libraries +Requires: %{name} = %{version} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -32,22 +28,19 @@ Requires(postun): /sbin/ldconfig A small (mini) version of lzo for embedding into applications which don't need full blown lzo compression support. - %package devel -Summary: Development files for the lzo library -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: zlib-devel +Summary: Development files for the lzo library +Group: Development/Libraries +Requires: %{name} = %{version} +Requires: zlib-devel %description devel LZO is a portable lossless data compression library written in ANSI C. It offers pretty fast compression and very fast decompression. This package contains development files needed for lzo. - - %prep -%setup -q -n %{name}-%{version} +%setup -q %build @@ -57,19 +50,18 @@ This package contains development files needed for lzo. --enable-shared \ CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`" -make %{?jobs:-j%jobs} +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 -rm -rf %{buildroot} -%make_install +%make_install -install -m 755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir} -ln -s libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}/libminilzo.so -install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo +install -m 755 libminilzo.so.0 %{buildroot}%{_libdir} +ln -s libminilzo.so.0 %{buildroot}%{_libdir}/libminilzo.so +install -p -m 644 minilzo/minilzo.h %{buildroot}%{_includedir}/lzo |