Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bde11963f | ||
|
|
b190aa1d99 | ||
|
|
8920456d69 | ||
| 8ca10d996a |
7 changed files with 133 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
uread-19981218.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: uread
|
||||
# $Id$
|
||||
NAME := uread
|
||||
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 @@
|
|||
656a18c6e731f5ff405d69279c897b1f uread-19981218.tar.gz
|
||||
24
uread-include_stdlib.diff
Normal file
24
uread-include_stdlib.diff
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
diff -u uread-old/uread.c uread/uread.c
|
||||
--- uread-old/uread.c 2006-06-30 18:08:12.000000000 +0200
|
||||
+++ uread/uread.c 2006-06-30 18:08:31.000000000 +0200
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
static char usage[] = "Usage: %s [-x] [filename]\n";
|
||||
void pusage(char *);
|
||||
Seulement dans uread: uread.c.old
|
||||
diff -u uread-old/ustrip.c uread/ustrip.c
|
||||
--- uread-old/ustrip.c 2006-06-30 18:08:19.000000000 +0200
|
||||
+++ uread/ustrip.c 2006-06-30 18:08:37.000000000 +0200
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
static char usage[] = "Usage: %s [-x] [filename]\n";
|
||||
void pusage(char *);
|
||||
Seulement dans uread: ustrip.c.old
|
||||
40
uread-licence.email
Normal file
40
uread-licence.email
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
Date: Mon, 3 Jul 2006 10:11:40 +1200
|
||||
From: Stuart Norris <s.norris@auckland.ac.nz>
|
||||
Subject: Re: uread licence clarification
|
||||
To: Patrice Dumas <pertusus@free.fr>
|
||||
|
||||
On Sun, 2 Jul 2006, Patrice Dumas wrote:
|
||||
|
||||
GPL.
|
||||
|
||||
>>uread doesn't really need a license. The GNU license would be longer
|
||||
>>than the code, and would be a sign that the lawyers have won.
|
||||
>
|
||||
>They have won, since the Bern Convention (1979) a piece of code without
|
||||
>licence notice is considered to have one. So the copyright/licence of your
|
||||
>code is currently along:
|
||||
>
|
||||
> Copyright 1996 1998 S.E. Norris.
|
||||
> All rights reserved.
|
||||
>
|
||||
>And your code is big enough to be subject to copyright.
|
||||
>
|
||||
>>ie: please include it in the distribution. modify or redistribute if you
|
||||
>>wish.
|
||||
>
|
||||
>I am sorry, but I can't do that unless you tell me under what licence you
|
||||
>authorize me to modify and redistribute it. You just have to say in the mail
|
||||
>that you authorize me to redistribute it under a given licence (whatever you
|
||||
>prefer, GPL, LGPL, BSD or anything else, as long as it is free software) and
|
||||
>it'll be right. You can even say that you allow me to redistribute uread
|
||||
>under
|
||||
>any licence I want, but you have to say something along that. Indeed when
|
||||
>you give me the right to modify or redistribute it you don't give this right
|
||||
>to others and I need that to be able to include it in a distribution based
|
||||
>on free software like fedora.
|
||||
>
|
||||
>Sorry to bother you with these licence issues...
|
||||
>
|
||||
>--
|
||||
>Pat
|
||||
|
||||
67
uread.spec
Normal file
67
uread.spec
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
%define stamp 19981218
|
||||
|
||||
Name: uread
|
||||
Version: 0
|
||||
Release: 0.%{stamp}%{?dist}
|
||||
Summary: Utilities for unformatted fortran files
|
||||
|
||||
Group: Development/Tools
|
||||
License: GPL
|
||||
URL: http://www.engineers.auckland.ac.nz/~snor007/software.html#uread
|
||||
Source0: uread-%{stamp}.tar.gz
|
||||
# unversioned upstream source, downloaded with wget -N
|
||||
# renamed to uread-YYYYMMDD.tar.gz
|
||||
#Source0: http://www.engineers.auckland.ac.nz/~snor007/src/uread.tar.gz
|
||||
|
||||
# this is a mail exchange where the author gives the right to redistribute
|
||||
# his work under the GPL
|
||||
Source1: uread-licence.email
|
||||
Patch0: uread-include_stdlib.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
#BuildRequires:
|
||||
#Requires:
|
||||
|
||||
|
||||
%description
|
||||
These utilities enable you to have a look at a Fortran unformatted file to
|
||||
see the size of the data records, and to swap its endianess from big to
|
||||
little, or vis versa.
|
||||
|
||||
%prep
|
||||
%setup -q -n uread
|
||||
%patch0 -p1
|
||||
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d -m755 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
install -d -m755 $RPM_BUILD_ROOT%{_bindir}/
|
||||
install -m644 *.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
install uread ustrip uswap $RPM_BUILD_ROOT%{_bindir}/
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc uread-licence.email
|
||||
%{_bindir}/uread
|
||||
%{_bindir}/ustrip
|
||||
%{_bindir}/uswap
|
||||
%{_mandir}/man1/u*.1*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 26 2007 Patrice Dumas <pertusus@free.fr> 0-0.19981218
|
||||
- use 0 as version and put the timestamp in the release
|
||||
|
||||
* Wed Jun 14 2006 Patrice Dumas <pertusus@free.fr> 0.19981218-1
|
||||
- Initial packaging
|
||||
Loading…
Add table
Add a link
Reference in a new issue