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
This commit is contained in:
Tomáš Chvátal 2016-03-23 11:51:21 +00:00 committed by Git OBS Bridge
parent 06b70807bc
commit 9d1170b0b1
7 changed files with 42 additions and 1 deletions

5
debian.changelog Normal file
View File

@ -0,0 +1,5 @@
spec-cleaner (0.7.9-1) stable; urgency=low
* Initial Debian release
-- Přemysl Janouch <pjanouch@suse.de> Tue, 22 Mar 2016 18:00:00 +0100

1
debian.compat Normal file
View File

@ -0,0 +1 @@
9

14
debian.control Normal file
View File

@ -0,0 +1,14 @@
Source: spec-cleaner
Section: devel
Priority: optional
Standards-Version: 3.9.2
Maintainer: Přemysl Janouch <pjanouch@suse.de>
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.

3
debian.rules Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@ --with python3 --buildsystem=pybuild

View File

@ -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

8
spec-cleaner.dsc Normal file
View File

@ -0,0 +1,8 @@
Format: 3.0 (quilt)
Source: spec-cleaner
Version: 0.7.9-1
Binary: spec-cleaner
Maintainer: Přemysl Janouch <pjanouch@suse.de>
Architecture: all
Build-Depends: debhelper (>= 9), python3-dev, python3-mock, python3-nose,
python3-setuptools, dh-python

View File

@ -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