From 81dd8b5c64f0fd0b1873934c35f9dfbf5292ccb8 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 6 Nov 2012 22:57:14 -0800 Subject: add packaging --- packaging/lzo.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 packaging/lzo.spec diff --git a/packaging/lzo.spec b/packaging/lzo.spec new file mode 100644 index 0000000..b2790c5 --- /dev/null +++ b/packaging/lzo.spec @@ -0,0 +1,97 @@ +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 + +%description +LZO is a portable lossless data compression library written in ANSI C. +It offers pretty fast compression and very fast decompression. +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} +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description minilzo +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} +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 + + +%build + +%configure --disable-static \ + --disable-dependency-tracking \ + --enable-shared \ + CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`" + +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 +install -p -m 644 minilzo/minilzo.h %{buildroot}%{_includedir}/lzo + + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + + +%post minilzo -p /sbin/ldconfig + +%postun minilzo -p /sbin/ldconfig + + + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING THANKS NEWS +%{_libdir}/liblzo2.so.* + + +%files minilzo +%defattr(-,root,root,-) +%doc minilzo/README.LZO +%{_libdir}/libminilzo.so.0 + +%files devel +%defattr(-,root,root,-) +%doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT +%{_includedir}/lzo +%{_libdir}/lib*lzo*.so + -- cgit v1.2.3 From e14ba49f93f15eea00b04e3af95377fc78110a34 Mon Sep 17 00:00:00 2001 From: Alexandru Cornea Date: Mon, 1 Jul 2013 20:19:40 +0300 Subject: resetting manifest requested domain to floor --- packaging/lzo.manifest | 5 +++++ packaging/lzo.spec | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 packaging/lzo.manifest diff --git a/packaging/lzo.manifest b/packaging/lzo.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/lzo.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/lzo.spec b/packaging/lzo.spec index b2790c5..110bb27 100644 --- a/packaging/lzo.spec +++ b/packaging/lzo.spec @@ -6,6 +6,7 @@ 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 BuildRequires: zlib-devel Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -41,6 +42,7 @@ This package contains development files needed for lzo. %prep %setup -q +cp %{SOURCE1001} . %build @@ -79,17 +81,20 @@ install -p -m 644 minilzo/minilzo.h %{buildroot}%{_includedir}/lzo %files +%manifest %{name}.manifest %defattr(-,root,root,-) %doc AUTHORS COPYING THANKS NEWS %{_libdir}/liblzo2.so.* %files minilzo +%manifest %{name}.manifest %defattr(-,root,root,-) %doc minilzo/README.LZO %{_libdir}/libminilzo.so.0 %files devel +%manifest %{name}.manifest %defattr(-,root,root,-) %doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT %{_includedir}/lzo -- cgit v1.2.3 From b108e098eadbe68c4afc7e198c97b960ca0cf29c Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Sun, 25 Aug 2013 09:54:26 +0800 Subject: Add .changes file Change-Id: If5a0be79fb88b664fc82eff58210e71b4dbc1e6d Signed-off-by: Chengwei Yang --- packaging/lzo.changes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 packaging/lzo.changes diff --git a/packaging/lzo.changes b/packaging/lzo.changes new file mode 100644 index 0000000..d1e0049 --- /dev/null +++ b/packaging/lzo.changes @@ -0,0 +1,4 @@ +* Sun Aug 25 2013 Chengwei Yang accepted/tizen/20130710.215524@30afcc6 +- resetting manifest requested domain to floor +- add packaging +- Imported Upstream version 2.03 -- cgit v1.2.3 From a97fbf725aa75db53756b59df6888e59b47c931d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= Date: Tue, 23 Dec 2014 14:20:19 +0100 Subject: Bump to version 2.08 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug-Tizen: TC-2238 Signed-off-by: Kévin THIERRY --- packaging/lzo.spec | 25 +++++++++++-------------- 1 file 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 - -- cgit v1.2.3