parent
3dc51dea02
commit
cd37a3e337
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
/spectool-1.0.10.tar.bz2
|
/rpmdevtools-8.0.tar.xz
|
||||||
/rpmdevtools-7.10.tar.xz
|
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
%global emacs_sitestart_d %{_datadir}/emacs/site-lisp/site-start.d
|
%global spectool_version 1.0.10
|
||||||
%global xemacs_sitestart_d %{_datadir}/xemacs/site-packages/lisp/site-start.d
|
|
||||||
# Intentionally not updating spectool to 1.0.11, it uses a problematic
|
|
||||||
# wget -N -O combination.
|
|
||||||
%global spectool_version 1.0.10
|
|
||||||
|
|
||||||
Name: rpmdevtools
|
Name: rpmdevtools
|
||||||
Version: 7.10
|
Version: 8.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: RPM Development Tools
|
Summary: RPM Development Tools
|
||||||
|
|
||||||
@ -14,9 +10,6 @@ Group: Development/Tools
|
|||||||
License: GPLv2+ and GPLv2
|
License: GPLv2+ and GPLv2
|
||||||
URL: https://fedorahosted.org/rpmdevtools/
|
URL: https://fedorahosted.org/rpmdevtools/
|
||||||
Source0: https://fedorahosted.org/released/rpmdevtools/%{name}-%{version}.tar.xz
|
Source0: https://fedorahosted.org/released/rpmdevtools/%{name}-%{version}.tar.xz
|
||||||
Source1: http://people.redhat.com/nphilipp/spectool/spectool-%{spectool_version}.tar.bz2
|
|
||||||
Patch0: spectool-1.0.10-sourcenum.patch
|
|
||||||
Patch1: spectool-1.0.10-problemtags-637000.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -25,7 +18,12 @@ BuildRequires: help2man
|
|||||||
BuildRequires: %{_bindir}/pod2man
|
BuildRequires: %{_bindir}/pod2man
|
||||||
BuildRequires: python >= 2.4
|
BuildRequires: python >= 2.4
|
||||||
BuildRequires: rpm-python
|
BuildRequires: rpm-python
|
||||||
|
# emacs-common >= 1:22.3-3 for macros.emacs
|
||||||
|
BuildRequires: emacs-common >= 1:22.3-3
|
||||||
|
# xemacs-common >= 21.5.29-8 for macros.xemacs
|
||||||
|
BuildRequires: xemacs-common >= 21.5.29-8
|
||||||
Provides: spectool = %{spectool_version}
|
Provides: spectool = %{spectool_version}
|
||||||
|
Requires: curl
|
||||||
Requires: diffutils
|
Requires: diffutils
|
||||||
Requires: fakeroot
|
Requires: fakeroot
|
||||||
Requires: file
|
Requires: file
|
||||||
@ -37,7 +35,9 @@ Requires: python >= 2.4
|
|||||||
Requires: rpm-build >= 4.4.2.3
|
Requires: rpm-build >= 4.4.2.3
|
||||||
Requires: rpm-python
|
Requires: rpm-python
|
||||||
Requires: sed
|
Requires: sed
|
||||||
Requires: wget
|
%if 0%{?fedora} > 14
|
||||||
|
Requires: emacs-filesystem
|
||||||
|
%endif
|
||||||
# For _get_cword in bash completion snippet
|
# For _get_cword in bash completion snippet
|
||||||
Conflicts: bash-completion < 20080705
|
Conflicts: bash-completion < 20080705
|
||||||
|
|
||||||
@ -60,12 +60,7 @@ rpmdev-bumpspec Bump revision in specfile
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 1
|
%setup -q
|
||||||
cp -p spectool-%{spectool_version}/README README.spectool
|
|
||||||
cd spectool-%{spectool_version}
|
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -78,9 +73,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
install -pm 755 spectool-%{spectool_version}/spectool $RPM_BUILD_ROOT%{_bindir}
|
for dir in %{_emacs_sitestartdir} %{_xemacs_sitestartdir} ; do
|
||||||
|
|
||||||
for dir in %{emacs_sitestart_d} %{xemacs_sitestart_d} ; do
|
|
||||||
install -dm 755 $RPM_BUILD_ROOT$dir
|
install -dm 755 $RPM_BUILD_ROOT$dir
|
||||||
ln -s %{_datadir}/rpmdevtools/rpmdev-init.el $RPM_BUILD_ROOT$dir
|
ln -s %{_datadir}/rpmdevtools/rpmdev-init.el $RPM_BUILD_ROOT$dir
|
||||||
touch $RPM_BUILD_ROOT$dir/rpmdev-init.elc
|
touch $RPM_BUILD_ROOT$dir/rpmdev-init.elc
|
||||||
@ -91,33 +84,44 @@ done
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?fedora} <= 14
|
||||||
%triggerin -- emacs-common
|
%triggerin -- emacs-common
|
||||||
[ -d %{emacs_sitestart_d} ] && \
|
[ -d %{_emacs_sitestartdir} ] && \
|
||||||
ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{emacs_sitestart_d} || :
|
ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{_emacs_sitestartdir} || :
|
||||||
|
|
||||||
%triggerin -- xemacs-common
|
|
||||||
[ -d %{xemacs_sitestart_d} ] && \
|
|
||||||
ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{xemacs_sitestart_d} || :
|
|
||||||
|
|
||||||
%triggerun -- emacs-common
|
%triggerun -- emacs-common
|
||||||
[ $2 -eq 0 ] && rm -f %{emacs_sitestart_d}/rpmdev-init.el* || :
|
[ $2 -eq 0 ] && rm -f %{_emacs_sitestartdir}/rpmdev-init.el* || :
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%triggerin -- xemacs-common
|
||||||
|
[ -d %{_xemacs_sitestartdir} ] && \
|
||||||
|
ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{_xemacs_sitestartdir} || :
|
||||||
|
|
||||||
%triggerun -- xemacs-common
|
%triggerun -- xemacs-common
|
||||||
[ $2 -eq 0 ] && rm -f %{xemacs_sitestart_d}/rpmdev-init.el* || :
|
[ $2 -eq 0 ] && rm -f %{_xemacs_sitestartdir}/rpmdev-init.el* || :
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING NEWS README*
|
%doc COPYING NEWS
|
||||||
%config(noreplace) %{_sysconfdir}/rpmdevtools/
|
%config(noreplace) %{_sysconfdir}/rpmdevtools/
|
||||||
%{_sysconfdir}/bash_completion.d/
|
%{_sysconfdir}/bash_completion.d/
|
||||||
%{_datadir}/rpmdevtools/
|
%{_datadir}/rpmdevtools/
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%ghost %{_datadir}/*emacs
|
%if 0%{?fedora} > 14
|
||||||
|
%{_emacs_sitestartdir}/rpmdev-init.el
|
||||||
|
%ghost %{_emacs_sitestartdir}/rpmdev-init.elc
|
||||||
|
%else
|
||||||
|
%ghost %{_datadir}/emacs
|
||||||
|
%endif
|
||||||
|
%ghost %{_datadir}/xemacs
|
||||||
%{_mandir}/man[18]/*.[18]*
|
%{_mandir}/man[18]/*.[18]*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 6 2011 Ville Skyttä <ville.skytta@iki.fi> - 8.0-1
|
||||||
|
- Update to 8.0, fixes #519061 and #657594.
|
||||||
|
|
||||||
* Mon Sep 27 2010 Ville Skyttä <ville.skytta@iki.fi> - 7.10-1
|
* Mon Sep 27 2010 Ville Skyttä <ville.skytta@iki.fi> - 7.10-1
|
||||||
- Update to 7.10, fixes #595135 and #619867.
|
- Update to 7.10, fixes #595135 and #619867.
|
||||||
- Patch spectool to work with specfiles containing Icon or BuildArchitectures
|
- Patch spectool to work with specfiles containing Icon or BuildArchitectures
|
||||||
|
3
sources
3
sources
@ -1,2 +1 @@
|
|||||||
d193612122f297ee4b37f1b04f605768 spectool-1.0.10.tar.bz2
|
506d498af400c9739a0fcb7f611b3c2a rpmdevtools-8.0.tar.xz
|
||||||
b2e7d7e8fbdbcae8c31b7249fd1dc615 rpmdevtools-7.10.tar.xz
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
https://bugzilla.redhat.com/637000
|
|
||||||
|
|
||||||
diff -up spectool-1.0.10/spectool~ spectool-1.0.10/spectool
|
|
||||||
--- spectool-1.0.10/spectool~ 2008-02-12 12:32:21.000000000 +0200
|
|
||||||
+++ spectool-1.0.10/spectool 2010-09-27 19:17:31.483281717 +0300
|
|
||||||
@@ -108,7 +108,7 @@ sub eval_sources_patches {
|
|
||||||
last;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
- next if ($line =~ m/^\s*(BuildArch|Exclu(d|siv)e(Arch|OS))\s*:/i);
|
|
||||||
+ next if ($line =~ m/^\s*(BuildArch(itectures)?|Exclu(d|siv)e(Arch|OS)|Icon)\s*:/i);
|
|
||||||
$preamble .= $line;
|
|
||||||
if ($line !~ m/^\s*(?:source|patch)\d*\s*:/) {
|
|
||||||
print $tmpspec_fh $line;
|
|
@ -1,17 +0,0 @@
|
|||||||
Fix for -s x,y, -p x,y from Todd Zullinger:
|
|
||||||
https://www.redhat.com/archives/fedora-devel-list/2009-August/msg00621.html
|
|
||||||
|
|
||||||
diff -up spectool-1.0.10/spectool~ spectool-1.0.10/spectool
|
|
||||||
--- spectool-1.0.10/spectool~ 2008-02-12 12:32:21.000000000 +0200
|
|
||||||
+++ spectool-1.0.10/spectool 2009-08-21 02:12:56.000000000 +0300
|
|
||||||
@@ -269,8 +269,8 @@ GetOptions ('h|help' => sub { $command =
|
|
||||||
'v|verbose' => sub { $verbose++; },
|
|
||||||
'n|dryrun|dry-run' => sub { $dryrun = 1; },
|
|
||||||
'V|version' => sub { $command = 'version'; },
|
|
||||||
- 's|source=i' => \@sources,
|
|
||||||
- 'p|patch=i' => \@patches,
|
|
||||||
+ 's|source=s' => \@sources,
|
|
||||||
+ 'p|patch=s' => \@patches,
|
|
||||||
'S|sources' => sub { push @what, 'sources'; },
|
|
||||||
'P|patches' => sub { push @what, 'patches'; },
|
|
||||||
'A|all' => sub { push @what, 'all'; },
|
|
Loading…
Reference in New Issue
Block a user