Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
Tools
>
deb
> deb.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File deb.spec of Package deb (Revision 14)
Currently displaying revision
14
,
show latest
# # spec file for package deb (Version 1.15.5.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define debhelper_ver 7.4.8 %define devscripts_ver 2.10.58 Name: deb BuildRequires: gcc-c++ ncurses-devel zlib-devel %if 0%{?suse_version} > 1010 BuildRequires: fdupes %endif Url: http://www.debian.org License: GPLv2+ Group: System/Packages PreReq: /bin/touch Provides: dpkg dpkg-dev debhelper dselect dpkg-doc devscripts Requires: perl = %{perl_version} Requires: cpio patch make html2text AutoReqProv: on Version: 1.15.5.2 Release: 2 Summary: Tools for Debian Packages Source: dpkg_%{version}.tar.bz2 Source1: debhelper_%{debhelper_ver}.tar.bz2 Source2: devscripts_%{devscripts_ver}.tar.bz2 Source3: sensible-editor Patch0: debhelper-no-localized-manpages.diff Patch1: devscripts-buildfix.diff Patch2: debhelper-pod2man-no-utf8.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} < 1120 %define _libexecdir /usr/lib %endif %if 0%{?suse_version} BuildRequires: sgmltool texlive-latex update-alternatives libbz2-devel Requires: update-alternatives %if 0%{?suse_version} > 1100 BuildRequires: libselinux-devel %define use_selinux 1 %endif %endif %if 0%{?fedora_version} BuildRequires: libselinux-devel tetex-latex texinfo-tex linuxdoc-tools %define use_selinux 1 %endif %if 0%{?rhel_version} BuildRequires: libselinux-devel tetex-latex texinfo-tex linuxdoc-tools %define use_selinux 1 %endif %if 0%{?centos_version} BuildRequires: libselinux-devel tetex-latex texinfo-tex linuxdoc-tools %define use_selinux 1 %endif %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, debhelper, and devscripts. %lang_package %prep %setup -q -n dpkg-%{version} -b 1 -b 2 pushd .. %patch0 %if 0%{?suse_version} < 1130 %patch2 %endif pushd devscripts-%{devscripts_ver} %patch1 -p1 popd popd # update arch table sed -n '/linux-gnu/ s/linux-gnu/suse-linux/p' debian/archtable > debian/archtable.tmp cat debian/archtable.tmp >> debian/archtable rm debian/archtable.tmp %build %{?suse_update_config:%{suse_update_config -f}} export CFLAGS="$RPM_OPT_FLAGS" %if 0%{?use_selinux} export SELINUX_LIBS="-lselinux" %endif %configure\ %if 0%{?use_selinux} --with-selinux \ %endif --localstatedir=%{_localstatedir}/lib\ --libdir=%{_prefix}/lib # configure somehow does not detect architecture correctly in OBS (bnc#469337), so # let's do an awful hack and fix it in config.h %ifarch x86_64 sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "amd64"/' config.h %endif %ifarch %ix86 sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "i386"/' config.h %endif %ifarch ppc powerpc sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "powerpc"/' config.h %endif %ifarch ppc64 powerpc64 sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "ppc64"/' config.h %endif make %{?_smp_mflags} # This makes debhelper man pages cd ../debhelper make %{?_smp_mflags} VERSION='%{debhelper_ver}' ## # devscripts ## # need dpkg-parsechangelog for devscripts export PATH="$RPM_BUILD_DIR/dpkg-%{version}/scripts:$PATH" export PERL5LIB="$RPM_BUILD_DIR/dpkg-%{version}/scripts" cd ../devscripts-%{devscripts_ver} make %{?_smp_mflags} %install #mkdir -p $RPM_BUILD_ROOT/usr/share #ln -s $RPM_BUILD_ROOT/usr/share $RPM_BUILD_ROOT/share ## # dpkg stuff ## %makeinstall # locales %{find_lang} dpkg %{find_lang} dselect %{find_lang} dpkg-dev cat dpkg.lang dselect.lang dpkg-dev.lang > %{name}.lang # docs install -d -m 755 $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 ABOUT-NLS $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 AUTHORS $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 COPYING $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 doc/triggers.txt $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 INSTALL $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 NEWS $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 README* $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 THANKS $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 TODO $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg install -m 644 debian/changelog $RPM_BUILD_ROOT/%{_docdir}/deb/dpkg ## # debhelper stuff ## cd ../debhelper # autoscripts install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/debhelper/autoscripts install -m 644 autoscripts/* $RPM_BUILD_ROOT%{_datadir}/debhelper/autoscripts # perl modules: install -d -m 755 $RPM_BUILD_ROOT%{perl_vendorlib}/Debian/Debhelper install -d -m 755 $RPM_BUILD_ROOT%{perl_vendorlib}/Debian/Debhelper/Sequence install -m 644 Debian/Debhelper/Sequence/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Debian/Debhelper/Sequence install -m 644 Debian/Debhelper/*.pm $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}/man7 install -m 644 *.1 $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 debhelper.7 $RPM_BUILD_ROOT%{_mandir}/man7 # binaries: install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -m 755 dh_*[^1-9] $RPM_BUILD_ROOT%{_bindir} ## # devscripts ## cd ../devscripts-%{devscripts_ver} make install DESTDIR=$RPM_BUILD_ROOT ## # extras ## install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir} ## # remove update-alternatives stuff (included in separate package) ## rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/alternatives rm -rf $RPM_BUILD_ROOT%{_localstatedir}/lib/dpkg/alternatives rm -rf $RPM_BUILD_ROOT%{_bindir}/update-alternatives rm -rf $RPM_BUILD_ROOT%{_sbindir}/update-alternatives rm -rf $RPM_BUILD_ROOT%{_mandir}/man8/update-alternatives.8 rm -rf $RPM_BUILD_ROOT%{_mandir}/*/man8/update-alternatives.8 ## # remove duplicate files ## %if 0%{?suse_version} > 1010 %fdupes %buildroot %endif %clean rm -rf $RPM_BUILD_ROOT %post cd %{_localstatedir}/lib/dpkg for f in diversions statoverride status ; do [ ! -f $f ] && touch $f done exit 0 %if 0%{?suse_version} > 1010 %files lang -f %{name}.lang %endif %files %defattr(-,root,root) %doc %{_docdir}/deb %doc %{_mandir}/man*/* %dir %{_sysconfdir}/dpkg %config(noreplace) %{_sysconfdir}/dpkg/* %{_bindir}/* %{_sbindir}/* %{_prefix}/lib/dpkg %{_datadir}/dpkg %{_localstatedir}/lib/dpkg %{_datadir}/debhelper %{perl_vendorlib}/Debian %{perl_vendorlib}/Dpkg %{perl_vendorlib}/Dpkg.pm %{_libexecdir}/devscripts %{_datadir}/devscripts %changelog