2007-01-16 00:34:53 +01:00
|
|
|
#
|
2011-11-10 13:17:37 +01:00
|
|
|
# spec file for package quilt
|
2007-01-16 00:34:53 +01:00
|
|
|
#
|
2016-11-10 10:51:12 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:34:53 +01:00
|
|
|
#
|
2008-08-15 01:52:40 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:34:53 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-15 01:39:25 +01:00
|
|
|
|
2007-01-16 00:34:53 +01:00
|
|
|
Name: quilt
|
2016-11-10 10:51:12 +01:00
|
|
|
Version: 0.65
|
2013-04-17 22:45:11 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A Tool for Working with Many Patches
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2012-02-27 00:11:58 +01:00
|
|
|
BuildRequires: diffstat
|
|
|
|
BuildRequires: ed
|
|
|
|
BuildRequires: emacs-nox
|
|
|
|
BuildRequires: procmail
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: diffstat
|
|
|
|
Requires: diffutils
|
|
|
|
Requires: file
|
|
|
|
Requires: findutils
|
|
|
|
Requires: gzip
|
2014-03-24 10:13:51 +01:00
|
|
|
Requires: less
|
2012-02-27 00:11:58 +01:00
|
|
|
Requires: mktemp
|
|
|
|
Requires: patch
|
|
|
|
Requires: perl
|
2013-04-17 22:45:11 +02:00
|
|
|
Url: http://savannah.nongnu.org/projects/quilt
|
2013-12-09 13:38:01 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-04-18 18:37:36 +02:00
|
|
|
Source1: suse-start-quilt-mode.el
|
2007-01-16 00:34:53 +01:00
|
|
|
Patch1: expand.diff
|
2013-04-17 22:45:11 +02:00
|
|
|
Patch2: quilt-support-vimdiff.patch
|
2008-03-28 04:59:14 +01:00
|
|
|
Patch3: patch-wrapper-rpm.diff
|
2014-07-31 18:49:15 +02:00
|
|
|
Patch4: suse-workaround-pseudo-release.patch
|
2007-01-16 00:34:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-01 21:30:26 +01:00
|
|
|
BuildArch: noarch
|
2014-12-10 17:05:56 +01:00
|
|
|
%if 0%{?suse_version}
|
2013-04-17 22:45:11 +02:00
|
|
|
Recommends: procmail
|
2013-12-09 11:22:23 +01:00
|
|
|
Recommends: bzip2
|
2014-04-17 10:51:02 +02:00
|
|
|
Recommends: /usr/bin/rpmbuild
|
2014-12-10 17:05:56 +01:00
|
|
|
%endif
|
2013-04-17 22:45:11 +02:00
|
|
|
%if 0%{?suse_version} > 1120
|
|
|
|
Recommends: xz
|
|
|
|
%endif
|
2007-01-16 00:34:53 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Quilt allows you to easily manage large numbers of patches by keeping
|
|
|
|
track of the changes each patch makes. Patches can be applied,
|
|
|
|
un-applied, refreshed, and more.
|
|
|
|
|
|
|
|
%prep
|
2007-10-30 01:15:54 +01:00
|
|
|
%setup -q
|
2011-12-06 15:23:06 +01:00
|
|
|
%patch1 -p1
|
2012-03-02 14:21:19 +01:00
|
|
|
%patch2 -p1
|
2011-12-06 15:23:06 +01:00
|
|
|
%patch3 -p1
|
2014-04-17 10:51:02 +02:00
|
|
|
%patch4 -p1
|
2007-01-16 00:34:53 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# --with-rpmbuild=/usr/lib/rpm/rpmb:
|
|
|
|
#
|
|
|
|
# SUSE Autobuild uses a version of /usr/bin/rpmbuild that sources
|
|
|
|
# /etc/profile to reset the PATH. We must not do that: the
|
|
|
|
# inspect script needs to pass an additional path component to
|
|
|
|
# rpmbuild for the tar and patch wrappers.
|
2013-04-17 22:45:11 +02:00
|
|
|
CFLAGS="%{optflags}" \
|
2007-01-16 00:34:53 +01:00
|
|
|
./configure --prefix=/usr \
|
2007-02-16 07:18:15 +01:00
|
|
|
--mandir=%{_mandir} \
|
2014-12-10 17:05:56 +01:00
|
|
|
--docdir=%{_docdir}/%{name}%{!?suse_version:-%{version}} \
|
2016-11-10 10:51:12 +01:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2007-01-16 00:34:53 +01:00
|
|
|
--with-sendmail=/usr/sbin/sendmail \
|
|
|
|
--with-diffstat=/usr/bin/diffstat \
|
|
|
|
--with-patch-wrapper \
|
|
|
|
--with-patch=/usr/bin/patch \
|
|
|
|
--with-rpmbuild=/usr/lib/rpm/rpmb
|
2015-01-28 14:45:38 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-10-25 15:53:22 +02:00
|
|
|
# Compile quilt.el for faster emacs startup (bnc#617673)
|
2010-10-25 16:06:01 +02:00
|
|
|
pushd lib
|
2010-10-25 15:53:22 +02:00
|
|
|
emacs -batch -q --no-site -f batch-byte-compile quilt.el
|
|
|
|
popd
|
2007-10-26 20:52:23 +02:00
|
|
|
|
|
|
|
%check
|
2007-01-16 00:34:53 +01:00
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
|
|
|
# /usr/share/quilt/compat/mta will be a stale symlink: we don't want to add
|
|
|
|
# sendmail to neededforbuild just because of this.
|
|
|
|
export NO_BRP_STALE_LINK_ERROR=yes
|
2013-04-17 22:45:11 +02:00
|
|
|
make install BUILD_ROOT=%{buildroot}
|
2010-10-25 16:06:01 +02:00
|
|
|
install -m 644 lib/quilt.elc \
|
2013-04-17 22:45:11 +02:00
|
|
|
%{buildroot}%{_datadir}/emacs/site-lisp/
|
|
|
|
mv %{buildroot}%{_sysconfdir}/bash_completion.d/quilt{,.sh}
|
2007-01-16 00:34:53 +01:00
|
|
|
# We only needed the /usr/bin/patch compatibility symlink for the
|
|
|
|
# test suite.
|
2013-04-17 22:45:11 +02:00
|
|
|
[ %{buildroot}%{_datadir}/quilt/compat/patch -ef /usr/bin/patch ] \
|
|
|
|
&& rm -f %{buildroot}%{_datadir}/quilt/compat/patch
|
|
|
|
[ %{buildroot}%{_datadir}/quilt/compat/awk -ef /usr/bin/awk ] \
|
|
|
|
&& rm -f %{buildroot}%{_datadir}/quilt/compat/awk
|
2007-01-16 00:34:53 +01:00
|
|
|
%{find_lang} %{name}
|
|
|
|
# Make "vi" an alias for the edit command
|
2013-04-17 22:45:11 +02:00
|
|
|
ln -s edit %{buildroot}%{_datadir}/quilt/vi
|
2007-04-18 18:37:36 +02:00
|
|
|
# Autoload quilt-mode in the SuSE emacs package
|
|
|
|
install -m 644 %_sourcedir/suse-start-quilt-mode.el \
|
2013-04-17 22:45:11 +02:00
|
|
|
%{buildroot}%{_datadir}/emacs/site-lisp/
|
2007-01-16 00:34:53 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-, root, root)
|
2013-04-17 22:45:11 +02:00
|
|
|
%{_bindir}/guards
|
|
|
|
%{_bindir}/quilt
|
|
|
|
%{_datadir}/quilt/
|
|
|
|
%{_datadir}/emacs/
|
|
|
|
%config %{_sysconfdir}/quilt.quiltrc
|
|
|
|
%config %{_sysconfdir}/bash_completion.d/quilt.sh
|
2007-01-16 00:34:53 +01:00
|
|
|
%doc %{_mandir}/man1/guards.1.gz
|
|
|
|
%doc %{_mandir}/man1/quilt.1.gz
|
|
|
|
%doc doc/README
|
|
|
|
%doc doc/README.MAIL
|
|
|
|
%doc doc/quilt.pdf
|
2008-02-15 01:39:25 +01:00
|
|
|
|
2007-03-27 01:46:52 +02:00
|
|
|
%changelog
|