]> git.pld-linux.org Git - packages/ckermit.git/blob - ckermit.spec
37bdc28228467750ab4d55c3ae996bd53aff605b
[packages/ckermit.git] / ckermit.spec
1 Summary:        The quintessential all-purpose communications program
2 Name:           ckermit
3 Version:        7.0.197
4 Release:        2
5 LIcense:        Special (see Copyright Notice)
6 Group:          Applications/Communications
7 Group(pl):      Aplikacje/Komunikacja
8 Vendor:         The Kermit Project <kermit@columbia.edu>
9 Source0:        ftp://kermit.columbia.edu/kermit/archives/cku197.tar.gz
10 Source1:        cku-%{name}.local.ini
11 Source2:        cku-%{name}.modem.generic.ini
12 Source3:        cku-%{name}.locale.ini
13 Source4:        cku-%{name}.phone
14 Patch0:         cku-ssl-krb-srp.patch.gz
15 Patch1:         cku-makefile.patch
16 URL:            http://www.columbia.edu/kermit/
17 BuildRequires:  pam-devel
18 BuildRequires:  openssl-devel
19 BuildRequires:  gmp-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 C-Kermit is a combined serial and network communication software
24 package offering a consistent, medium-independent, cross-platform
25 approach to connection establishment, terminal sessions, file transfer
26 and management, character-set translation, and automation of
27 communication tasks. For more information please see:
28
29 http://www.columbia.edu/kermit/
30
31 C-KERMIT 7.0 COPYRIGHT NOTICE:
32
33 The C-Kermit license does not fall into any convenient category. It is
34 not commercial, not shareware, not freeware, not GPL. The terms can be
35 summarized as follows:
36
37 1. You may download C-Kermit without license or fee for your own use
38 or internal use within your company or institution.
39
40 2. You may install C-Kermit without license or fee as a service or
41 application on a computer within your company that is accessed by
42 customers or clients. This provision would apply, for example, to an
43 ISP or a medical claims clearinghouse.
44
45 3. You may include C-Kermit with a "Free UNIX" or other Open Source
46 operating-system distribution such as GNU/Linux, FreeBSD, NetBSD,
47 OpenBSD, etc.
48
49 4. Except as in (3), you may not sell or otherwise furnish C-Kermit as
50 a software product, or a component of any product, to actual or
51 potential customers or clients without a commercial license; to see
52 the commercial license terms, CLICK HERE.
53
54 In addition, we request that those who make more than casual use of
55 C-Kermit purchase the published manual, Using C-Kermit. This helps
56 them to get the most out of the software, it reduces the load on our
57 help desk, and it helps to fund the Kermit Project.
58
59 The Kermit Project must fund itself entirely out of income, which
60 comes from software licenses, book sales, and support contracts. The
61 C-Kermit licensing terms are designed to be as generous and fair as
62 possible within this framework. Simply stated: if you just want to use
63 it, be our guest. If you want us to help you use it, please consult
64 the manual first. If you want to make a product or commodity of it,
65 you have to pay for it.
66
67
68 %prep
69 %setup -q -c
70 %patch0 -p1
71 %patch1 -p1
72
73 %build
74 %{__make} linux-PLD+ssl+pam OPT="$RPM_OPT_FLAGS" LNKFLAGS="-s"
75 #make linux-pld-ssl-srp-pam OPT="$RPM_OPT_FLAGS" LDFLAGS="-s"
76 #make linux-pld-krb-ssl-srp-pam OPT="$RPM_OPT_FLAGS" LDFLAGS="-s"
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}/kermit}
81
82 perl -pi -e "s|%{_prefix}/local/bin/kermit|%{_bindir}/kermit|g" ckermit.ini
83
84 install -s krbmit $RPM_BUILD_ROOT%{_bindir}/kermit
85 install ckuker.nr $RPM_BUILD_ROOT%{_mandir}/man1/kermit.1
86 install ckermit.ini $RPM_BUILD_ROOT%{_sysconfdir}/kermit/
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/kermit/ckermit.local.ini
88 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/kermit/ckermit.modem.ini
89 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kermit/ckermit.locale.ini
90 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/kermit/ckermit.phone
91
92 gzip -9nf ckaaaa.txt ckc197.txt ckcbwr.txt ckccfg.txt ckcplm.txt \
93         ckermit2.txt ckuaaa.txt ckubwr.txt ckwart.txt iksd.txt \
94         security.txt telnet.txt COPYING.TXT \
95         $RPM_BUILD_ROOT%{_mandir}/man1/*
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %doc {ckaaaa.txt,ckc197.txt,ckcbwr.txt,ckccfg.txt,ckcplm.txt}.gz
103 %doc {ckermit2.txt,ckuaaa.txt,ckubwr.txt,ckwart.txt,iksd.txt}.gz
104 %doc {security.txt,telnet.txt,COPYING.TXT}.gz
105 %dir %{_sysconfdir}/kermit
106 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/kermit/*
107 %attr(755, root, root) %{_bindir}/kermit
108 %{_mandir}/man1/kermit.1*
This page took 0.228631 seconds and 2 git commands to generate.