This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
popt.spec.in
82 lines (64 loc) · 2.04 KB
/
popt.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%{expand:%%global _pkgconfigdir %{_libdir}/pkgconfig}
%define _libdir /%{_lib}
Summary: A C library for parsing command line parameters.
Name: popt
Version: @VERSION@
Release: 1
License: X Consortium
Group: System Environment/Libraries
Source: http://rpm5.org/files/popt/%{name}-%{version}.tar.gz
BuildRequires: gettext
BuildRoot: %{_tmppath}/%{name}-root
%description
Popt is a C library for parsing command line parameters. Popt was
heavily influenced by the getopt() and getopt_long() functions, but it
improves on them by allowing more powerful argument expansion. Popt
can parse arbitrary argv[] style arrays and automatically set
variables based on command line arguments. Popt allows command line
arguments to be aliased via configuration files and includes utility
functions for parsing arbitrary strings into argv[] arrays using
shell-like rules.
%prep
%setup -q
%build
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang popt
%check
make check || :
%track
prog popt = {
version = %{version}
url = http://rpm5.org/%{name}
regex = %{name}-(\d+\.\d+\.\d+)\.tar\.gz
}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f popt.lang
%defattr(-,root,root)
%{_libdir}/libpopt.*
%{_includedir}/popt.h
%{_mandir}/man3/popt.3*
%{_pkgconfigdir}/popt.pc
%changelog
* Wed Feb 17 2010 Jeff Johnson <[email protected]>
- release popt-1.16 through rpm5.org.
* Fri Apr 10 2009 Jeff Johnson <[email protected]>
- release popt-1.15 through rpm5.org.
* Tue Dec 11 2007 Jeff Johnson <[email protected]>
- release popt-1.13 through rpm5.org.
* Tue Jul 10 2007 Jeff Johnson <[email protected]>
- release popt-1.12 through rpm5.org.
* Sat Jun 9 2007 Jeff Johnson <[email protected]>
- release popt-1.11 through rpm5.org.
* Thu Dec 10 1998 Michael Johnson <[email protected]>
- released 1.2.2; see CHANGES
* Tue Nov 17 1998 Michael K. Johnson <[email protected]>
- added man page to default install
* Thu Oct 22 1998 Erik Troan <[email protected]>
- see CHANGES file for 1.2
* Thu Apr 09 1998 Erik Troan <[email protected]>
- added ./configure step to spec file