]> git.pld-linux.org Git - packages/popt.git/commitdiff
up to 1.17 auto/th/popt-1.17-1
authorElan Ruusamäe <glen@delfi.ee>
Tue, 7 Oct 2014 06:16:33 +0000 (09:16 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 7 Oct 2014 06:21:56 +0000 (09:21 +0300)
use "staged tarball" from src.rpm
http://yum.jbj.org/pub/centos-6/SRPMS.i386/popt-1.17-1.src.rpm

http://rpm5.org/community/popt-devel/0288.html

popt-am.patch [deleted file]
popt-automake_1_12.patch [deleted file]
popt.spec

diff --git a/popt-am.patch b/popt-am.patch
deleted file mode 100644 (file)
index df4d8ca..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- popt-1.16/Makefile.am.orig 2010-05-04 22:55:54.000000000 +0200
-+++ popt-1.16/Makefile.am      2013-07-14 11:09:04.332434012 +0200
-@@ -37,7 +37,7 @@
- TESTS_ENVIRONMENT = \
- test1="$(top_builddir)/test1"
--TESTS = $(top_srcdir)/testit.sh
-+TESTS = testit.sh
- include_HEADERS = popt.h
diff --git a/popt-automake_1_12.patch b/popt-automake_1_12.patch
deleted file mode 100644 (file)
index 345f179..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -dur popt-1.16.orig/configure.ac popt-1.16/configure.ac
---- popt-1.16.orig/configure.ac        2012-06-18 21:12:58.000000000 +0200
-+++ popt-1.16/configure.ac     2012-06-18 21:14:01.185438214 +0200
-@@ -46,7 +46,6 @@
- AC_SYS_LARGEFILE
- AC_ISC_POSIX
--AM_C_PROTOTYPES
- AC_CHECK_HEADERS(float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h)
index 53eb486314521bedb363f70a70ed2f88e8143837..6d0e4fb98340f0d4ecec7ae222231b21c51ae9bb 100644 (file)
--- a/popt.spec
+++ b/popt.spec
@@ -10,15 +10,13 @@ Summary(ru.UTF-8):  Библиотека C для разбора параметр
 Summary(tr.UTF-8):     Komut satırı parametrelerini ayrıştırımak için C arşivi
 Summary(uk.UTF-8):     Бібліотека C для розбору параметрів командної стрічки
 Name:          popt
-Version:       1.16
-Release:       2
+Version:       1.17
+Release:       1
 License:       X Consortium (MIT-like)
 Group:         Libraries
 Source0:       http://rpm5.org/files/popt/%{name}-%{version}.tar.gz
-# Source0-md5: 3743beefa3dd6247a73f8f7a32c14c33
-Patch0:                %{name}-automake_1_12.patch
-Patch1:                %{name}-diet.patch
-Patch2:                %{name}-am.patch
+# Source0-md5: 7f98c657d35981d30dd372da5335c354
+Patch0:                %{name}-diet.patch
 URL:           http://rpm5.org/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake >= 1.4
@@ -35,10 +33,10 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                dietlibdir      %{_prefix}/lib/dietlibc/lib-%{dietarch}
 
 %description
-Popt is a C library for passing command line parameters. It was heavily
-influenced by the getopt() and getopt_long() functions, but it allows
-more powerful argument expansion. It can parse arbitrary argv[] style
-arrays and automatically set variables based on command line
+Popt is a C library for passing command line parameters. It was
+heavily influenced by the getopt() and getopt_long() functions, but it
+allows more powerful argument expansion. It can parse arbitrary argv[]
+style arrays and automatically set variables based on command line
 arguments. It also 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.
@@ -158,8 +156,6 @@ Biblioteka statyczna dietlibc popt.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %{__sed} -i -e 's#po/Makefile.in intl/Makefile##g' configure.ac
 
@@ -176,9 +172,14 @@ __cc="%{__cc}"
 %configure \
        CC="diet ${__cc#ccache } %{rpmcflags} %{rpmldflags} -Os -static" \
        ac_cv_func_stpcpy=yes \
+%if "%{?configure_cache}" == "1"
+       --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
+%endif
        --enable-static \
        --disable-shared
 
+# libpopt.la dependency on configmake.h missing
+%{__make} configmake.h
 %{__make} libpopt.la
 mv -f .libs/libpopt.a diet-libpopt.a
 %{__make} clean
This page took 0.116204 seconds and 4 git commands to generate.