34 Distribution: OpenPKG Community |
34 Distribution: OpenPKG Community |
35 Class: EVAL |
35 Class: EVAL |
36 Group: Archiver |
36 Group: Archiver |
37 License: GPL |
37 License: GPL |
38 Version: %{V_tarball} |
38 Version: %{V_tarball} |
39 Release: 20090106 |
39 Release: 20120800 |
40 |
40 |
41 # list of sources |
41 # list of sources |
42 Source0: http://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.gz |
42 Source0: http://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.xz |
43 Patch0: dpkg.patch |
43 Patch0: dpkg.patch |
44 |
44 |
45 # build information |
45 # build information |
46 Prefix: %{l_prefix} |
46 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes |
47 BuildRoot: %{l_buildroot} |
47 PreReq: OpenPKG, openpkg >= 20100101 |
48 BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes |
|
49 PreReq: OpenPKG, openpkg >= 20040130 |
|
50 BuildPreReq: gettext, libiconv, bzip2, zlib |
48 BuildPreReq: gettext, libiconv, bzip2, zlib |
51 PreReq: gettext, libiconv, bzip2, zlib |
49 PreReq: gettext, libiconv, bzip2, zlib |
52 AutoReq: no |
|
53 AutoReqProv: no |
|
54 |
50 |
55 %description |
51 %description |
56 dpkg is the heart of the Debian GNU/Linux package management |
52 dpkg is the heart of the Debian GNU/Linux package management |
57 toolchain. It is the package format technology underlying APT and |
53 toolchain. It is the package format technology underlying APT and |
58 other higher-level package management tools. |
54 other higher-level package management tools. |
59 |
55 |
60 %track |
56 %track |
61 prog dpkg = { |
57 prog dpkg = { |
62 version = %{version} |
58 version = %{version} |
63 url = http://ftp.debian.org/debian/pool/main/d/dpkg/ |
59 url = http://ftp.debian.org/debian/pool/main/d/dpkg/ |
64 regex = dpkg_(__VER__)\.tar\.gz |
60 regex = dpkg_(__VER__)\.tar\.xz |
65 } |
61 } |
66 |
62 |
67 %prep |
63 %prep |
68 %setup -q -n dpkg-%{V_subdir} |
64 %setup -q -n dpkg-%{V_subdir} |
69 %patch -p0 |
65 %patch -p0 |
|
66 %{l_shtool} subst \ |
|
67 -e 's;\(defined(OSLinux)\)$;\1 || defined(OSsunos);g' \ |
|
68 utils/start-stop-daemon.c |
70 |
69 |
71 %build |
70 %build |
|
71 ( echo "ac_cv_header_kvm_h=no" |
|
72 ) >config.cache |
72 CC="%{l_cc}" \ |
73 CC="%{l_cc}" \ |
73 CXX="%{l_cxx}" \ |
74 CXX="%{l_cxx}" \ |
74 CFLAGS="%{l_cflags -O}" \ |
75 CFLAGS="%{l_cflags -O}" \ |
75 CXXFLAGS="%{l_cxxflags -O}" \ |
76 CXXFLAGS="%{l_cxxflags -O}" \ |
76 CPPFLAGS="%{l_cppflags}" \ |
77 CPPFLAGS="%{l_cppflags} -I`pwd`" \ |
77 LDFLAGS="%{l_ldflags}" \ |
78 LDFLAGS="%{l_ldflags}" \ |
|
79 LIBS="-lintl -liconv" \ |
78 ./configure \ |
80 ./configure \ |
|
81 --cache-file=./config.cache \ |
79 --prefix=%{l_prefix} \ |
82 --prefix=%{l_prefix} \ |
80 --mandir=%{l_prefix}/man \ |
83 --mandir=%{l_prefix}/man \ |
81 --with-libiconv-prefix=%{l_prefix} \ |
84 --with-libiconv-prefix=%{l_prefix} \ |
82 --with-libintl-prefix=%{l_prefix} \ |
85 --with-libintl-prefix=%{l_prefix} \ |
83 --without-included-gettext \ |
|
84 --with-dselect \ |
86 --with-dselect \ |
85 --without-start-stop-daemon \ |
87 --without-start-stop-daemon \ |
86 --with-admindir=%{l_prefix}/var/dpkg \ |
88 --with-admindir=%{l_prefix}/var/dpkg \ |
87 --with-zlib \ |
89 --with-zlib \ |
88 --with-bz2 \ |
90 --with-bz2 \ |
89 --without-selinux |
91 --without-selinux |
90 %{l_make} %{l_mflags -O} |
92 %{l_make} %{l_mflags -O} |
91 |
93 |
92 %install |
94 %install |
93 rm -rf $RPM_BUILD_ROOT |
95 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" |
94 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT LINGUAS=doit |
|
95 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
96 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
96 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale |
97 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale |
97 for bin in 822-date cleanup-info install-info update-alternatives; do |
98 for bin in 822-date cleanup-info install-info update-alternatives; do |
98 if [ -f $RPM_BUILD_ROOT%{l_prefix}/bin/$bin ]; then |
99 if [ -f $RPM_BUILD_ROOT%{l_prefix}/bin/$bin ]; then |
99 mv $RPM_BUILD_ROOT%{l_prefix}/bin/$bin \ |
100 mv $RPM_BUILD_ROOT%{l_prefix}/bin/$bin \ |