From 9d1170b0b17d448200d22d4ca3fe8bfacd51851bee6c595f1722f36585f09b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 23 Mar 2016 11:51:21 +0000 Subject: [PATCH] Accepting request 378528 from home:pjanouch:branches:openSUSE:Tools Add build files for Debian, second try OBS-URL: https://build.opensuse.org/request/show/378528 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=72 --- debian.changelog | 5 +++++ debian.compat | 1 + debian.control | 14 ++++++++++++++ debian.rules | 3 +++ spec-cleaner.changes | 5 +++++ spec-cleaner.dsc | 8 ++++++++ spec-cleaner.spec | 7 ++++++- 7 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 debian.changelog create mode 100644 debian.compat create mode 100644 debian.control create mode 100644 debian.rules create mode 100644 spec-cleaner.dsc diff --git a/debian.changelog b/debian.changelog new file mode 100644 index 0000000..b769174 --- /dev/null +++ b/debian.changelog @@ -0,0 +1,5 @@ +spec-cleaner (0.7.9-1) stable; urgency=low + + * Initial Debian release + + -- Přemysl Janouch Tue, 22 Mar 2016 18:00:00 +0100 diff --git a/debian.compat b/debian.compat new file mode 100644 index 0000000..4511376 --- /dev/null +++ b/debian.compat @@ -0,0 +1 @@ +9 diff --git a/debian.control b/debian.control new file mode 100644 index 0000000..4b258ed --- /dev/null +++ b/debian.control @@ -0,0 +1,14 @@ +Source: spec-cleaner +Section: devel +Priority: optional +Standards-Version: 3.9.2 +Maintainer: Přemysl Janouch +Build-Depends: debhelper (>= 9), python3-dev, python3-mock, python3-nose, + python3-setuptools, dh-python + +Package: spec-cleaner +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Conflicts: obs-service-format-spec-file +Description: RPM .spec files cleaner + Command-line tool for cleaning various formatting errors in RPM .spec files. diff --git a/debian.rules b/debian.rules new file mode 100644 index 0000000..8d1ff0b --- /dev/null +++ b/debian.rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/spec-cleaner.changes b/spec-cleaner.changes index d23e9c3..f9d8f31 100644 --- a/spec-cleaner.changes +++ b/spec-cleaner.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 23 10:27:36 UTC 2016 - pjanouch@suse.de + +- Added build files for Debian + ------------------------------------------------------------------- Thu Mar 3 10:00:17 UTC 2016 - tchvatal@suse.com diff --git a/spec-cleaner.dsc b/spec-cleaner.dsc new file mode 100644 index 0000000..cc3cedf --- /dev/null +++ b/spec-cleaner.dsc @@ -0,0 +1,8 @@ +Format: 3.0 (quilt) +Source: spec-cleaner +Version: 0.7.9-1 +Binary: spec-cleaner +Maintainer: Přemysl Janouch +Architecture: all +Build-Depends: debhelper (>= 9), python3-dev, python3-mock, python3-nose, + python3-setuptools, dh-python diff --git a/spec-cleaner.spec b/spec-cleaner.spec index e614c0f..ea29eb0 100644 --- a/spec-cleaner.spec +++ b/spec-cleaner.spec @@ -27,6 +27,11 @@ License: BSD-3-Clause Group: Development/Tools/Other Url: http://github.com/openSUSE/spec-cleaner Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz +Source1: debian.changelog +Source2: debian.compat +Source3: debian.control +Source4: debian.rules +Source5: %{name}.dsc BuildRequires: python3-devel BuildRequires: python3-mock BuildRequires: python3-nose @@ -56,7 +61,7 @@ user to use spec-cleaner rather than to stick to perl based format_spec_file. # set libexec properly so it works on Fedora too sed -i \ - -e 's:/usr/lib/obs/:%{_libexecdir}/obs/:g' \ + -e 's:%{_prefix}/lib/obs/:%{_libexecdir}/obs/:g' \ setup.py %build