# # spec file for package devscripts # # Copyright (c) 2015 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/ # Name: devscripts Version: 2.15.1 Release: 0 Summary: Scripts to make the life of a Debian Package maintainer easier License: GPL-2.0+ and GPL-2.0 and GPL-3.0+ and GPL-3.0 and Artistic-2.0 and GPL-1.0+ or Artistic-1.0 and SUSE-Public-Domain and ISC Group: Development/Tools/Building Source0: http://ftp.de.debian.org/debian/pool/main/d/devscripts/%{name}_%{version}.tar.xz # PATCH-FIX-UPSTREAM remove bash auto completion and fix docbook template directories path. Patch0: devscripts-2.11.7-buildfix.patch # PATCH-FIX-UPSTREAM hg can't commit empty, fix it. Patch1: devscripts-2.11.7-debcommit-hg16.patch # PATCH-FIX-UPSTREAM remove unrecognized --install-layout=deb from scripts/setup.py and fix prefix Patch3: devscripts-2.15.1-remove-install-layout-deb.patch BuildRequires: dpkg-devel >= 1.15.6 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: zlib-devel Requires: checkbashisms >= %{version} Requires: dpkg Requires: html2text Requires: perl Provides: deb:%{_bindir}/debchange BuildRequires: docbook-xsl-stylesheets BuildRequires: libxslt BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: sgmltool BuildRequires: texlive-latex %define _xsl_stylesheet /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl %endif %if 0%{?fedora_version} BuildRequires: tetex-latex %define _xsl_stylesheet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl %endif %if 0%{?rhel_version} BuildRequires: tetex-latex %define _xsl_stylesheet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl %endif %if 0%{?centos_version} BuildRequires: tetex-latex %define _xsl_stylesheet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl %endif %description Collection of scripts for working on Debian packages. Examples: - bts: a command-line tool for manipulating the Debian Bug Tracking System - dcontrol: remotely query package and source control files for all Debian distributions - debchange/dch: automagically add entries to debian/changelog files - debsign, debrsign: sign a .changes/.dsc pair without needing any of the rest of the package to be present; can sign the pair remotely or fetch the pair from a remote machine for signing - diff2patches: extract patches from a .diff.gz file placing them under debian/ or, if present, debian/patches - licensecheck: attempt to determine the license of source files - uscan: scan upstream sites for new releases of packages %package -n checkbashisms Summary: Tool for checking /bin/sh scripts for possible bashisms License: GPL-2.0+ Group: Development/Tools/Building Provides: deb:/usr/bin/checkbashisms Provides: devscripts:/usr/bin/checkbashisms Requires: perl %if 0%{?suse_version} && 0%{?suse_version} < 1120 #for the benefit of SLE %else BuildArch: noarch %endif %description -n checkbashisms checkbashisms performs basic checks on /bin/sh shell scripts for the possible presence of bashisms. It takes the names of the shell scripts on the command line, and outputs warnings if possible bashisms are detected. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch3 -p1 %build make %{?_smp_mflags} XSL_STYLESHEET="%{_xsl_stylesheet}" %install %{__make} install DESTDIR=%{?buildroot} XSL_STYLESHEET="%{_xsl_stylesheet}" install -d %{buildroot}%{_mandir}/man1/ install -d %{buildroot}%{_mandir}/man5/ install -m 644 scripts/*.1 %{buildroot}%{_mandir}/man1/ install -m 644 scripts/*.5 %{buildroot}%{_mandir}/man5/ while read target link; do if [ -d $(dirname "%{buildroot}$link") ]; then ln -sf $target %{buildroot}$link fi done