- use new %doc infrastructure.
[packages/2UTF.git] / 2UTF.spec
1 Summary:        Translates char-sets and decodes MIME
2 Summary(pl):    Translator tablic znaków oraz dekoder MIME
3 Name:           2UTF
4 Version:        1.22
5 Release:        5
6 License:        BSD
7 Group:          Applications/Text
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/utils/text/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-makefile.patch
10 URL:            http://x-lt.richard.eu.org/me/rch/ll.html
11 #URL:           http://www.angelfire.com/me/rch/ll.html#2UTF
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         _sysconfdir     /etc
15 %define         aliasdir        /var/lib/misc
16
17 %description
18 Filter for char-set translation to and from Unicode. Gets char-set
19 definitions from WG15 locales char-maps or similiar tables. Can decode
20 nested multi-part MIME messages and invoke external filters. Can
21 display char-maps and current console font.
22
23 %description -l pl
24 Translator tablic znaków do i z Unikodu. Pobiera definicje tablic
25 znaków z lokalnych WG15 tablic znaków lub podobnych. Mo¿e zdekodowaæ
26 wiadomo¶ci wieloczê¶ciowe MIME i uruchamiaæ zewnêtrzne filtry. Mo¿e
27 wy¶wietlaæ tablice znaków i aktualny font konsolowy.
28
29 %prep
30 %setup -q
31 %patch -p0
32
33 %build
34 CCFLAGS="%{rpmcflags} -L/usr/lib/gconv"; export CCFLAGS
35 %{__make} config ICONV_DIR=%{_prefix}
36 LDFLAGS="%{rpmcflags} -L/usr/lib/gconv"; export LDFLAGS
37 %{__make} \
38         GZIPDOCS=no \
39         PREFIX=%{_prefix} \
40         sysconfdir=%{_sysconfdir} \
41         docsdir=%{_docdir}/%{name}-%{version} \
42         var_prefix=/var \
43         ALIASES=%{aliasdir}/2UTF.aliases \
44         charmaps_localdatadir=%{_datadir}/i18n/charmaps \
45         man1dir=%{_mandir}/man1 \
46         OPT="%{rpmcflags}"
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps
51 %{__make} GZIPDOCS=no \
52         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
53         sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
54         var_prefix=$RPM_BUILD_ROOT/var \
55         ALIASES=$RPM_BUILD_ROOT%{aliasdir}/2UTF.aliases \
56         docsdir=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \
57         charmaps_localdatadir=$RPM_BUILD_ROOT%{_datadir}/i18n/charmaps \
58         TERMINFO=$RPM_BUILD_ROOT%{_datadir}/terminfo \
59         man1dir=$RPM_BUILD_ROOT%{_mandir}/man1 \
60         tmpdir_install=yes \
61         owner=`id -ur` \
62         group=`id -gr` \
63         install
64
65 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{fromUTF.1,toUTF.1}
66 echo ".so 2UTF.1" > $RPM_BUILD_ROOT%{_mandir}/man1/toUTF.1
67 echo ".so 2UTF.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fromUTF.1
68
69 ln -sf 2UTF $RPM_BUILD_ROOT%{_bindir}/toUTF
70
71 %post
72 if [ -f /var/lib/2UTF.aliases ]; then
73         mv -f /var/lib/2UTF.aliases %{aliasdir}/2UTF.aliases
74 fi
75 %{_bindir}/2UTF --create-aliases
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc examples/* BSD_style_license TODO changelog copyright
83 %config %{_sysconfdir}/2UTF.config
84 %attr(755,root,root) %{_bindir}/*
85 %{_mandir}/man1/*
86 %{_datadir}/terminfo/l/*
87 %attr(644,root,root) %ghost %{aliasdir}/2UTF.aliases
This page took 0.041218 seconds and 3 git commands to generate.