2012-09-07 08:52:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package devscripts
|
|
|
|
#
|
2015-01-12 17:40:03 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-09-07 08:52:46 +02:00
|
|
|
#
|
|
|
|
# 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
|
2015-01-12 17:40:03 +01:00
|
|
|
Version: 2.15.1
|
2012-09-07 08:52:46 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Scripts to make the life of a Debian Package maintainer easier
|
2013-02-04 17:26:10 +01:00
|
|
|
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
|
2012-09-07 08:52:46 +02:00
|
|
|
Group: Development/Tools/Building
|
2015-01-12 17:40:03 +01:00
|
|
|
Source0: http://ftp.de.debian.org/debian/pool/main/d/devscripts/%{name}_%{version}.tar.xz
|
2012-09-07 08:52:46 +02:00
|
|
|
# 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
|
2015-01-12 17:40:03 +01:00
|
|
|
Patch3: devscripts-2.15.1-remove-install-layout-deb.patch
|
2012-10-05 21:34:11 +02:00
|
|
|
BuildRequires: dpkg-devel >= 1.15.6
|
2015-01-12 17:40:03 +01:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2012-09-07 08:52:46 +02:00
|
|
|
BuildRequires: zlib-devel
|
2013-02-12 18:11:00 +01:00
|
|
|
Requires: checkbashisms >= %{version}
|
2012-09-07 08:52:46 +02:00
|
|
|
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
|
|
|
|
|
2013-02-12 18:11:00 +01:00
|
|
|
%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.
|
|
|
|
|
2012-09-07 08:52:46 +02:00
|
|
|
%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 <debian/links
|
|
|
|
# fix docs
|
|
|
|
mkdir -pv %{buildroot}%{_docdir}
|
|
|
|
if [ %{_datadir}/doc != %{_docdir} ]; then
|
|
|
|
mv %{buildroot}%{_datadir}/doc/devscripts %{buildroot}%{_docdir}
|
|
|
|
fi
|
|
|
|
chmod -x %{buildroot}%{_docdir}/devscripts/README
|
2012-10-05 21:34:11 +02:00
|
|
|
install -m644 debian/copyright %{buildroot}%{_docdir}/devscripts/copyright
|
|
|
|
install -m644 debian/changelog %{buildroot}%{_docdir}/devscripts/changelog
|
2012-09-07 08:52:46 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/devscripts
|
|
|
|
%doc %{_mandir}/man*/*
|
|
|
|
%{_bindir}/*
|
2015-01-12 17:40:03 +01:00
|
|
|
%{python3_sitelib}/devscripts/
|
|
|
|
%{python3_sitelib}/devscripts-%{version}-py%{py3_ver}.egg-info/
|
2012-09-07 08:52:46 +02:00
|
|
|
/usr/lib/devscripts
|
|
|
|
%{_datadir}/devscripts
|
2013-02-12 18:11:00 +01:00
|
|
|
%exclude %{_mandir}/man1/checkbashisms.1.gz
|
|
|
|
%exclude %{_bindir}/checkbashisms
|
|
|
|
|
|
|
|
%files -n checkbashisms
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_mandir}/man1/checkbashisms.1.gz
|
|
|
|
%{_bindir}/checkbashisms
|
2012-09-07 08:52:46 +02:00
|
|
|
|
|
|
|
%changelog
|