|
@@ -1,24 +1,20 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
+
|
|
Summary: C library for parsing command line parameters
|
|
Summary: C library for parsing command line parameters
|
|
Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ
|
|
Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ
|
|
Name: popt
|
|
Name: popt
|
|
-Version: 1.16
|
|
+Version: 1.18
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
-License: MIT
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-URL: http://www.rpm5.org/
|
|
+Vendor: Project Vine
|
|
-Source0: http://www.rpm5.org/files/%{name}/%{name}-%{version}.tar.gz
|
|
+Distribution: Vine Linux
|
|
-Patch0: popt-1.16-pkgconfig.patch
|
|
|
|
-Patch1: popt-1.16-execfail.patch
|
|
|
|
-Patch2: popt-1.16-man-page.patch
|
|
|
|
-Patch3: popt-1.16-help.patch
|
|
|
|
-Patch4: popt-1.16-nextarg-memleak.patch
|
|
|
|
-Patch5: popt-1.16-glob-error.patch
|
|
|
|
-BuildRequires: gettext
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
-Vendor: Project Vine
|
|
+License: MIT
|
|
-Distribution: Vine Linux
|
|
+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
|
|
%description
|
|
Popt is a C library for parsing command line parameters. Popt was
|
|
Popt is a C library for parsing command line parameters. Popt was
|
|
@@ -43,8 +39,8 @@ Poptは、コマンドライン引数を設定ファイルによってエイリ
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for the popt library
|
|
Summary: Development files for the popt library
|
|
-Summary(ja): popt ライブラリの開発ファイル
|
|
+Summary(ja): popt ライブラリの開発ファイル
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
@@ -56,7 +52,7 @@ API documentation of the popt library, too.
|
|
%package static
|
|
%package static
|
|
Summary: Static library for %{name}
|
|
Summary: Static library for %{name}
|
|
Summary(ja): %{name} のスタティックライブラリ
|
|
Summary(ja): %{name} のスタティックライブラリ
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description static
|
|
%description static
|
|
@@ -66,7 +62,7 @@ The %{name}-static package contains the static library for %{name}.
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: A C library for parsing command line parameters.
|
|
Summary: A C library for parsing command line parameters.
|
|
Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ
|
|
Summary(ja): コマンドラインパラメータを文法解析するためのCライブラリ
|
|
-Group: Development/Libraries
|
|
+Group: system
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
@@ -89,10 +85,11 @@ Poptは、コマンドライン引数を設定ファイルによってエイリ
|
|
許可したり、シェルライクな方針を用いた任意の文字列を文法解析し
|
|
許可したり、シェルライクな方針を用いた任意の文字列を文法解析し
|
|
てargv[]配列に変換したりするユーティリティ関数を含んでいます。
|
|
てargv[]配列に変換したりするユーティリティ関数を含んでいます。
|
|
|
|
|
|
|
|
+
|
|
%package -n compat32-%{name}-devel
|
|
%package -n compat32-%{name}-devel
|
|
Summary: Development files for the popt library
|
|
Summary: Development files for the popt library
|
|
-Summary(ja): popt ライブラリの開発ファイル
|
|
+Summary(ja): popt ライブラリの開発ファイル
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
@@ -101,6 +98,10 @@ The popt-devel package includes header files and libraries necessary
|
|
for developing programs which use the popt C library. It contains the
|
|
for developing programs which use the popt C library. It contains the
|
|
API documentation of the popt library, too.
|
|
API documentation of the popt library, too.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%autosetup
|
|
%autosetup
|
|
sed -i "s|libdir=@libdir@|libdir=@prefix@@libdir@|" popt.pc.in
|
|
sed -i "s|libdir=@libdir@|libdir=@prefix@@libdir@|" popt.pc.in
|
|
@@ -109,10 +110,12 @@ sed -i "s|libdir=@libdir@|libdir=@prefix@@libdir@|" popt.pc.in
|
|
#sed -i "s|/lib/pkgconfig|/lib64/pkgconfig|" Makefile.in
|
|
#sed -i "s|/lib/pkgconfig|/lib64/pkgconfig|" Makefile.in
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
%configure --libdir=/%{_lib}
|
|
%configure --libdir=/%{_lib}
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
@@ -132,20 +135,22 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
+
|
|
%check
|
|
%check
|
|
make check
|
|
make check
|
|
|
|
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
+%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%post -n compat32-%{name} -p /sbin/ldconfig
|
|
%post -n compat32-%{name} -p /sbin/ldconfig
|
|
-
|
|
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
+
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%license COPYING
|
|
%license COPYING
|
|
@@ -177,6 +182,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Feb 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped all patches.
|
|
|
|
+
|
|
* Sun Sep 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16-3
|
|
* Sun Sep 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16-3
|
|
- imported Patch0-5 from rawhide.
|
|
- imported Patch0-5 from rawhide.
|
|
|
|
|