Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
1bde11963f dist-git conversion 2010-07-29 14:46:59 +00:00
Bill Nottingham
b190aa1d99 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:15:53 +00:00
pertusus
8920456d69 Add EL branches. 2007-07-03 20:13:03 +00:00
8ca10d996a Initialize branch EL-4 for uread 2007-07-02 18:35:23 +00:00
7 changed files with 133 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
uread-19981218.tar.gz

View file

@ -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)

View file

@ -0,0 +1 @@
656a18c6e731f5ff405d69279c897b1f uread-19981218.tar.gz

24
uread-include_stdlib.diff Normal file
View 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
View 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
View 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