diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00440ed --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +wxapt-1.3.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index dfc35ca..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: wxapt -# $Id$ -NAME := wxapt -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index e69de29..dc03835 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +04bc342743af558cd7f95c62ce4a84bc wxapt-1.3.tar.gz diff --git a/wxapt.makefile.patch b/wxapt.makefile.patch new file mode 100644 index 0000000..36ad3d9 --- /dev/null +++ b/wxapt.makefile.patch @@ -0,0 +1,35 @@ +diff -up wxapt/Makefile.orig wxapt/Makefile +--- wxapt/Makefile.orig 2007-11-23 02:18:31.000000000 -0500 ++++ wxapt/Makefile 2009-01-14 10:29:28.000000000 -0500 +@@ -2,10 +2,12 @@ + + SHELL = /bin/sh + PROJECT = wxapt +-BINDIR = /usr/local/bin +-DOCDIR = /usr/local/share/doc/ ++BINDIR = /usr/bin ++DOCDIR = /usr/share/doc/ + CC = gcc -Wall -O2 -march=native + ++DESTDIR= ++ + objects = image.o sound.o wxapt.o + + $(PROJECT) : $(objects) +@@ -14,13 +16,10 @@ $(PROJECT) : $(objects) + $(objects) : $(PROJECT).h + + install : $(PROJECT) +- install -m 755 --strip $(PROJECT) $(BINDIR) +- install -m 644 doc/$(PROJECT).html $(DOCDIR) +- ++ install -D -m 755 $(PROJECT) $(DESTDIR)$(BINDIR)/$(PROJECT) + uninstall : +- rm $(BINDIR)/$(PROJECT) +- rm $(DOCDIR)/$(PROJECT).html +- ++ rm $(DESTDIR)$(BINDIR)/$(PROJECT) ++ rm $(DESTDIR)$(DOCDIR)/$(PROJECT).html + clean : + rm -f *.o *~ + diff --git a/wxapt.spec b/wxapt.spec new file mode 100644 index 0000000..1510db4 --- /dev/null +++ b/wxapt.spec @@ -0,0 +1,61 @@ +Name: wxapt +Version: 1.3 +Release: 3%{?dist} +Summary: Console application for decoding and saving weather images + +Group: Applications/Communications +License: GPLv2+ +URL: http://5b4az.chronos.org.uk/pages/apt.html +Source0: http://5b4az.chronos.org.uk/pkg/apt/wxapt/%{name}-%{version}.tar.gz +Patch0: wxapt.makefile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ncurses-devel +#Requires: +#ExcludeArch: PPC +#ExcludeArch: PPC64 + +%description +wxapt is a console application for decoding and saving weather images +transmitted in the APT format of NOAA and METEOR satellites. + +%prep +%setup -qn %{name} +%patch0 -p1 -b makefile.patch +#fix CFLAG from upstream +sed -i -e 's/-march=native//g' Makefile + +%build +make CFLAGS="%{optflags}" %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +#skip make install and do manual install, it's just one file +install -D -m 0755 wxapt $RPM_BUILD_ROOT%{_bindir}/%{name} +#skip .desktop file as this is a command line application + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS README +%{_bindir}/* + + +%changelog +* Wed Jan 14 2009 Randall J. Berry 'Dp67' 1.3-3 +- Makefile patch change dir from /usr/local to /usr +- Build for ppc and ppc64 previously failed + +* Wed Jan 14 2009 Randall J. Berry 'Dp67' 1.3-2 +- mock build F9/10/devel +- rpmlint 3 packages and 1 specfiles checked; 0 errors, 0 warnings. +- Submit for review + +* Sun Sep 21 2008 Randall J. Berry 'Dp67' 1.3-1 +- Build test for f9 + +* Sun Mar 02 2008 Sindre Pedersen Bjordal - 1.3-1 +- Initial build