devscripts/devscripts.spec
Tomáš Chvátal 81b7ff14b5 Accepting request 267211 from home:posophe:branches:system:packagemanager
- Update to version 2.15.1
  + see  /usr/share/doc/packages/devscripts/changelog for details
- Upstream moved to python3
  + Use python3-{devel,setuptools} instead of python-{devel,setuptools}
  That means compatibility with SLE11 is broken
- Remove now unapplied patches
  + devscripts-pod2man-no-utf8.patch
  + devscripts-old-File-Path.patch
- Adapt devscripts-2.11.7-remove-install-layout-deb.patch to upstream
  changes > devscripts-2.15.1-remove-install-layout-deb.patch
- Remove yet obsolete compatibility stuff

OBS-URL: https://build.opensuse.org/request/show/267211
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/devscripts?expand=0&rev=13
2015-01-12 16:40:03 +00:00

149 lines
5.2 KiB
RPMSpec

#
# 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 <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
install -m644 debian/copyright %{buildroot}%{_docdir}/devscripts/copyright
install -m644 debian/changelog %{buildroot}%{_docdir}/devscripts/changelog
%files
%defattr(-,root,root)
%doc %{_docdir}/devscripts
%doc %{_mandir}/man*/*
%{_bindir}/*
%{python3_sitelib}/devscripts/
%{python3_sitelib}/devscripts-%{version}-py%{py3_ver}.egg-info/
/usr/lib/devscripts
%{_datadir}/devscripts
%exclude %{_mandir}/man1/checkbashisms.1.gz
%exclude %{_bindir}/checkbashisms
%files -n checkbashisms
%defattr(-,root,root)
%doc %{_mandir}/man1/checkbashisms.1.gz
%{_bindir}/checkbashisms
%changelog