From 5b5468aea913a8aa68c47bfe5e6b72cde4934b34 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 16 Feb 2009 10:43:38 +0100 Subject: [PATCH] Automatically create ftdi_eeprom.spec and include it in the tarball --- Makefile.am | 2 +- configure.in | 2 +- ftdi_eeprom.spec | 33 --------------------------------- ftdi_eeprom.spec.in | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 ftdi_eeprom.spec create mode 100644 ftdi_eeprom.spec.in diff --git a/Makefile.am b/Makefile.am index 5822a0c..4b1e95b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,4 +4,4 @@ AUTOMAKE_OPTIONS = foreign 1.4 SUBDIRS = src -EXTRA_DIST = README AUTHORS ChangeLog +EXTRA_DIST = README AUTHORS ChangeLog ftdi_eeprom.spec ftdi_eeprom.spec.in diff --git a/configure.in b/configure.in index 13e92c8..36af172 100644 --- a/configure.in +++ b/configure.in @@ -12,4 +12,4 @@ PKG_CHECK_MODULES(LIBFTDI, libftdi) AC_SUBST(LIBFTDI_CFLAGS) AC_SUBST(LIBFTDI_LIBS) -AC_OUTPUT(Makefile src/Makefile) +AC_OUTPUT(Makefile src/Makefile ftdi_eeprom.spec) diff --git a/ftdi_eeprom.spec b/ftdi_eeprom.spec deleted file mode 100644 index 2cce3b7..0000000 --- a/ftdi_eeprom.spec +++ /dev/null @@ -1,33 +0,0 @@ -Summary: Tool for creating/reading/erasing/flashing FTDI USB chip eeproms -Name: ftdi_eeprom -Version: 0.3 -Release: 1 -Copyright: GPL -Group: Development/Tools -Vendor: Intra2net AG -Source: %{name}-%{version}.tar.gz -Buildroot: /tmp/%{name}-%{version}-root -Requires: libftdi, libconfuse -BuildRequires: libftdi-devel, libconfuse -Prefix: /usr - -%description -Tool for creating/reading/erasing/flashing FTDI USB chip eeproms - -%prep -%setup -q - -%build -./configure --prefix=%{prefix} -make - -%install -make DESTDIR=$RPM_BUILD_ROOT install - -%clean -rm -fr $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc src/example.conf COPYING -%{prefix}/bin/ftdi_eeprom diff --git a/ftdi_eeprom.spec.in b/ftdi_eeprom.spec.in new file mode 100644 index 0000000..5cfef8f --- /dev/null +++ b/ftdi_eeprom.spec.in @@ -0,0 +1,33 @@ +Summary: Tool for creating/reading/erasing/flashing FTDI USB chip eeproms +Name: ftdi_eeprom +Version: @VERSION@ +Release: 1 +License: GPL +Group: Development/Tools +Vendor: Intra2net AG +Source: %{name}-%{version}.tar.gz +Buildroot: /tmp/%{name}-%{version}-root +Requires: libftdi, libconfuse +BuildRequires: libftdi-devel, libconfuse +Prefix: /usr + +%description +Tool for creating/reading/erasing/flashing FTDI USB chip eeproms + +%prep +%setup -q + +%build +./configure --prefix=%{prefix} +make + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -fr $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc src/example.conf COPYING +%{prefix}/bin/ftdi_eeprom -- 1.7.1