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