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

Last change on this file since 25 was 11, checked in by Yuri Dario, 15 years ago

spec: initial import for base .spec files.

  • Property svn:eol-style set to native
File size: 3.5 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: 1
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
15Requires: popt-libs
16
17%description
18Popt is a C library for parsing command line parameters. Popt was
19heavily influenced by the getopt() and getopt_long() functions, but
20it improves on them by allowing more powerful argument expansion.
21Popt can parse arbitrary argv[] style arrays and automatically set
22variables based on command line arguments. Popt allows command line
23arguments to be aliased via configuration files and includes utility
24functions for parsing arbitrary strings into argv[] arrays using
25shell-like rules.
26
27%package libs
28Summary: Main %{name} library
29Group: System/Libraries
30Requires: popt-data = %{epoch}:%{version}
31
32%description libs
33This package contains the library needed to run programs dynamically
34linked with the %{name} library.
35
36%package devel
37Summary: Development headers and libraries for %{name}
38Group: Development/C
39Requires: popt-libs >= %{epoch}:%{version}
40
41%description devel
42This package contains the header files and libraries needed for
43developing programs using the %{name} library.
44
45%package data
46Summary: Data files for %{name}
47Group: System/Libraries
48
49%description data
50This package contains popt data files like locales.
51
52%prep
53%setup -q
54
55%build
56CONFIG_SHELL="/bin/sh" ; export CONFIG_SHELL ; \
57%configure --disable-rpath \
58 --disable-shared --enable-static \
59 "--cache-file=%{_topdir}/cache/%{name}.cache"
60
61make %{?_smp_mflags}
62
63%install
64rm -rf %{buildroot}
65make DESTDIR=${RPM_BUILD_ROOT} install
66#%find_lang %name
67
68%clean
69rm -rf %{buildroot}
70
71%files
72%defattr(-,root,root)
73%doc README
74
75%files libs
76%defattr(-,root,root)
77%doc README
78#/%{_lib}/lib%{name}.so.%{lib_major}*
79
80%files devel
81%defattr(-,root,root)
82%{_includedir}/%{name}.h
83%{_libdir}/%{name}*a
84%{_libdir}/lib%{name}*a
85#/%{_lib}/lib%{name}.so
86%{_mandir}/man3/popt.*
87
88%files data
89# -f %{name}.lang
90%defattr(-,root,root)
91%{_usr}/share/locale/cs/LC_MESSAGES/popt.mo
92%{_usr}/share/locale/da/LC_MESSAGES/popt.mo
93%{_usr}/share/locale/de/LC_MESSAGES/popt.mo
94%{_usr}/share/locale/eo/LC_MESSAGES/popt.mo
95%{_usr}/share/locale/es/LC_MESSAGES/popt.mo
96%{_usr}/share/locale/fi/LC_MESSAGES/popt.mo
97%{_usr}/share/locale/fr/LC_MESSAGES/popt.mo
98%{_usr}/share/locale/ga/LC_MESSAGES/popt.mo
99%{_usr}/share/locale/gl/LC_MESSAGES/popt.mo
100%{_usr}/share/locale/hu/LC_MESSAGES/popt.mo
101%{_usr}/share/locale/id/LC_MESSAGES/popt.mo
102%{_usr}/share/locale/is/LC_MESSAGES/popt.mo
103%{_usr}/share/locale/it/LC_MESSAGES/popt.mo
104%{_usr}/share/locale/ja/LC_MESSAGES/popt.mo
105%{_usr}/share/locale/ko/LC_MESSAGES/popt.mo
106%{_usr}/share/locale/nb/LC_MESSAGES/popt.mo
107%{_usr}/share/locale/nl/LC_MESSAGES/popt.mo
108%{_usr}/share/locale/pl/LC_MESSAGES/popt.mo
109%{_usr}/share/locale/pt/LC_MESSAGES/popt.mo
110%{_usr}/share/locale/ro/LC_MESSAGES/popt.mo
111%{_usr}/share/locale/ru/LC_MESSAGES/popt.mo
112%{_usr}/share/locale/sk/LC_MESSAGES/popt.mo
113%{_usr}/share/locale/sl/LC_MESSAGES/popt.mo
114%{_usr}/share/locale/sv/LC_MESSAGES/popt.mo
115%{_usr}/share/locale/th/LC_MESSAGES/popt.mo
116%{_usr}/share/locale/tr/LC_MESSAGES/popt.mo
117%{_usr}/share/locale/uk/LC_MESSAGES/popt.mo
118%{_usr}/share/locale/vi/LC_MESSAGES/popt.mo
119%{_usr}/share/locale/wa/LC_MESSAGES/popt.mo
120%{_usr}/share/locale/zh_CN/LC_MESSAGES/popt.mo
121%{_usr}/share/locale/zh_TW/LC_MESSAGES/popt.mo
122
123
124%changelog
Note: See TracBrowser for help on using the repository browser.