* Makefile.am (EXTRA_DIST): Add avrdude.spec and make entries one per

line so future patches are obvious as to what changed.
* avrdude.spec.in: New file to support creation of binaries in rpm format.
* configure.ac (AC_OUTPUT): Add avrdude.spec.
	Reorder so that Makefile is the last entry.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@240 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
troth 2003-02-27 06:56:03 +00:00
parent 55d01ba7a7
commit bc8d778632
3 changed files with 58 additions and 2 deletions

View File

@ -21,7 +21,11 @@
# $Id$
#
EXTRA_DIST = avrdude.1 avrdude.pdf avrdude.conf.in bootstrap
EXTRA_DIST = \
avrdude.1 \
avrdude.pdf \
avrdude.spec \
bootstrap
SUBDIRS = @WINDOWS_DIRS@
DIST_SUBDIRS = windows

51
avrdude.spec.in Normal file
View File

@ -0,0 +1,51 @@
## -*- mode: rpm-spec; -*-
##
## $Id$
##
## @configure_input@
##
Summary: AVRDUDE is software for programming Atmel AVR Microcontrollers.
Name: avrdude
Version: @VERSION@
Release: 1
URL: http://savannah.nongnu.org/projects/avrdude
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Tools
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
AVRDUDE is software for programming Atmel AVR Microcontrollers.
%prep
%setup -q
%build
./configure --prefix=%{_prefix} --sysconfdir=/etc --mandir=%{_mandir}
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} \
sysconfdir=$RPM_BUILD_ROOT/etc \
mandir=$RPM_BUILD_ROOT%{_mandir} \
install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}/bin/avrdude
%{_mandir}/man1/avrdude.1.gz
%attr(0644,root,root) %config /etc/avrdude.conf
%changelog
* Wed Feb 26 2003 Theodore A. Roth <troth@openavr.org>
- Initial build.

View File

@ -113,7 +113,8 @@ AC_SUBST(WINDOWS_DIRS,$WINDOWS_DIRS)
AC_CONFIG_FILES([
windows/Makefile
Makefile
avrdude.spec
avrdude.conf
Makefile
])
AC_OUTPUT