diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-09-21 18:39:53 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-04-17 16:42:25 +0900 |
commit | bce7cc2310629d621e32c3adb81e5f96e16e0258 (patch) | |
tree | bf39bbdc5f51848cafdbe350d3d8488dced793b9 | |
parent | 4f7bd2dbfd12bfda77488baf46c2f7648c9f1999 (diff) | |
download | snappy-accepted/tizen_5.0_unified.tar.gz snappy-accepted/tizen_5.0_unified.tar.bz2 snappy-accepted/tizen_5.0_unified.zip |
packaging: Add RPM spec for Tizen buildtizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.163901submit/tizen_6.0_hotfix/20201103.115104submit/tizen_6.0_hotfix/20201102.192904submit/tizen_6.0/20201029.205504submit/tizen_5.5_wearable_hotfix/20201026.184308submit/tizen_5.5_mobile_hotfix/20201026.185108submit/tizen_5.5/20191031.000008submit/tizen_5.0/20181101.000008submit/tizen/20180424.090607accepted/tizen/unified/20180425.062435accepted/tizen/9.0/unified/20241030.233134accepted/tizen/8.0/unified/20231005.095530accepted/tizen/7.0/unified/hotfix/20221116.111422accepted/tizen/7.0/unified/20221110.061225accepted/tizen/6.5/unified/20211029.014747accepted/tizen/6.0/unified/hotfix/20201103.050429accepted/tizen/6.0/unified/20201030.103959accepted/tizen/5.5/unified/wearable/hotfix/20201027.104835accepted/tizen/5.5/unified/mobile/hotfix/20201027.072256accepted/tizen/5.5/unified/20191031.013308accepted/tizen/5.0/unified/20181102.030135tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizenaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
Spec file imported from openSUSE 42.3
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Corrected subject format.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | packaging/snappy.manifest | 5 | ||||
-rw-r--r-- | packaging/snappy.spec | 109 |
2 files changed, 114 insertions, 0 deletions
diff --git a/packaging/snappy.manifest b/packaging/snappy.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/snappy.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/snappy.spec b/packaging/snappy.spec new file mode 100644 index 0000000..54f8a75 --- /dev/null +++ b/packaging/snappy.spec @@ -0,0 +1,109 @@ +# +# spec file for package snappy +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define lib_name libsnappy1 +Name: snappy +Version: 1.1.7 +Release: 0 +Summary: A fast compressor/decompressor library +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +Url: https://github.com/google/snappy/ +Source0: %{name}-%{version}.tar.gz +Source1001: snappy.manifest +BuildRequires: autoconf +BuildRequires: cmake +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: lzo-devel +BuildRequires: pkg-config +BuildRequires: zlib-devel + +%description +Snappy is a compression/decompression library. It does not aim for maximum +compression, or compatibility with any other compression library; instead, it +aims for very high speeds and reasonable compression. For instance, compared to +the fastest mode of zlib, Snappy is an order of magnitude faster for most +inputs, but the resulting compressed files are anywhere from 20% to 100% +bigger. On a single core of a Core i7 processor in 64-bit mode, Snappy +compresses at about 250 MB/sec or more and decompresses at about +500 MB/sec or more. + +%package -n %{lib_name} +Summary: Shared library from snappy +Group: Development/Libraries/C and C++ + +%description -n %{lib_name} +Snappy is a compression/decompression library. It does not aim for maximum compression, +or compatibility with any other compression library; instead, it aims for very high +speeds and reasonable compression. For instance, compared to the fastest mode of zlib, +Snappy is an order of magnitude faster for most inputs, but the resulting compressed +files are anywhere from 20% to 100% bigger. On a single core of a Core i7 processor +in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about +500 MB/sec or more. + +This package holds the shared library of snappy. + +%package devel +Summary: Development files for snappy +Group: Development/Libraries/C and C++ +Requires: %{lib_name} = %{version} + +%description devel +Snappy is a compression/decompression library. It does not aim for maximum +compression, or compatibility with any other compression library; instead, it +aims for very high speeds and reasonable compression. For instance, compared to +the fastest mode of zlib, Snappy is an order of magnitude faster for most +inputs, but the resulting compressed files are anywhere from 20% to 100% +bigger. On a single core of a Core i7 processor in 64-bit mode, Snappy +compresses at about 250 MB/sec or more and decompresses at about +500 MB/sec or more. + +This package holds the development files for snappy. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +%cmake +make %{?_smp_mflags} + +%install +%make_install +#find %{buildroot} -type f -name "*.la" -delete -print +mkdir -p %{buildroot}%{_defaultdocdir}/%{name} +install -p -m 0644 COPYING %{buildroot}%{_defaultdocdir}/%{name}/COPYING +rm -Rf %{buildroot}%{_libdir}/cmake + +%post -n %{lib_name} -p /sbin/ldconfig + +%postun -n %{lib_name} -p /sbin/ldconfig + +%files -n %{lib_name} +%defattr(-,root,root,-) +%doc %{_defaultdocdir}/%{name}/COPYING +%{_libdir}/libsnappy.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/snappy*.h +%{_libdir}/libsnappy.so +%doc %{_defaultdocdir}/%{name} +%exclude %{_defaultdocdir}/%{name}/COPYING |