|
|
|
@@ -1,21 +1,14 @@
|
|
|
|
|
%global emacs_sitestart_d %{_datadir}/emacs/site-lisp/site-start.d
|
|
|
|
|
%global xemacs_sitestart_d %{_datadir}/xemacs/site-packages/lisp/site-start.d
|
|
|
|
|
%global spectool_version 1.0.10
|
|
|
|
|
%global spectool_version 1.0.10
|
|
|
|
|
|
|
|
|
|
Name: rpmdevtools
|
|
|
|
|
Version: 7.10
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 8.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: RPM Development Tools
|
|
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
# rpmdev-setuptree is GPLv2, everything else GPLv2+
|
|
|
|
|
License: GPLv2+ and GPLv2
|
|
|
|
|
URL: https://fedorahosted.org/rpmdevtools/
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# help2man, pod2man, *python for creating man pages
|
|
|
|
@@ -23,7 +16,14 @@ BuildRequires: help2man
|
|
|
|
|
BuildRequires: %{_bindir}/pod2man
|
|
|
|
|
BuildRequires: python >= 2.4
|
|
|
|
|
BuildRequires: rpm-python
|
|
|
|
|
# emacs-common >= 1:22.3-3 for macros.emacs
|
|
|
|
|
BuildRequires: emacs-common >= 1:22.3-3
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
# xemacs-common >= 21.5.29-8 for macros.xemacs
|
|
|
|
|
BuildRequires: xemacs-common >= 21.5.29-8
|
|
|
|
|
%endif
|
|
|
|
|
Provides: spectool = %{spectool_version}
|
|
|
|
|
Requires: curl
|
|
|
|
|
Requires: diffutils
|
|
|
|
|
Requires: fakeroot
|
|
|
|
|
Requires: file
|
|
|
|
@@ -35,9 +35,10 @@ Requires: python >= 2.4
|
|
|
|
|
Requires: rpm-build >= 4.4.2.3
|
|
|
|
|
Requires: rpm-python
|
|
|
|
|
Requires: sed
|
|
|
|
|
Requires: wget
|
|
|
|
|
# For _get_cword in bash completion snippet
|
|
|
|
|
Conflicts: bash-completion < 20080705
|
|
|
|
|
Requires: emacs-filesystem
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
Requires: xemacs-filesystem
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains scripts and (X)Emacs support files to aid in
|
|
|
|
@@ -58,12 +59,7 @@ rpmdev-bumpspec Bump revision in specfile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -a 1
|
|
|
|
|
cp -p spectool-%{spectool_version}/README README.spectool
|
|
|
|
|
cd spectool-%{spectool_version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
cd ..
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@@ -76,46 +72,61 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
install -pm 755 spectool-%{spectool_version}/spectool $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
|
|
|
|
|
for dir in %{emacs_sitestart_d} %{xemacs_sitestart_d} ; do
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
for dir in %{_emacs_sitestartdir} %{_xemacs_sitestartdir} ; do
|
|
|
|
|
%else
|
|
|
|
|
for dir in %{_emacs_sitestartdir} ; do
|
|
|
|
|
%endif
|
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT$dir
|
|
|
|
|
ln -s %{_datadir}/rpmdevtools/rpmdev-init.el $RPM_BUILD_ROOT$dir
|
|
|
|
|
touch $RPM_BUILD_ROOT$dir/rpmdev-init.elc
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%triggerin -- emacs-common
|
|
|
|
|
[ -d %{emacs_sitestart_d} ] && \
|
|
|
|
|
ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{emacs_sitestart_d} || :
|
|
|
|
|
|
|
|
|
|
%triggerin -- xemacs-common
|
|
|
|
|
[ -d %{xemacs_sitestart_d} ] && \
|
|
|
|
|
ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{xemacs_sitestart_d} || :
|
|
|
|
|
|
|
|
|
|
%triggerun -- emacs-common
|
|
|
|
|
[ $2 -eq 0 ] && rm -f %{emacs_sitestart_d}/rpmdev-init.el* || :
|
|
|
|
|
|
|
|
|
|
%triggerun -- xemacs-common
|
|
|
|
|
[ $2 -eq 0 ] && rm -f %{xemacs_sitestart_d}/rpmdev-init.el* || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYING NEWS README*
|
|
|
|
|
%doc COPYING NEWS
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/rpmdevtools/
|
|
|
|
|
%{_sysconfdir}/bash_completion.d/
|
|
|
|
|
%{_datadir}/rpmdevtools/
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%ghost %{_datadir}/*emacs
|
|
|
|
|
%{_emacs_sitestartdir}/rpmdev-init.el
|
|
|
|
|
%ghost %{_emacs_sitestartdir}/rpmdev-init.elc
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%{_xemacs_sitestartdir}/rpmdev-init.el
|
|
|
|
|
%ghost %{_xemacs_sitestartdir}/rpmdev-init.elc
|
|
|
|
|
%endif
|
|
|
|
|
%{_mandir}/man[18]/*.[18]*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 16 2012 Thomas Woerner <twoerner@redhat.com> - 8.3-2
|
|
|
|
|
- xemacs is not available on RHEL (RHBZ#866841)
|
|
|
|
|
|
|
|
|
|
* Sun Sep 2 2012 Ville Skyttä <ville.skytta@iki.fi> - 8.3-1
|
|
|
|
|
- Update to 8.3.
|
|
|
|
|
- Drop specfile constructs no longer needed with Fedora's rpm.
|
|
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Nov 12 2011 Ville Skyttä <ville.skytta@iki.fi> - 8.2-1
|
|
|
|
|
- Update to 8.2.
|
|
|
|
|
|
|
|
|
|
* Tue Apr 26 2011 Ville Skyttä <ville.skytta@iki.fi> - 8.1-1
|
|
|
|
|
- Update to 8.1.
|
|
|
|
|
|
|
|
|
|
* Tue Mar 1 2011 Ville Skyttä <ville.skytta@iki.fi> - 8.0-3
|
|
|
|
|
- Require xemacs-filesystem on F-15+ (#672093).
|
|
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- Update to 7.10, fixes #595135 and #619867.
|
|
|
|
|
- Patch spectool to work with specfiles containing Icon or BuildArchitectures
|
|
|
|
|