2065b53
# This is not archful information, and mimics RPM's paths
2065b53
%global _debconfigdir %{_prefix}/lib/debbuild
2065b53
57f778d
Name:           debbuild
7382067
Version:        17.5.0
7382067
Release:        1%{?dist}
57f778d
Summary:        Build Debian-compatible .deb packages from RPM .spec files
57f778d
57f778d
License:        GPLv2+
2065b53
URL:            https://github.com/ascherer/debbuild/
7382067
Source0:        https://github.com/ascherer/debbuild/archive/%{version}/%{name}-%{version}.tar.gz
57f778d
57f778d
BuildArch:      noarch
da416e4
be151c5
BuildRequires:  perl-generators
2065b53
BuildRequires:  perl(Pod::Man)
da416e4
57f778d
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
57f778d
Requires:       dpkg
57f778d
Requires:       dpkg-dev
2065b53
Requires(post): dpkg-dev
57f778d
57f778d
Requires:       pax, fakeroot, bash
57f778d
Requires:       patch, bzip2, xz
7382067
%if 0%{?rhel} && 0%{?rhel} < 7
7382067
Requires:       /usr/bin/lsb_release
7382067
%endif
2065b53
%if 0%{?fedora} || 0%{?rhel} >= 8
2065b53
Recommends:     quilt
2065b53
%else
2065b53
Requires:       quilt
2065b53
%endif
2065b53
57f778d
%{?perl_default_filter}
57f778d
57f778d
%description
57f778d
debbuild attempts to build Debian-friendly semi-native packages from
57f778d
RPM spec files, RPM-friendly tarballs, and RPM source packages
57f778d
(.src.rpm files).  It accepts most of the options rpmbuild does, and
57f778d
should be able to interpret most spec files usefully.
57f778d
57f778d
%prep
7382067
%setup -q
57f778d
57f778d
57f778d
%build
2065b53
# Transfer version into the live systems
2065b53
sed -e "s/@VERSION@/%{version}/g" -i debbuild
2065b53
sed -e "s/@VERSION@/%{version}/g" -i Makefile
57f778d
57f778d
57f778d
%install
2065b53
%make_install
2065b53
mkdir -p %{buildroot}%{_debconfigdir}/macros.d
2065b53
cp macros/macros.in %{buildroot}%{_debconfigdir}/macros
2065b53
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
2065b53
57f778d
%files
83e9dfb
%{!?_licensedir:%global license %doc}
57f778d
%license COPYING
2065b53
%{_bindir}/%{name}
57f778d
%{_mandir}/man8/%{name}.8*
2065b53
%dir %{_debconfigdir}
2065b53
%{_debconfigdir}/macros
2065b53
%dir %{_debconfigdir}/macros.d
2065b53
%dir %{_sysconfdir}/debbuild
57f778d
57f778d
%changelog
7382067
* Tue Aug 01 2017 Neal Gompa <ngompa13@gmail.com> - 17.5.0-1
7382067
- Rebase to 17.5.0
7382067
f011443
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.6.1-4
f011443
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f011443
c7cd790
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 16.6.1-3
c7cd790
- Perl 5.26 rebuild
c7cd790
7d25764
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.6.1-2
7d25764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7d25764
46a8f7c
* Mon Aug 08 2016 Neal Gompa <ngompa13@gmail.com> - 16.6.1-1
46a8f7c
- Update to 16.6.1
46a8f7c
0a35463
* Thu May 19 2016 Jitka Plesnikova <jplesnik@redhat.com> - 16.3.0-2
0a35463
- Perl 5.24 re-rebuild of bootstrapped packages
0a35463
2065b53
* Sun May 15 2016 Neal Gompa <ngompa13@gmail.com> - 16.3.0-1
2065b53
- Switch to ascherer fork, update to 16.3.0
2065b53
297c34c
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.11.2-3
297c34c
- Perl 5.24 rebuild
297c34c
91c0b09
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.2-2
91c0b09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
91c0b09
cdb5d06
* Thu Jul 16 2015 Neal Gompa <ngompa13{%}gmail{*}com> - 0.11.2-1
cdb5d06
- Update to 0.11.2
cdb5d06
0903844
* Wed Jul  8 2015 Neal Gompa <ngompa13{%}gmail{*}com> - 0.10.1-5
0903844
- Fix previous changelog entry
0903844
83e9dfb
* Wed Jul  8 2015 Neal Gompa <ngompa13{%}gmail{*}com> - 0.10.1-4
0903844
- Add magic definition for storing license file to work on 
83e9dfb
da416e4
* Wed Jul  8 2015 Neal Gompa <ngompa13{%}gmail{*}com> - 0.10.1-3
da416e4
- Fixed perl BuildRequires error for 
da416e4
57f778d
* Sun Jul  5 2015 Neal Gompa <ngompa13{%}gmail{*}com> - 0.10.1-2
57f778d
- Fix dependencies on dpkg-dev and xz
57f778d
- Remove superfluous spec statements (BuildRoot, etc.)
57f778d
- Make variable usage consistent
57f778d
57f778d
* Fri Jun 12 2015 Neal Gompa <ngompa13{%}gmail{*}com> - 0.10.1-1
57f778d
- Initial packaging