summaryrefslogtreecommitdiffstats
path: root/librcc.spec.in
blob: 3a193a3b7082709554e89586b514163daf0d7fef (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%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}csa
%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
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/etc/rcc
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/rcc/engines/
mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{prefix}/lib/*.la
rm -f $RPM_BUILD_ROOT%{prefix}/lib/rcc/engines/*.a
rm -f $RPM_BUILD_ROOT%{prefix}/lib/rcc/engines/*.la
make -C examples
install -m 755 examples/rcc-gtk*-config $RPM_BUILD_ROOT/%{prefix}/bin 


install -m 644 examples/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
%doc examples/rcc-example.xml
%dir /etc/rcc
/etc/rcc.xml
%{prefix}/lib/lib*.so.*
%{prefix}/lib/rcc/
%{prefix}/bin/rcc-gtk*-config

%files devel
%defattr(-, root, root)  
%{prefix}/include/
%{prefix}/lib/lib*.so
%{prefix}/lib/*.a

%changelog