- tabs in preamble
[packages/2UTF.git] / 2UTF.spec
CommitLineData
1ad1af95 1Summary: Translates char-sets and decodes MIME
e0e6f2ca 2Summary(pl.UTF-8): Translator tablic znaków oraz dekoder MIME
7a9a473f 3Name: 2UTF
3a3b3900 4Version: 1.22
b0bad0f9 5Release: 10
7a9a473f 6License: BSD
363f9788 7Group: Applications/Text
7a9a473f 8Source0: ftp://sunsite.unc.edu/pub/Linux/utils/text/%{name}-%{version}.tar.gz
b5b23c8d 9#Source0-md5: 883da4c858570d9d434d23e702304a5a
3a3b3900 10Patch0: %{name}-makefile.patch
606125e8 11Patch1: %{name}-known_charsets_no_tcs.patch
b35808ef 12URL: http://unicode.strangled.net/me/rch/ll.html
f2094933 13Requires: localedb-src
7a9a473f 14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7d429bae 15
7a7420a0 16%define aliasdir /var/lib/misc
7a9a473f
MP
17
18%description
19Filter for char-set translation to and from Unicode. Gets char-set
20definitions from WG15 locales char-maps or similiar tables. Can decode
21nested multi-part MIME messages and invoke external filters. Can
22display char-maps and current console font.
23
238ceb3e
JR
24%description -l pl.UTF-8
25Translator tablic znaków do i z Unikodu. Pobiera definicje tablic
26znaków z lokalnych tablic znaków typu WG15 lub podobnych. Może
27zdekodować wiadomości wieloczęściowe MIME i uruchamiać zewnętrzne
28filtry. Pozwala też wyświetlać tablice znaków i aktualny font
51534d60 29konsolowy.
7a9a473f
MP
30
31%prep
1ad1af95 32%setup -q
606125e8 33%patch0 -p0
34%patch1 -p1
7a9a473f
MP
35
36%build
1ad1af95 37CCFLAGS="%{rpmcflags} -L/usr/lib/gconv"; export CCFLAGS
3a3b3900 38%{__make} config ICONV_DIR=%{_prefix}
1ad1af95 39LDFLAGS="%{rpmcflags} -L/usr/lib/gconv"; export LDFLAGS
3a3b3900
PG
40%{__make} \
41 GZIPDOCS=no \
7a9a473f
MP
42 PREFIX=%{_prefix} \
43 sysconfdir=%{_sysconfdir} \
44 docsdir=%{_docdir}/%{name}-%{version} \
45 var_prefix=/var \
7a7420a0 46 ALIASES=%{aliasdir}/2UTF.aliases \
7a9a473f
MP
47 charmaps_localdatadir=%{_datadir}/i18n/charmaps \
48 man1dir=%{_mandir}/man1 \
3fcde3c5 49 OPT="%{rpmcflags}"
7a9a473f
MP
50
51%install
52rm -rf $RPM_BUILD_ROOT
1d87e574 53install -d $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps
c0589e45
JB
54
55%{__make} install \
56 GZIPDOCS=no \
3fcde3c5 57 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
7a9a473f
MP
58 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
59 var_prefix=$RPM_BUILD_ROOT/var \
7a7420a0 60 ALIASES=$RPM_BUILD_ROOT%{aliasdir}/2UTF.aliases \
3fcde3c5
JB
61 docsdir=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \
62 charmaps_localdatadir=$RPM_BUILD_ROOT%{_datadir}/i18n/charmaps \
63 TERMINFO=$RPM_BUILD_ROOT%{_datadir}/terminfo \
64 man1dir=$RPM_BUILD_ROOT%{_mandir}/man1 \
7a9a473f
MP
65 tmpdir_install=yes \
66 owner=`id -ur` \
c0589e45 67 group=`id -gr`
7a9a473f 68
3fcde3c5
JB
69rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{fromUTF.1,toUTF.1}
70echo ".so 2UTF.1" > $RPM_BUILD_ROOT%{_mandir}/man1/toUTF.1
71echo ".so 2UTF.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fromUTF.1
7a9a473f
MP
72
73ln -sf 2UTF $RPM_BUILD_ROOT%{_bindir}/toUTF
74
c0589e45
JB
75%clean
76rm -rf $RPM_BUILD_ROOT
77
7a9a473f 78%post
7a7420a0
JB
79if [ -f /var/lib/2UTF.aliases ]; then
80 mv -f /var/lib/2UTF.aliases %{aliasdir}/2UTF.aliases
81fi
7a9a473f
MP
82%{_bindir}/2UTF --create-aliases
83
7a9a473f
MP
84%files
85%defattr(644,root,root,755)
c9f23d5d 86%doc examples/* BSD_style_license TODO changelog copyright
1a953616 87%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/2UTF.config
7a9a473f
MP
88%attr(755,root,root) %{_bindir}/*
89%{_mandir}/man1/*
90%{_datadir}/terminfo/l/*
07efc7de 91%ghost %{aliasdir}/2UTF.aliases
This page took 0.057992 seconds and 4 git commands to generate.