[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Suggestion: quilt



On Thu, 2005-03-31 at 20:21 -0600, Josh Boyer wrote:
> Howdy,
> 
> I built a package for quilt that I think should be up to Extras
> standards.  I believe I have a sponsor already, but I'm still firming
> some things up with my employer before submitting my papers for CVS
> access.

Here's a patch for your quilt package.  Changelog:

- Full URL for Source.
- Changed some of the entries in the %%files section to own more
  directories, add more docs, and mark config files as config.
- Add some BuildRequires, configure switches and Requires so various
  quilt commandline options work.

I have just started using quilt, so there may be more Requires that need
to be added in order to make everything function properly.  I ran
everything through bash --rpm-requires for good measure so it's as
complete as can be without exhaustive testing.

-Toshio
-- 
--- quilt.spec.bak	2005-04-01 13:23:10.000000000 -0500
+++ quilt.spec	2005-04-03 12:46:32.644254757 -0400
@@ -7,11 +7,26 @@
 License:	GPL
 Group:		Development/Tools
 Version:	0.39
-Release:	1
-Requires:	coreutils diffutils patch gzip bzip2 perl mktemp gettext
-Source:		quilt-%{version}.tar.gz
+Release:	2
+Source:	http://savannah.nongnu.org/download/quilt/quilt-%{version}.tar.gz
 URL:		http://savannah.nongnu.org/projects/quilt
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: gettext
+Requires: coreutils
+Requires: diffutils
+Requires: patch
+Requires: gzip
+Requires: bzip2
+Requires: mktemp
+Requires: sed
+Requires: gawk
+Requires: diffstat
+Requires: %{_sbindir}/sendmail
+Requires: rpm-build
+Requires: util-linux
+Requires: findutils
+Requires: grep
+Requires: tar
 
 %description
 The scripts allow one to manage a series of patches by keeping
@@ -30,31 +45,38 @@
 %setup
 
 %build
-./configure
-make prefix=%{_prefix} BUILD_ROOT=$RPM_BUILD_ROOT
+%configure --with-mta=%{_sbindir}/sendmail --with-diffstat=%{_bindir}/diffstat
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install prefix=%{_prefix} BUILD_ROOT=$RPM_BUILD_ROOT
+make install BUILD_ROOT=$RPM_BUILD_ROOT
 %{find_lang} %{name}
+mv $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/* .
+rm -rf $RPM_BUILD_ROOT/%{_docdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(-, root, root)
+%doc README README.MAIL quilt.pdf
+%doc AUTHORS BUGS COPYING TODO
 %{_bindir}/guards
 %{_bindir}/quilt
 %{_datadir}/quilt/
 %{_libdir}/quilt/
-%{_sysconfdir}/bash_completion.d/quilt
-%{_sysconfdir}/quilt.quiltrc
-%doc %{_mandir}/man1/guards.1.gz
-%doc %{_mandir}/man1/quilt.1.gz
-%doc %{_docdir}/%{name}-%{version}/README
-%doc %{_docdir}/%{name}-%{version}/README.MAIL
-%doc %{_docdir}/%{name}-%{version}/quilt.pdf
+%{_sysconfdir}/bash_completion.d
+%config %{_sysconfdir}/quilt.quiltrc
+%{_mandir}/man1/*
 
 %changelog
+* Fri Apr 1 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.39-2
+- Full URL for Source.
+- Changed some of the entries in the %%files section to own more directories,
+  add more docs, and mark config files as config.
+- Add some BuildRequires, configure switches and Requires so various quilt
+  commandline options work.
+
 * Thu Mar 31 2005 - jwboyer jdub homelinux org
 - Adapt quilt spec file to Fedora Extras conventions

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]