blob: f89af8b1607d4a3c4fcf7579ca1bdcdffa59785c (
plain)
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
71
72
73
74
75
76
77
|
%define realrelease 1
%define cvs @LIBRCC_CVS@
%if %cvs
%define buildname @LIBRCC_CVS_DATE@
%define release 0.%{buildname}.%{realrelease}csa
%else
%define buildname @VERSION@
%define release %{realrelease}
%endif
Summary: Russian Charset Conversion Library
Name: librcc
Version: @VERSION@
Release: %{release}
License: GPL
Group: Development/Libraries
Vendor: DarkSoft <ds7fff@myrealbox.com>
Distribution: DarkLin <ds7fff@myrealbox.com>
Packager: Suren A. Chilingaryan <ds7fff@myrealbox.com>
Source: librcc-%{buildname}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://rusxmms.sourceforge.net
Prefix: %{_prefix}
Docdir: %{_docdir}
BuildRequires: librcd-devel
Requires: librcd
%description
Provides posibility to automaticaly convert considered encodings (a lot of
languages is supported, not only russian one) to/from UTF-8. The library
is part of rusxmms patch.
%package devel
Summary: Russian Encoding Conversion Library
Group: Development/Libraries
Requires: librcc = %{version}
Requires: librcd
%description devel
Provides posibility to automaticaly convert considered encodings (a lot of
languages is supported, not only russian one) to/from UTF-8. The library
is part of rusxmms patch.
%prep
%setup -q -n %{name}-%{buildname}
%build
%configure
%install
%makeinstall prefix=$RPM_BUILD_ROOT%{prefix}
rm -f $RPM_BUILD_ROOT%{prefix}/lib/*.la
mkdir -p $RPM_BUILD_ROOT/etc
install -m 644 example/rcc.xml $RPM_BUILD_ROOT/etc
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING
/etc/rcc.xml
%{prefix}/lib/lib*.so.*
%files devel
%defattr(-, root, root)
%{prefix}/include/
%{prefix}/lib/lib*.so
%{prefix}/lib/*.a
%changelog
|