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