File: libchardet.spec

package info (click to toggle)
libchardet 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,444 kB
  • sloc: sh: 11,197; cpp: 5,181; ansic: 205; makefile: 108
file content (70 lines) | stat: -rw-r--r-- 1,740 bytes parent folder | download | duplicates (2)
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
67
68
69
70
%define _unpackaged_files_terminate_build 0

Summary: Mozilla Universal Chardet library
Summary(ko): 모질라 유니버샬 캐릭터셋 디텍트 라이브러리
Name: libchardet
Version: 1.0.6
Release: 1
Epoch: 1
License: MPL
Group: System Environment/Libraries
Source0: https://github.com/Joungkyun/libchardet/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
URL: https://github.com/Joungkyun/libchardet
BuildRequires: libstdc++-devel
Requires: libstdc++

BuildRoot:%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

%description
libchardet provides an interface to Mozilla's universal charset detector,
which detects the charset used to encode data.

%package devel
Summary: Header and object files for development using libchardet
Summary(ko): libchardet 를 이용하여 개발하기 위한 header 파일과 목적 파일들
Group: System Environment/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}, libstdc++-devel

%description devel
The libchardet-devel package contains the header and object files necessary
for developing programs which use the libchardet libraries.

%prep
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%setup -q

%build
%configure

%{__make} %{?_smp_mflags}

%install
%{__make} DESTDIR=%{buildroot} install

%clean
%{__rm} -rf %{buildroot}

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(0755,root,root)
%{_libdir}/%{name}.so.*

%files devel
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/chardet-config
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/pkgconfig/chardet.pc
%{_includedir}/chardet/*.h
%{_mandir}/man3/*
%{_mandir}/ko/man3/*

%changelog
* Fri May 14 2021 JoungKyun.Kim <hostmaster@oops.org> 1:1.0.6-1
- packaged 1.0.6