|
@@ -2,8 +2,8 @@
|
|
|
Summary: C library for parsing command line parameters
|
|
|
Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ
|
|
|
Name: popt
|
|
|
-Version: 1.14
|
|
|
-Release: 5%{?_dist_release}
|
|
|
+Version: 1.16
|
|
|
+Release: 1%{?_dist_release}
|
|
|
License: MIT
|
|
|
Group: System Environment/Libraries
|
|
|
URL: http://www.rpm5.org/
|
|
@@ -31,6 +31,7 @@ Poptは、コマンドライン引数を設定ファイルによってエイリ
|
|
|
許可したり、シェルライクな方針を用いた任意の文字列を文法解析し
|
|
|
てargv[]配列に変換したりするユーティリティ関数を含んでいます。
|
|
|
|
|
|
+
|
|
|
%package devel
|
|
|
Summary: Development files for the popt library
|
|
|
Summary(ja): popt ライブラリの開発ファイル
|
|
@@ -42,6 +43,17 @@ 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: Development/Libraries
|
|
|
+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ライブラリ
|
|
@@ -82,6 +94,11 @@ API documentation of the popt library, too.
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+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}
|
|
@@ -126,10 +143,14 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%defattr(-,root,root)
|
|
|
%doc README doxygen/html
|
|
|
%{_libdir}/libpopt.so
|
|
|
-%{_libdir}/libpopt.a
|
|
|
+%{_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)
|
|
@@ -138,11 +159,14 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%files -n compat32-%{name}-devel
|
|
|
%defattr(-,root,root)
|
|
|
%{_libdir}/libpopt.so
|
|
|
-%{_libdir}/libpopt.a
|
|
|
%endif
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16-1
|
|
|
+- update to 1.16
|
|
|
+- create %{name}-static sub package
|
|
|
+
|
|
|
* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 1.14-5
|
|
|
- rebuilt with rpm-4.8.1-3
|
|
|
|