Search
j0ke.net Open Build Service
>
Projects
>
home:hostmaster
>
deb
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
deb.spec
@@ -0,0 +1,347 @@ +# +# spec file for package deb (Version 1.10.27) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: deb +BuildRequires: gcc-c++ ncurses-devel sgmltool texlive-latex update-alternatives zlib-devel +URL: http://www.debian.org +License: GPL v2 or later +Group: System/Packages +Prereq: /bin/touch +Provides: dpkg dpkg-dev debhelper dselect dpkg-doc +Requires: perl = %{perl_version} +Requires: cpio patch make html2text update-alternatives +Autoreqprov: on +Version: 1.10.27 +Release: 92 +Summary: Tools for Debian Packages +Source: dpkg_%{version}.tar.bz2 +Source1: debhelper_4.2.30.tar.bz2 +Patch0: dpkg_1.10.23-doc.patch +Patch1: dpkg-gcc4.patch +Patch2: dpkg-strip.patch +Patch3: dpkg-make.patch +Patch4: dpkg-automake.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package contains tools for working with Debian packages. It makes +it possible to create and extract Debian packages. If Alien is +installed, the packages can be converted to RPMs. + +This package contains the following Debian packages: dpkg, dselect, +dpkg-doc, dpkg-dev, and debhelper. + + + +Authors: +-------- + Klee Dienes <klee@mit.edu> + Joey Hess <joeyh@master.debian.org> + +%prep +%setup -q -n dpkg-%{version} -b 1 +%patch0 -p1 +%patch1 +%patch2 +%patch3 +%patch4 +# update arch table +sed -n '/linux-gnu/ s/linux-gnu/suse-linux/p' archtable > archtable.tmp +cat archtable.tmp >> archtable +rm archtable.tmp +# modify debian/rules to work on suse +sed -i 's/ -o root -g root//; /id -u/D; /dpkg-architecture -q[^\.]/D; /GENCONTROL/D; /dpkg --build/D;' debian/rules + +%build +%{?suse_update_config:%{suse_update_config -f}} +# Build dpkg +make -f debian/rules \ + CFLAGS="$RPM_OPT_FLAGS" \ + arch=%{_arch} \ + DEB_BUILD_GNU_TYPE=%{_arch}-linux \ + DEB_HOST_GNU_TYPE=%{_arch}-linux \ + binary +cd ../debhelper +# This makes debhelper man pages +make -f debian/rules build-stamp + +%install +## +# dpkg stuff +## +# Copy files prepared by debian/rules to their wanted location: +for dir in `ls -d debian/tmp/*|grep -v dpkg-static|grep -v install` ; do + (cd $dir && cp -a [a-z]* $RPM_BUILD_ROOT) +done +# Remove files which we don't want: +find $RPM_BUILD_ROOT%{_mandir} \( \ + -name md5sum.1.gz -o \ + -name start-stop-daemon.8.gz -o \ + -name install-info.8.gz \) \ + -exec rm -f '{}' \; +rm -f $RPM_BUILD_ROOT/usr/sbin/{install-info,start-stop-daemon} +rm -Rf $RPM_BUILD_ROOT/sbin/ +rm -f $RPM_BUILD_ROOT/usr/bin/md5sum +# Move documenation to correct place: +install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/deb +mv $RPM_BUILD_ROOT/usr/share/doc/dpkg $RPM_BUILD_ROOT%{_docdir}/deb/ +cp COPYING $RPM_BUILD_ROOT%{_docdir}/deb +# Remove symlinks to docs +find . -maxdepth 1 -type l -exec rm -f '{}' \; +rm -f $RPM_BUILD_ROOT/usr/share/doc/dpkg-dev +rm -f $RPM_BUILD_ROOT/usr/share/doc/dpkg-doc +rm -f $RPM_BUILD_ROOT/usr/share/doc/dselect +# We dont use this... +rm -Rf $RPM_BUILD_ROOT/usr/share/doc-base +# locales +%{find_lang} dpkg +## +# debhelper stuff +## +cd ../debhelper +# autoscripts +install -d -m 755 $RPM_BUILD_ROOT/usr/share/debhelper/autoscripts +install -m 644 autoscripts/* $RPM_BUILD_ROOT/usr/share/debhelper/autoscripts +# perl modules: +install -d -m 755 $RPM_BUILD_ROOT/%perl_vendorlib/Debian/Debhelper +install -m 644 Debian/Debhelper/* $RPM_BUILD_ROOT/%perl_vendorlib/Debian/Debhelper +# docs: +install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/deb/debhelper/examples +install -m 644 examples/* $RPM_BUILD_ROOT%{_docdir}/deb/debhelper/examples +install -m 644 doc/* $RPM_BUILD_ROOT%{_docdir}/deb/debhelper +install -m 644 debian/{changelog,copyright} $RPM_BUILD_ROOT%{_docdir}/deb/debhelper +# man pages: +install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1 +install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/es/man1 +install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man7 +install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/es/man7 +for i in *.1 ; do + case $i in + *.es.1) + install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/es/man1 + ;; + *.1) + install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/man1 + ;; + esac +done +for i in *.7 ; do + case $i in + *.es.7) + install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/es/man7 + ;; + *.7) + install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/man7 + ;; + esac +done +# binaries: +install -d -m 755 $RPM_BUILD_ROOT/usr/bin +install -m 755 dh_*[^1-9] $RPM_BUILD_ROOT/usr/bin/ +# remove update-alternatives stuff, now in own package +rm -fv $RPM_BUILD_ROOT/usr/sbin/update-alternatives +rm -fv $RPM_BUILD_ROOT/usr/share/man/man8/update-alternatives.* +rm -fv $RPM_BUILD_ROOT/usr/share/man/*/man8/update-alternatives.* +rm -rfv $RPM_BUILD_ROOT/etc/alternatives + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +cd /var/lib/dpkg +for f in diversions statoverride status ; do + if [ ! -f "$f" ] ; then + touch "$f" + fi +done + +%files -f dpkg.lang +%defattr(-,root,root) +%doc %{_docdir}/deb +%doc %{_mandir}/fr +%doc %{_mandir}/ja +%doc %{_mandir}/sv +%doc %{_mandir}/es +%doc %{_mandir}/pt_BR +%doc %{_mandir}/ru +%doc %{_mandir}/de +%doc %{_mandir}/man*/* +%dir /etc/dpkg +%config(noreplace) /etc/dpkg/* +/usr/bin/* +/usr/lib/dpkg +/usr/sbin/* +/usr/share/dpkg +/var/lib/dpkg +/usr/share/debhelper +%perl_vendorlib/Debian + +%changelog +* Thu Jul 26 2007 - dmueller@suse.de +- remove config.guess dependency completely +* Tue Jul 24 2007 - dmueller@suse.de +- link the config.guess from automake +* Sun Apr 22 2007 - ro@suse.de +- use texlive for building +* Fri Mar 30 2007 - aj@suse.de +- Adjust BuildRequires. +* Fri Aug 18 2006 - aj@suse.de +- Fix build with new make. +* Wed Jan 25 2006 - mls@suse.de