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