]> git.pld-linux.org Git - packages/debhelper.git/blobdiff - debhelper.spec
- use http://ftp.debian.org/ url
[packages/debhelper.git] / debhelper.spec
index 05dfa0734d54d0640bbeb497f345634fca74ccf2..b20839c37b0db93b167accd5c2e4b9a54e896bce 100644 (file)
@@ -1,17 +1,25 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+
 Summary:       Helper programs for debian/rules
 Summary(pl.UTF-8):     Programy pomocnicze dla debian/rules
 Name:          debhelper
-Version:       5.0.62
-Release:       0.1
-License:       GPL v2
-Group:         Applications
-Source0:       ftp://ftp.debian.org/debian/pool/main/d/debhelper/%{name}_%{version}.tar.gz
-# Source0-md5: 7c611f49e95db3638f0bdef2458677ed
-URL:           http://kitenet.net/~joey/code/debhelper/
+Version:       9.20160814
+Release:       1
+License:       GPL v2+
+Group:         Development/Tools
+Source0:       http://ftp.debian.org/debian/pool/main/d/debhelper/%{name}_%{version}.tar.xz
+# Source0-md5: 2e6a77d0f969d2421260f3f75a2cf1ff
+URL:           http://joeyh.name/code/debhelper/
 BuildRequires: dpkg
 BuildRequires: fakeroot
+# uses man-db specific --recode option in dh_installman
+BuildRequires: man-db
 BuildRequires: perl-tools-pod
 BuildRequires: po4a
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,38 +40,52 @@ pakietu, kompresji plików, poprawiania uprawnień plików, integracji
 pakietu z systemem menu Debiana, debconfem, doc-base itp.
 
 %prep
-%setup -q -n %{name}
+%setup -qc
+mv %{name}/* .
 
 %build
+%{!?with_tests:DEB_BUILD_OPTIONS=nocheck} \
 fakeroot debian/rules binary
-mv debian/debhelper/usr/share/doc/debhelper doc
+mv debian/debhelper%{_docdir}/debhelper doc
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT
 cp -a debian/debhelper/* $RPM_BUILD_ROOT
 
-rm -rf $RPM_BUILD_ROOT/DEBIAN
-rm -rf $RPM_BUILD_ROOT%{_docdir}/debhelper
+%{__rm} -r $RPM_BUILD_ROOT/DEBIAN
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/* examples debian/changelog
+%doc doc/*
+%attr(755,root,root) %{_bindir}/dh
 %attr(755,root,root) %{_bindir}/dh_*
 %{_datadir}/%{name}
 
 %dir %{perl_vendorlib}/Debian
 %dir %{perl_vendorlib}/Debian/Debhelper
+%{perl_vendorlib}/Debian/Debhelper/Dh_Buildsystems.pm
 %{perl_vendorlib}/Debian/Debhelper/Dh_Getopt.pm
 %{perl_vendorlib}/Debian/Debhelper/Dh_Lib.pm
 %{perl_vendorlib}/Debian/Debhelper/Dh_Version.pm
+%{perl_vendorlib}/Debian/Debhelper/Sequence
+%{perl_vendorlib}/Debian/Debhelper/Buildsystem
+%{perl_vendorlib}/Debian/Debhelper/Buildsystem.pm
 
+%{_mandir}/man1/dh.1*
 %{_mandir}/man1/dh_*.1*
+%lang(de) %{_mandir}/de/man1/dh.1*
+%lang(de) %{_mandir}/de/man1/dh_*.1*
+%lang(es) %{_mandir}/es/man1/dh.1*
 %lang(es) %{_mandir}/es/man1/dh_*.1*
+%lang(fr) %{_mandir}/fr/man1/dh.1*
 %lang(fr) %{_mandir}/fr/man1/dh_*.1*
+%lang(pt) %{_mandir}/pt/man1/dh.1*
+%lang(pt) %{_mandir}/pt/man1/dh_*.1*
 %{_mandir}/man7/debhelper.7*
-%lang(es) %{_mandir}/es/man7/debhelper.7*
+%lang(de) %{_mandir}/de/man7/debhelper.7*
 %lang(fr) %{_mandir}/fr/man7/debhelper.7*
+%lang(pt) %{_mandir}/pt/man7/debhelper.7*
This page took 0.051516 seconds and 4 git commands to generate.