]>
Commit | Line | Data |
---|---|---|
bbee6e63 ER |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: Scripts for Debian Package maintainers | |
3 | Name: devscripts | |
4 | Version: 2.13.9 | |
3843500c | 5 | Release: 1 |
bbee6e63 ER |
6 | License: GPL v2+ |
7 | Group: Development | |
8 | Source0: http://ftp.debian.org/debian/pool/main/d/devscripts/%{name}_%{version}.tar.xz | |
9 | # Source0-md5: a55e715d41cd45c465fa937683e8e5dd | |
10 | # Fixes path to xsl-stylesheet manpages docbook.xsl | |
11 | Patch0: %{name}_docbook.patch | |
12 | # Removes the debian-only --install-layout python-setuptools option | |
13 | Patch1: %{name}_install-layout.patch | |
14 | # Install some additional man pages | |
15 | Patch2: %{name}_install-man.patch | |
16 | URL: http://packages.debian.org/unstable/admin/devscripts | |
17 | BuildRequires: docbook-style-xsl | |
18 | BuildRequires: dpkg | |
19 | BuildRequires: libxslt | |
20 | BuildRequires: perl-DB_File | |
21 | BuildRequires: perl-File-DesktopEntry | |
22 | BuildRequires: perl-Parse-DebControl | |
23 | BuildRequires: perl-base | |
24 | BuildRequires: perl-libwww | |
25 | BuildRequires: perl-modules | |
26 | BuildRequires: po4a | |
27 | BuildRequires: python3-devel | |
28 | BuildRequires: python3-setuptools | |
29 | BuildRequires: rpm-perlprov >= 4.1-13 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | # man for manpage-alert | |
33 | Requires: %{_bindir}/man | |
34 | Requires: checkbashisms = %{version}-%{release} | |
35 | #Requires: dpkg-dev | |
36 | Conflicts: rpmdevtools < 8.4 | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Scripts to make the life of a Debian Package maintainer easier. | |
41 | ||
42 | %package -n checkbashisms | |
43 | Summary: Check shell scripts for common bash-specific contructs | |
3843500c ER |
44 | Group: Development |
45 | %if "%{_rpmversion}" >= "5" | |
46 | BuildArch: noarch | |
47 | %endif | |
bbee6e63 ER |
48 | |
49 | %description -n checkbashisms | |
50 | checkbashisms checks whether a /bin/sh script contains any common | |
51 | bash-specific contructs. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | %patch1 -p1 | |
57 | %patch2 -p1 | |
58 | ||
59 | # Search for libvfork in %{_libdir}/%{name} | |
60 | sed -i 's|%{_prefix}/lib/devscripts/libvfork.so.0|%{_libdir}/%{name}/libvfork.so.0|g' scripts/dpkg-depcheck.pl | |
61 | ||
62 | %build | |
63 | # LIBDIR determines where libvfork gets installed, see scripts/Makefile for LIBDIR | |
64 | %{__make} \ | |
65 | LIBDIR=%{_libdir}/%{name} \ | |
66 | CFLAGS="$RPM_OPT_FLAGS" \ | |
67 | LDFLAGS="$RPM_LD_FLAGS" | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | %make_install \ | |
72 | LIBDIR=%{_libdir}/%{name} | |
73 | ||
74 | # Install docs through %doc | |
3843500c | 75 | rm -r $RPM_BUILD_ROOT%{_docdir} |
bbee6e63 ER |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc README COPYING | |
83 | %attr(755,root,root) %{_bindir}/* | |
84 | %exclude %{_bindir}/checkbashisms | |
85 | %{_mandir}/man1/* | |
86 | %exclude %{_mandir}/man1/checkbashisms.1* | |
3843500c ER |
87 | %dir %{_libdir}/%{name} |
88 | %attr(755,root,root) %{_libdir}/%{name}/libvfork.so.0 | |
bbee6e63 ER |
89 | %{py3_sitescriptdir}/%{name} |
90 | %{py3_sitescriptdir}/%{name}*.egg-info | |
91 | %{_datadir}/%{name} | |
92 | ||
3843500c | 93 | /etc/bash_completion.d/* |
bbee6e63 ER |
94 | |
95 | %files -n checkbashisms | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_bindir}/checkbashisms | |
98 | %{_mandir}/man1/checkbashisms.1* |