source: spec/trunk/SPECS/popt.spec@ 201

Last change on this file since 201 was 168, checked in by Yuri Dario, 14 years ago

spec: massive rebuild due to new rpm lx parser updates (see changeset:167).

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1%define name popt
2%define version 1.15
3
4Summary: C library for parsing command line parameters
5Name: %{name}
6Version: %{version}
7Release: 4%{?dist}
8Epoch: 1
9License: MIT
10Group: System/Libraries
11Url: http://rpm5.org/files/popt/
12Source0: http://rpm5.org/files/popt/%{name}-%{version}.tar.gz
13BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
14
15Patch0: popt-os2.diff
16
17Requires: popt-libs = %{epoch}:%{version}-%{release}
18Requires: popt-data = %{epoch}:%{version}-%{release}
19
20%description
21Popt is a C library for parsing command line parameters. Popt was
22heavily influenced by the getopt() and getopt_long() functions, but
23it improves on them by allowing more powerful argument expansion.
24Popt can parse arbitrary argv[] style arrays and automatically set
25variables based on command line arguments. Popt allows command line
26arguments to be aliased via configuration files and includes utility
27functions for parsing arbitrary strings into argv[] arrays using
28shell-like rules.
29
30%package libs
31Summary: Main %{name} library
32Group: System/Libraries
33Requires: popt-data = %{epoch}:%{version}
34
35%description libs
36This package contains the library needed to run programs dynamically
37linked with the %{name} library.
38
39%package devel
40Summary: Development headers and libraries for %{name}
41Group: Development/C
42Requires: popt-libs >= %{epoch}:%{version}
43
44%description devel
45This package contains the header files and libraries needed for
46developing programs using the %{name} library.
47
48%package data
49Summary: Data files for %{name}
50Group: System/Libraries
51
52%description data
53This package contains popt data files like locales.
54
55%prep
56%setup -q
57%patch0 -p1 -b .os2~
58
59%build
60CONFIG_SHELL="/bin/sh" ; export CONFIG_SHELL ; \
61LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; export LDFLAGS ; \
62%configure --disable-rpath \
63 --disable-shared --enable-static \
64 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
65
66make %{?_smp_mflags}
67
68%install
69rm -rf %{buildroot}
70make DESTDIR=${RPM_BUILD_ROOT} install
71cp popt.dll $RPM_BUILD_ROOT/%{_libdir}
72#%find_lang %name
73
74%clean
75rm -rf %{buildroot}
76
77%files
78%defattr(-,root,root)
79%doc README
80
81%files libs
82%defattr(-,root,root)
83%doc README
84%{_libdir}/*.dll
85
86%files devel
87%defattr(-,root,root)
88%{_includedir}/%{name}.h
89%{_libdir}/%{name}*a
90%{_libdir}/lib%{name}*a
91#%{_libdir}/*.dll
92%{_mandir}/man3/popt.*
93
94%files data
95# -f %{name}.lang
96%defattr(-,root,root)
97%{_datadir}/locale/*
98
99
100%changelog
Note: See TracBrowser for help on using the repository browser.