]> git.pld-linux.org Git - packages/2UTF.git/blob - 2UTF.spec
plomba buildrootowa
[packages/2UTF.git] / 2UTF.spec
1 Summary:        Translates char-sets and decodes MIME.
2 Name:           2UTF
3 Version:        1.10
4 Release:        1
5 Copyright:      BSD
6 Group:          Utilities/Text
7 URL:            http://www.angelfire.com/me/rch/ll.html#2UTF
8 Source:         ftp://sunsite.unc.edu:/pub/Linux/utils/text/2UTF-1.10.tar.gz
9 Patch:          2UTF-install.patch
10 BuildRoot:      /tmp/%{name}-%{version}-root
11
12 %description
13 Filter for char-set translation to and from Unicode.
14 Gets char-set definitions from WG15 locales char-maps or similiar tables.
15 Can decode nested multi-part MIME messages and invoke external filters.
16 Can display char-maps and current console font.  
17
18 %prep
19 %setup -q
20 %patch -p0
21
22 %build
23 make config
24 make GZIPDOCS=no \
25         PREFIX=%{_prefix} \
26         sysconfdir=/etc \
27         docsdir=%{_docdir}/%{name}-%{version} \
28         var_prefix=/var \
29         ALIASES=/var/state/2UTF.aliases \
30         charmaps_localdatadir=%{_datadir}/i18n/charmaps \
31         man1dir=%{_mandir}/man1 \
32         OPT="$RPM_OPT_FLAGS"
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 make GZIPDOCS=no \
37         PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
38         sysconfdir=$RPM_BUILD_ROOT/etc \
39         var_prefix=$RPM_BUILD_ROOT/var \
40         ALIASES=$RPM_BUILD_ROOT/var/state/2UTF.aliases \
41         docsdir=$RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version} \
42         charmaps_localdatadir=$RPM_BUILD_ROOT/%{_datadir}/i18n/charmaps \
43         TERMINFO=$RPM_BUILD_ROOT/%{_datadir}/terminfo \
44         man1dir=$RPM_BUILD_ROOT/%{_mandir}/man1 \
45         tmpdir_install=yes \
46         owner=`id -ur` \
47         group=`id -gr` \
48         install
49
50 rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/{fromUTF.1,toUTF.1}
51 echo ".so 2UTF.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/toUTF.1
52 echo ".so 2UTF.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/fromUTF.1
53
54 gzip -9nf $RPM_BUILD_ROOT/%{_mandir}/man1/* examples/* \
55         BSD_style_license TODO changelog copyright || :
56
57 %post
58 %{_bindir}/2UTF --create-aliases
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc {BSD_style_license,TODO,changelog,copyright}.gz examples
66 %config /etc/2UTF.config
67 %attr(755,root,root) %{_bindir}/*
68 %attr(755,root,root) %{_sbindir}/*
69 %{_mandir}/man1/*
70 %{_datadir}/terminfo/l/*
71
72 %changelog
73 * Wed Jul 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
74   [1.10-1]
75 - FHS 2.0
76 - spec cleanup
This page took 0.122489 seconds and 3 git commands to generate.