[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | Summary: C library for parsing command line parameters |
---|
| 3 | Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ |
---|
| 4 | Name: popt |
---|
| 5 | Version: 1.14 |
---|
| 6 | Release: 4%{?_dist_release} |
---|
| 7 | License: MIT |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | URL: http://www.rpm5.org/ |
---|
| 10 | Source0: http://www.rpm5.org/files/%{name}/%{name}-%{version}.tar.gz |
---|
| 11 | BuildRequires: gettext, doxygen, graphviz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-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 |
---|
| 17 | it improves on them by allowing more powerful argument expansion. |
---|
| 18 | Popt 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 | %description -l ja |
---|
| 25 | Poptはコマンドパラメータを文法解析するためのCライブラリです。 |
---|
| 26 | Poptは getopt()やgetopt_long()関数の影響を強く受けていますが、 |
---|
| 27 | もっと強力な引数の拡張を施すことによって、それらをもっと進化 |
---|
| 28 | させています。Poptは 任意の argv[]形式配列を解析して、コマンド |
---|
| 29 | ライン引数に基づいて変数を自動的に設定します。 |
---|
| 30 | Poptは、コマンドライン引数を設定ファイルによってエイリアス化を |
---|
| 31 | 許可したり、シェルライクな方針を用いた任意の文字列を文法解析し |
---|
| 32 | てargv[]配列に変換したりするユーティリティ関数を含んでいます。 |
---|
| 33 | |
---|
| 34 | %package devel |
---|
| 35 | Summary: Development files for the popt library |
---|
| 36 | Summary(ja): popt ライブラリの開発ファイル |
---|
| 37 | Group: Development/Libraries |
---|
| 38 | Requires: %{name} = %{version}-%{release} |
---|
| 39 | |
---|
| 40 | %description devel |
---|
| 41 | The popt-devel package includes header files and libraries necessary |
---|
| 42 | for developing programs which use the popt C library. It contains the |
---|
| 43 | API documentation of the popt library, too. |
---|
| 44 | |
---|
| 45 | %package -n compat32-%{name} |
---|
| 46 | Summary: A C library for parsing command line parameters. |
---|
| 47 | Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ |
---|
| 48 | Group: Development/Libraries |
---|
| 49 | Requires: %{name} = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description -n compat32-%{name} |
---|
| 52 | Popt is a C library for parsing command line parameters. Popt was |
---|
| 53 | heavily influenced by the getopt() and getopt_long() functions, but it |
---|
| 54 | improves on them by allowing more powerful argument expansion. Popt |
---|
| 55 | can parse arbitrary argv[] style arrays and automatically set |
---|
| 56 | variables based on command line arguments. Popt allows command line |
---|
| 57 | arguments to be aliased via configuration files and includes utility |
---|
| 58 | functions for parsing arbitrary strings into argv[] arrays using |
---|
| 59 | shell-like rules. |
---|
| 60 | |
---|
| 61 | %description -n compat32-%{name} -l ja |
---|
| 62 | Poptはコマンドパラメータを文法解析するためのCライブラリです。 |
---|
| 63 | Poptは getopt()やgetopt_long()関数の影響を強く受けていますが、 |
---|
| 64 | もっと強力な引数の拡張を施すことによって、それらをもっと進化 |
---|
| 65 | させています。Poptは 任意の argv[]形式配列を解析して、コマンド |
---|
| 66 | ライン引数に基づいて変数を自動的に設定します。 |
---|
| 67 | Poptは、コマンドライン引数を設定ファイルによってエイリアス化を |
---|
| 68 | 許可したり、シェルライクな方針を用いた任意の文字列を文法解析し |
---|
| 69 | てargv[]配列に変換したりするユーティリティ関数を含んでいます。 |
---|
| 70 | |
---|
| 71 | %package -n compat32-%{name}-devel |
---|
| 72 | Summary: Development files for the popt library |
---|
| 73 | Summary(ja): popt ライブラリの開発ファイル |
---|
| 74 | Group: Development/Libraries |
---|
| 75 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 76 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | %description -n compat32-%{name}-devel |
---|
| 79 | The popt-devel package includes header files and libraries necessary |
---|
| 80 | for developing programs which use the popt C library. It contains the |
---|
| 81 | API documentation of the popt library, too. |
---|
| 82 | |
---|
| 83 | %prep |
---|
| 84 | %setup -q |
---|
| 85 | |
---|
| 86 | %build |
---|
| 87 | %configure --libdir=/%{_lib} |
---|
| 88 | make %{?_smp_mflags} |
---|
| 89 | doxygen |
---|
| 90 | |
---|
| 91 | %install |
---|
| 92 | rm -rf $RPM_BUILD_ROOT |
---|
| 93 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 94 | |
---|
| 95 | # Move libpopt.{so,a} to %{_libdir} |
---|
| 96 | rm -f $RPM_BUILD_ROOT/%{_lib}/libpopt.{la,so} |
---|
| 97 | pushd $RPM_BUILD_ROOT/%{_lib} |
---|
| 98 | mkdir -p $RPM_BUILD_ROOT%{_libdir} |
---|
| 99 | ln -sf ../../%{_lib}/$(ls libpopt.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/libpopt.so |
---|
| 100 | popd |
---|
| 101 | mv -f $RPM_BUILD_ROOT/%{_lib}/libpopt.a $RPM_BUILD_ROOT%{_libdir}/libpopt.a |
---|
| 102 | |
---|
| 103 | # Multiple popt configurations are possible |
---|
| 104 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d |
---|
| 105 | |
---|
| 106 | %find_lang %{name} |
---|
| 107 | |
---|
| 108 | %clean |
---|
| 109 | rm -rf $RPM_BUILD_ROOT |
---|
| 110 | |
---|
| 111 | %post -p /sbin/ldconfig |
---|
| 112 | |
---|
| 113 | %postun -p /sbin/ldconfig |
---|
| 114 | |
---|
| 115 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 116 | |
---|
| 117 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 118 | |
---|
| 119 | %files -f %{name}.lang |
---|
| 120 | %defattr(-,root,root) |
---|
| 121 | %doc CHANGES COPYING |
---|
| 122 | %{_sysconfdir}/popt.d |
---|
| 123 | /%{_lib}/libpopt.so.* |
---|
| 124 | |
---|
| 125 | %files devel |
---|
| 126 | %defattr(-,root,root) |
---|
| 127 | %doc README doxygen/html |
---|
| 128 | %{_libdir}/libpopt.so |
---|
| 129 | %{_libdir}/libpopt.a |
---|
| 130 | %{_includedir}/popt.h |
---|
| 131 | %{_mandir}/man3/popt.3* |
---|
| 132 | |
---|
| 133 | %if %{build_compat32} |
---|
| 134 | %files -n compat32-%{name} |
---|
| 135 | %defattr(-,root,root) |
---|
| 136 | /%{_lib}/libpopt.so.* |
---|
| 137 | |
---|
| 138 | %files -n compat32-%{name}-devel |
---|
| 139 | %defattr(-,root,root) |
---|
| 140 | %{_libdir}/libpopt.so |
---|
| 141 | %{_libdir}/libpopt.a |
---|
| 142 | %endif |
---|
| 143 | |
---|
| 144 | |
---|
| 145 | %changelog |
---|
| 146 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.14-4 |
---|
| 147 | - rebuilt with new toolchain |
---|
| 148 | |
---|
| 149 | * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.14-3 |
---|
| 150 | - updated Requires: and %%files section on compat32 subpackages |
---|
| 151 | |
---|
| 152 | * Mon Jun 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.14-2 |
---|
| 153 | - added %%define build_compat32 |
---|
| 154 | - fixed compat32 directories |
---|
| 155 | |
---|
| 156 | * Mon Aug 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.14-1 |
---|
| 157 | - initial build for Vine Linux |
---|
| 158 | - splitted out from rpm, based on rpm5.org source. |
---|
| 159 | - move libpopt to /lib[64] from /usr/lib[64] |
---|
| 160 | - initscripts-8 uses libpopt. |
---|
| 161 | |
---|
| 162 | * Sun May 25 2008 Robert Scheck <robert@fedoraproject.org> 1.13-4 |
---|
| 163 | - Solved multilib problems at doxygen generated files (#342921) |
---|
| 164 | |
---|
| 165 | * Wed Feb 20 2008 Robert Scheck <robert@fedoraproject.org> 1.13-3 |
---|
| 166 | - Revert the broken bind_textdomain_codeset() patch (#433324) |
---|
| 167 | |
---|
| 168 | * Thu Feb 14 2008 Robert Scheck <robert@fedoraproject.org> 1.13-2 |
---|
| 169 | - Added patch to work around missing bind_textdomain_codeset() |
---|
| 170 | |
---|
| 171 | * Sun Dec 30 2007 Robert Scheck <robert@fedoraproject.org> 1.13-1 |
---|
| 172 | - Upgrade to 1.13 (#290531, #332201, #425803) |
---|
| 173 | - Solved multilib problems at doxygen generated files (#342921) |
---|
| 174 | |
---|
| 175 | * Thu Aug 23 2007 Robert Scheck <robert@fedoraproject.org> 1.12-3 |
---|
| 176 | - Added buildrequirement to graphviz (#249352) |
---|
| 177 | - Backported bugfixes from CVS (#102254, #135428 and #178413) |
---|
| 178 | |
---|
| 179 | * Sun Aug 12 2007 Robert Scheck <robert@fedoraproject.org> 1.12-2 |
---|
| 180 | - Move libpopt to /lib[64] (#249814) |
---|
| 181 | - Generate API documentation, added buildrequirement to doxygen |
---|
| 182 | |
---|
| 183 | * Mon Jul 23 2007 Robert Scheck <robert@fedoraproject.org> 1.12-1 |
---|
| 184 | - Changes to match with Fedora Packaging Guidelines (#249352) |
---|
| 185 | |
---|
| 186 | * Tue Jul 10 2007 Jeff Johnson <jbj@rpm5.org> |
---|
| 187 | - release popt-1.12 through rpm5.org. |
---|
| 188 | |
---|
| 189 | * Sat Jun 9 2007 Jeff Johnson <jbj@rpm5.org> |
---|
| 190 | - release popt-1.11 through rpm5.org. |
---|
| 191 | |
---|
| 192 | * Thu Dec 10 1998 Michael Johnson <johnsonm@redhat.com> |
---|
| 193 | - released 1.2.2; see CHANGES |
---|
| 194 | |
---|
| 195 | * Tue Nov 17 1998 Michael K. Johnson <johnsonm@redhat.com> |
---|
| 196 | - added man page to default install |
---|
| 197 | |
---|
| 198 | * Thu Oct 22 1998 Erik Troan <ewt@redhat.com> |
---|
| 199 | - see CHANGES file for 1.2 |
---|
| 200 | |
---|
| 201 | * Thu Apr 09 1998 Erik Troan <ewt@redhat.com> |
---|
| 202 | - added ./configure step to spec file |
---|