| 1 | %define name popt
|
|---|
| 2 | %define version 1.15
|
|---|
| 3 |
|
|---|
| 4 | Summary: C library for parsing command line parameters
|
|---|
| 5 | Name: %{name}
|
|---|
| 6 | Version: %{version}
|
|---|
| 7 | Release: 1
|
|---|
| 8 | Epoch: 1
|
|---|
| 9 | License: MIT
|
|---|
| 10 | Group: System/Libraries
|
|---|
| 11 | Url: http://rpm5.org/files/popt/
|
|---|
| 12 | Source0: http://rpm5.org/files/popt/%{name}-%{version}.tar.gz
|
|---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|---|
| 14 |
|
|---|
| 15 | Requires: popt-libs
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | Popt is a C library for parsing command line parameters. Popt was
|
|---|
| 19 | heavily influenced by the getopt() and getopt_long() functions, but
|
|---|
| 20 | it improves on them by allowing more powerful argument expansion.
|
|---|
| 21 | Popt can parse arbitrary argv[] style arrays and automatically set
|
|---|
| 22 | variables based on command line arguments. Popt allows command line
|
|---|
| 23 | arguments to be aliased via configuration files and includes utility
|
|---|
| 24 | functions for parsing arbitrary strings into argv[] arrays using
|
|---|
| 25 | shell-like rules.
|
|---|
| 26 |
|
|---|
| 27 | %package libs
|
|---|
| 28 | Summary: Main %{name} library
|
|---|
| 29 | Group: System/Libraries
|
|---|
| 30 | Requires: popt-data = %{epoch}:%{version}
|
|---|
| 31 |
|
|---|
| 32 | %description libs
|
|---|
| 33 | This package contains the library needed to run programs dynamically
|
|---|
| 34 | linked with the %{name} library.
|
|---|
| 35 |
|
|---|
| 36 | %package devel
|
|---|
| 37 | Summary: Development headers and libraries for %{name}
|
|---|
| 38 | Group: Development/C
|
|---|
| 39 | Requires: popt-libs >= %{epoch}:%{version}
|
|---|
| 40 |
|
|---|
| 41 | %description devel
|
|---|
| 42 | This package contains the header files and libraries needed for
|
|---|
| 43 | developing programs using the %{name} library.
|
|---|
| 44 |
|
|---|
| 45 | %package data
|
|---|
| 46 | Summary: Data files for %{name}
|
|---|
| 47 | Group: System/Libraries
|
|---|
| 48 |
|
|---|
| 49 | %description data
|
|---|
| 50 | This package contains popt data files like locales.
|
|---|
| 51 |
|
|---|
| 52 | %prep
|
|---|
| 53 | %setup -q
|
|---|
| 54 |
|
|---|
| 55 | %build
|
|---|
| 56 | CONFIG_SHELL="/bin/sh" ; export CONFIG_SHELL ; \
|
|---|
| 57 | %configure --disable-rpath \
|
|---|
| 58 | --disable-shared --enable-static \
|
|---|
| 59 | "--cache-file=%{_topdir}/cache/%{name}.cache"
|
|---|
| 60 |
|
|---|
| 61 | make %{?_smp_mflags}
|
|---|
| 62 |
|
|---|
| 63 | %install
|
|---|
| 64 | rm -rf %{buildroot}
|
|---|
| 65 | make DESTDIR=${RPM_BUILD_ROOT} install
|
|---|
| 66 | #%find_lang %name
|
|---|
| 67 |
|
|---|
| 68 | %clean
|
|---|
| 69 | rm -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
|
|---|