%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} Summary: C library for parsing command line parameters Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ Name: popt Version: 1.18 Release: 1%{?_dist_release} Group: System Environment/Libraries Vendor: Project Vine Distribution: Vine Linux License: MIT URL: https://github.com/rpm-software-management/popt/ Source0: http://ftp.rpm.org/popt/releases/popt-1.x/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gettext %description Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules. %description -l ja Poptはコマンドパラメータを文法解析するためのCライブラリです。 Poptは getopt()やgetopt_long()関数の影響を強く受けていますが、 もっと強力な引数の拡張を施すことによって、それらをもっと進化 させています。Poptは 任意の argv[]形式配列を解析して、コマンド ライン引数に基づいて変数を自動的に設定します。 Poptは、コマンドライン引数を設定ファイルによってエイリアス化を 許可したり、シェルライクな方針を用いた任意の文字列を文法解析し てargv[]配列に変換したりするユーティリティ関数を含んでいます。 %package devel Summary: Development files for the popt library Summary(ja): popt ライブラリの開発ファイル Group: programming Requires: %{name} = %{version}-%{release} %description devel The popt-devel package includes header files and libraries necessary for developing programs which use the popt C library. It contains the API documentation of the popt library, too. %package static Summary: Static library for %{name} Summary(ja): %{name} のスタティックライブラリ Group: programming Requires: %{name} = %{version}-%{release} %description static The %{name}-static package contains the static library for %{name}. %package -n compat32-%{name} Summary: A C library for parsing command line parameters. Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ Group: system Requires: %{name} = %{version}-%{release} %description -n compat32-%{name} Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules. %description -n compat32-%{name} -l ja Poptはコマンドパラメータを文法解析するためのCライブラリです。 Poptは getopt()やgetopt_long()関数の影響を強く受けていますが、 もっと強力な引数の拡張を施すことによって、それらをもっと進化 させています。Poptは 任意の argv[]形式配列を解析して、コマンド ライン引数に基づいて変数を自動的に設定します。 Poptは、コマンドライン引数を設定ファイルによってエイリアス化を 許可したり、シェルライクな方針を用いた任意の文字列を文法解析し てargv[]配列に変換したりするユーティリティ関数を含んでいます。 %package -n compat32-%{name}-devel Summary: Development files for the popt library Summary(ja): popt ライブラリの開発ファイル Group: programming Requires: compat32-%{name} = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} %description -n compat32-%{name}-devel The popt-devel package includes header files and libraries necessary for developing programs which use the popt C library. It contains the API documentation of the popt library, too. %debug_package %prep %autosetup sed -i "s|libdir=@libdir@|libdir=@prefix@@libdir@|" popt.pc.in %ifarch x86_64 #sed -i "s|/lib/pkgconfig|/lib64/pkgconfig|" Makefile.am #sed -i "s|/lib/pkgconfig|/lib64/pkgconfig|" Makefile.in %endif %build %configure --libdir=/%{_lib} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # Move libpopt.{so,a} to %{_libdir} rm -f $RPM_BUILD_ROOT/%{_lib}/libpopt.{la,so} pushd $RPM_BUILD_ROOT/%{_lib} mkdir -p $RPM_BUILD_ROOT%{_libdir} ln -sf ../../%{_lib}/$(ls libpopt.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/libpopt.so popd mv -f $RPM_BUILD_ROOT/%{_lib}/libpopt.a $RPM_BUILD_ROOT%{_libdir}/libpopt.a mv -f $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}/ # Multiple popt configurations are possible mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d %find_lang %{name} %check make check %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n compat32-%{name} -p /sbin/ldconfig %postun -n compat32-%{name} -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %license COPYING %doc CHANGES %{_sysconfdir}/popt.d /%{_lib}/libpopt.so.* %files devel %defattr(-,root,root) %doc README %{_libdir}/libpopt.so %{_libdir}/pkgconfig/popt.pc %{_includedir}/popt.h %{_mandir}/man3/popt.3* %files static %defattr(-,root,root) %{_libdir}/libpopt.a %if %{build_compat32} %files -n compat32-%{name} %defattr(-,root,root) /%{_lib}/libpopt.so.* %files -n compat32-%{name}-devel %defattr(-,root,root) %{_libdir}/libpopt.so %endif %changelog * Fri Feb 19 2021 Tomohiro "Tomo-p" KATO 1.18-1 - new upstream release. - dropped all patches. * Sun Sep 15 2019 Tomohiro "Tomo-p" KATO 1.16-3 - imported Patch0-5 from rawhide. * Wed Jan 15 2014 Yoji TOYODA 1.16-2 - rebuild with VineSeed environment * Sat Nov 03 2012 Yoji TOYODA 1.16-1 - update to 1.16 - create %{name}-static sub package * Sun Apr 17 2011 Shu KONNO - 1.14-5 - rebuilt with rpm-4.8.1-3 * Fri Feb 12 2010 MATSUBAYASHI Kohji - 1.14-4 - rebuilt with new toolchain * Sun Jun 28 2009 NAKAMURA Kenta 1.14-3 - updated Requires: and %%files section on compat32 subpackages * Mon Jun 08 2009 Shu KONNO 1.14-2 - added %%define build_compat32 - fixed compat32 directories * Mon Aug 18 2008 Daisuke SUZUKI 1.14-1 - initial build for Vine Linux - splitted out from rpm, based on rpm5.org source. - move libpopt to /lib[64] from /usr/lib[64] - initscripts-8 uses libpopt. * Sun May 25 2008 Robert Scheck 1.13-4 - Solved multilib problems at doxygen generated files (#342921) * Wed Feb 20 2008 Robert Scheck 1.13-3 - Revert the broken bind_textdomain_codeset() patch (#433324) * Thu Feb 14 2008 Robert Scheck 1.13-2 - Added patch to work around missing bind_textdomain_codeset() * Sun Dec 30 2007 Robert Scheck 1.13-1 - Upgrade to 1.13 (#290531, #332201, #425803) - Solved multilib problems at doxygen generated files (#342921) * Thu Aug 23 2007 Robert Scheck 1.12-3 - Added buildrequirement to graphviz (#249352) - Backported bugfixes from CVS (#102254, #135428 and #178413) * Sun Aug 12 2007 Robert Scheck 1.12-2 - Move libpopt to /lib[64] (#249814) - Generate API documentation, added buildrequirement to doxygen * Mon Jul 23 2007 Robert Scheck 1.12-1 - Changes to match with Fedora Packaging Guidelines (#249352) * Tue Jul 10 2007 Jeff Johnson - release popt-1.12 through rpm5.org. * Sat Jun 9 2007 Jeff Johnson - release popt-1.11 through rpm5.org. * Thu Dec 10 1998 Michael Johnson - released 1.2.2; see CHANGES * Tue Nov 17 1998 Michael K. Johnson - added man page to default install * Thu Oct 22 1998 Erik Troan - see CHANGES file for 1.2 * Thu Apr 09 1998 Erik Troan - added ./configure step to spec file