# we don't want to either provide or require anything from _docdir, per policy # https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering %{?filter_setup: %filter_provides_in %{_docdir} %filter_requires_in %{_docdir} %filter_setup } Name: debhelper Version: 9.20150628 Release: 4%{?dist} Summary: Helper programs for Debian rules Group: Development/Tools License: GPLv2+ URL: http://kitenet.net/~joey/code/debhelper/ Source0: http://ftp.de.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.xz Patch0: debhelper-7.4.20-no-utf8-to-pod2man.patch BuildArch: noarch BuildRequires: bash BuildRequires: coreutils BuildRequires: dpkg-dev BuildRequires: findutils BuildRequires: grep BuildRequires: make BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl-podlators BuildRequires: perl(Config) BuildRequires: perl(File::Find) BuildRequires: perl(strict) BuildRequires: po4a BuildRequires: sed # Run-time: BuildRequires: perl(base) BuildRequires: perl(constant) BuildRequires: perl(Cwd) # Dpkg::BuildProfiles not used at tests BuildRequires: perl(Exporter) BuildRequires: perl(File::Spec) BuildRequires: perl(File::stat) BuildRequires: perl(Getopt::Long) BuildRequires: perl(vars) BuildRequires: perl(warnings) # Tests: BuildRequires: perl(File::Basename) BuildRequires: perl(File::Temp) BuildRequires: perl(IPC::Open2) BuildRequires: perl(Test) BuildRequires: perl(Test::Harness) BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(Test::Pod) Requires: binutils Requires: dpkg-dev Requires: html2text Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Dpkg::BuildProfiles) Requires: po-debconf %description A collection of programs that can be used in a Debian rules file to automate common tasks related to building Debian packages. Programs are included to install various files into your package, compress files, fix file permissions, integrate your package with the Debian menu system, debconf, doc-base, etc. Most Debian packages use debhelper as part of their build process. %prep %setup -q -n %{name} %patch0 -p1 -b .no-utf8-to-pod2man %build make %{?_smp_mflags} build %install %make_install # Use debhelper to install (man-pages of) debhelper... ./run dh_installman -P %{buildroot} # Add man-pages to a .lang file: # We cannot use "find_lang --with-man" because it only handle # single man-page -- we have many rm -f debhelper-mans.lang for lang in de es fr pt; do for level in 1 7; do # Append to .lang file # Replace buildroot with the lang prefix, append '*' (for gzip, etc.) find %{buildroot}%{_mandir}/$lang/man$level -type f -o -type l | sed " s:^%{buildroot}:%%lang($lang) : s:\$:*: " >> debhelper-mans.lang done done %check #debug dpkg-architecture -qDEB_BUILD_GNU_TYPE dpkg-architecture -qDEB_HOST_GNU_TYPE make test %files -f debhelper-mans.lang %doc examples/ doc/ %{_mandir}/man1/* %{_mandir}/man7/* %{_bindir}/dh* %dir %{_datadir}/%{name} %{_datadir}/%{name}/autoscripts %{perl_vendorlib}/* %changelog * Tue May 17 2016 Jitka Plesnikova - 9.20150628-4 - Perl 5.24 rebuild * Wed Feb 03 2016 Fedora Release Engineering - 9.20150628-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Oct 22 2015 Petr Pisar - 9.20150628-2 - Specify all dependencies (bug #1272893) * Mon Jul 13 2015 Sérgio Basto - 9.20150628-1 - Update to 9.20150628 * Mon Jul 13 2015 Sérgio Basto - 9.20150507-2 - Debhelper requires dpkg-dev (#1242630) and dpkg-dev requires dpkg-perl * Sat Jun 20 2015 Sérgio Basto - 9.20150507-1 - Update to 9.20150507 * Wed Jun 17 2015 Fedora Release Engineering - 9.20150101-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 9.20150101-3 - Perl 5.22 rebuild * Sat Apr 25 2015 Sérgio Basto - 9.20150101-2 - Fix, properly, pt man pages. - Added dpkg-architecture comands to debug test failures on arm builders. * Fri Apr 24 2015 Sérgio Basto - 9.20150101-1 - Update to 9.20150101 * Fri Nov 07 2014 Petr Pisar - 9.20140613-4 - Build-require perl-podlators for pod2man tool (bug #1161450) * Wed Sep 17 2014 Petr Pisar - 9.20140613-3 - Rebuild against perl 5.20 * Wed Aug 27 2014 Jitka Plesnikova - 9.20140613-2 - Perl 5.20 rebuild * Mon Jul 28 2014 Sérgio Basto - 9.20140613-1 - Update to 9.20140613 * Wed Jun 11 2014 Sérgio Basto - 9.20140228-1 - Update 9.20140228 * Sat Jun 07 2014 Fedora Release Engineering - 9.20131227-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 19 2014 Sérgio Basto - 9.20131227-2 - Fix %%{perl_vendorlib} directory ownership * Mon Feb 10 2014 Sérgio Basto - 9.20131227-1 - Update to 9.20131227, most of the work by Sandro Mani - Drop debhelper-find-perm.patch, fixed upstream. - Drop debhelper-fr.po.patch, fixed upstream. * Sat Aug 03 2013 Fedora Release Engineering - 9.20120909-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jul 18 2013 Petr Pisar - 9.20120909-2 - Perl 5.18 rebuild * Fri May 10 2013 Oron Peled - 9.20120909-1 - Update to latest Debian/wheezy version - Fix find_lang for man-pages - Added 'de' to language list * Thu Mar 29 2012 Oron Peled - 9.20120322-3 - Fix testing BR -- perl(Test::...) - Now make test works as intended * Wed Mar 28 2012 Oron Peled - 9.20120322-2 - Avoid auto-requires under _docdir - Prepare for make test (but don't fail yet, as we miss perl-Test-More) * Mon Mar 26 2012 Jeroen van Meeuwen - 9.20120322 - New version * Wed Sep 29 2010 Jeroen van Meeuwen - 7.4.20-4 - Fix locale * Fri Aug 13 2010 Jeroen van Meeuwen - 7.4.20-3 - Fix description * Thu May 13 2010 Jeroen van Meeuwen - 7.4.20-2 - Include es/fr man pages - Update to newer version from Debian Sid - Fix package requirements * Tue May 11 2010 Jeroen van Meeuwen - 7.0.15-1 - First package