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