forked from cnangel/libchardet
/
libchardet.spec.in
66 lines (49 loc) · 1.33 KB
/
libchardet.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%define _tmppath %{_topdir}/BUILDROOT
Name: libchardet
Version: @VERSION@
Release: 1
Summary: a library for charset detector
License: GPLv3
Group: Application/Systems
Url: http://www.mozilla.org/projects/intl/chardet.html
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n)
%define PACKAGE_HOME %{_datadir}/@PACKAGE@
Packager: Cnangel <junliang.li@alibaba-inc.com>
%description
%{name}(Charset detector) in Mozilla is a XPCOM component which receive bytes as incoming data and base on the bytes of data "guess" what the charset of the data is and report it to the caller.
%package devel
Summary: Header files, libraries for %{name}.
Group: %{group}
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header files and static libraries for %{name}.
If you like to develop programs using %{name}, you will need to install %{name}-devel.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
make check
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post
ldconfig
%postun
ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*.so*
%{_bindir}
%files devel
%defattr(-,root,root,-)
%{_includedir}
%{_libdir}/*.a
%{_libdir}/*.la
%changelog
* Tue Mar 23 2010 Cnangel <junliang.li@alibaba-inc.com> 1.0.0-1
- create spec file
# -fin-