]> git.pld-linux.org Git - SPECS.git/blob - opt.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / opt.spec
1 Summary:        Options and Parameter parsing Tool
2 Summary(pl.UTF-8):      Narzędzie do analizowania opcji oraz parametrów
3 Name:           opt
4 Version:        3.19
5 Release:        1
6 License:        GPL
7 Source0:        http://nis-www.lanl.gov/~jt/Software/opt/%{name}-%{version}.tar.gz
8 # Source0-md5:  587171c4e15a40adde8aa1b3d77328e9
9 Group:          Development/Libraries
10 BuildRequires:  readline-devel
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 opt is a library of subroutines for communicating options and
15 parameter values to a C program via the command line, parameter files,
16 environment variables, or a rudimentary builtin interactive menu. It
17 is similar in aims to the standard getopt() utility, but it has a
18 different (I would say better) interface to the programmer, and a few
19 more bells and whistles for the end-users of programs that employ opt.
20
21 %description -l pl.UTF-8
22 opt jest biblioteką zawierającą funkcje pozwalające analizować opcje i
23 parametry w programie C przesyłane przez linię poleceń, pliki z
24 parametrami, zmienne środowiska lub wbudowane interaktywne menu. opt
25 jest podobny do tego do czego dąży standardowa funkcja getopt() ale ma
26 inny (lepszy) interfejs programisty oraz więcej możliwości.
27
28 %prep
29 %setup -q
30
31 %build
32 %configure2_13 \
33         --disable-test \
34         --with-readline
35
36 %{__make} \
37         CXX="%{__cxx}"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post   -p      /sbin/postshell
49 -/usr/sbin/fix-info-dir -c %{_infodir}
50
51 %postun
52 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
53
54
55 %files
56 %defattr(644,root,root,755)
57 %doc AUTHORS ChangeLog NEWS
58 %{_includedir}/*.h
59 %{_libdir}/*.a
60 %{_infodir}/opt.info*
This page took 0.643533 seconds and 3 git commands to generate.