source: projects/specs/trunk/s/snappy/snappy-vl.spec @ 6990

Revision 6990, 3.2 KB checked in by daisuke, 12 years ago (diff)

snappy: new package

Line 
1Name:           snappy
2Version:        1.0.5
3Release:        1%{?_dist_release}
4Summary:        Fast compression and decompression library
5Summary(ja):    高速な圧縮・展開ライブラリ
6
7Group:          System Environment/Libraries
8License:        BSD
9URL:            http://code.google.com/p/snappy/
10Source0:        http://snappy.googlecode.com/files/%{name}-%{version}.tar.gz
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13
14BuildRequires:  gtest-devel
15
16%description
17Snappy is a compression/decompression library. It does not aim for maximum
18compression, or compatibility with any other compression library; instead, it
19aims for very high speeds and reasonable compression. For instance, compared to
20the fastest mode of zlib, Snappy is an order of magnitude faster for most
21inputs, but the resulting compressed files are anywhere from 20% to 100%
22bigger.
23
24
25%package        devel
26Summary:        Development files for %{name}
27Summary(ja):    %{name} の開発ファイル
28Group:          Development/Libraries
29Requires:       %{name}%{?_isa} = %{version}-%{release}
30
31%description    devel
32The %{name}-devel package contains libraries and header files for
33developing applications that use %{name}.
34
35
36%prep
37%setup -q
38
39
40%build
41%configure CXXFLAGS="%{optflags} -DNDEBUG" --disable-static
42make %{?_smp_mflags}
43
44
45%install
46rm -rf %{buildroot}
47make install DESTDIR=%{buildroot}
48rm -rf %{buildroot}%{_datadir}/doc/snappy/
49find %{buildroot} -name '*.la' -exec rm -f {} ';'
50
51%clean
52rm -rf %{buildroot}
53
54%check
55make check
56
57
58%post -p /sbin/ldconfig
59
60%postun -p /sbin/ldconfig
61
62
63%files
64%defattr(-,root,root,-)
65%doc AUTHORS ChangeLog COPYING NEWS README
66%{_libdir}/libsnappy.so.*
67
68%files devel
69%defattr(-,root,root,-)
70%doc format_description.txt
71%{_includedir}/snappy*.h
72%{_libdir}/libsnappy.so
73
74
75%changelog
76* Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
77- initial build for Vine Linux
78
79* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
80- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
81
82* Fri Feb 24 2012 Martin Gieseking <martin.gieseking@uos.de> 1.0.5-1
83- updated to release 1.0.5
84- made dependency of devel package on base package arch dependant
85
86* Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.0.4-3
87- Add in buildroot stuff for EL5 build
88
89* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
90- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
91
92* Fri Sep 16 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.4-1
93- updated to release 1.0.4
94
95* Sat Jun 04 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.3-1
96- updated to release 1.0.3
97- added format description to devel package
98
99* Fri Apr 29 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.2-1
100- updated to release 1.0.2
101- changed License to BSD
102- dropped the patch as it has been applied upstream
103
104* Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-3
105- added file COPYING from the upstream repo
106
107* Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-2
108- replaced $CXXFLAGS with %%{optflags} in %%build section
109- removed empty %%doc entry from %%files devel
110
111* Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-1
112- initial package
113
Note: See TracBrowser for help on using the repository browser.