Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8d5caadf7 | ||
|
|
d98b8cfffd | ||
|
|
9400115289 | ||
|
|
65fdc2885e |
6 changed files with 98 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
wxapt-1.3.tar.gz
|
||||||
21
Makefile
21
Makefile
|
|
@ -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)
|
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
04bc342743af558cd7f95c62ce4a84bc wxapt-1.3.tar.gz
|
||||||
35
wxapt.makefile.patch
Normal file
35
wxapt.makefile.patch
Normal file
|
|
@ -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 *~
|
||||||
|
|
||||||
61
wxapt.spec
Normal file
61
wxapt.spec
Normal file
|
|
@ -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' <dp67@fedoraproject.org> 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' <dp67@fedoraproject.org> 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' <dp67@fedoraproject.org> 1.3-1
|
||||||
|
- Build test for f9
|
||||||
|
|
||||||
|
* Sun Mar 02 2008 Sindre Pedersen Bjordal <sindrepb@fedoraproject.org> - 1.3-1
|
||||||
|
- Initial build
|
||||||
Loading…
Add table
Add a link
Reference in a new issue