Compare commits
14 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a3223f83e | ||
|
|
9edb6db855 | ||
|
|
d6e4369e19 | ||
|
|
5741b768cd | ||
|
|
e2ebf82670 | ||
|
|
9e109577e4 | ||
|
|
53c195cd43 | ||
|
|
2d06955180 | ||
|
|
420423eaed | ||
|
|
6da4d3d98c | ||
|
|
be9955bc7c | ||
|
|
cb46648050 | ||
|
|
2d9eb13add | ||
|
|
3f2e8d30ee |
2 changed files with 83 additions and 5 deletions
39
uread-c99.patch
Normal file
39
uread-c99.patch
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
Avoid implicit int, a language feature not in C99. Future compilers
|
||||
are likely to reject programs with implicit ints.
|
||||
|
||||
diff --git a/uread.c b/uread.c
|
||||
index 111ac78c4fe38699..46611ebc5e729448 100644
|
||||
--- a/uread.c
|
||||
+++ b/uread.c
|
||||
@@ -24,6 +24,7 @@ typedef union {
|
||||
int i;
|
||||
} swap;
|
||||
|
||||
+int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int i, c, alph, ls, le;
|
||||
diff --git a/ustrip.c b/ustrip.c
|
||||
index 35ca6764f4aaa49f..3dfd71213f01b7f2 100644
|
||||
--- a/ustrip.c
|
||||
+++ b/ustrip.c
|
||||
@@ -27,6 +27,7 @@ typedef union {
|
||||
} swap;
|
||||
|
||||
|
||||
+int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int i, c, ls, le;
|
||||
diff --git a/uswap.c b/uswap.c
|
||||
index c171237acb2a7a33..f89af45c38ef46c9 100644
|
||||
--- a/uswap.c
|
||||
+++ b/uswap.c
|
||||
@@ -22,6 +22,7 @@ typedef union {
|
||||
int i[4];
|
||||
} swap;
|
||||
|
||||
+int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int i, j, k = 0, ls, le, s, zog;
|
||||
49
uread.spec
49
uread.spec
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
Name: uread
|
||||
Version: 0
|
||||
Release: 0.24.%{stamp}%{?dist}
|
||||
Release: 0.37.%{stamp}%{?dist}
|
||||
Summary: Utilities for unformatted fortran files
|
||||
|
||||
License: GPL+
|
||||
License: GPL-1.0-or-later
|
||||
URL: http://www.engineers.auckland.ac.nz/~snor007/software.html#uread
|
||||
Source0: uread-%{stamp}.tar.gz
|
||||
# unversioned upstream source, downloaded with wget -N
|
||||
|
|
@ -16,6 +16,7 @@ Source0: uread-%{stamp}.tar.gz
|
|||
# his work under the GPL
|
||||
Source1: uread-licence.email
|
||||
#Patch0: uread-include_stdlib.diff
|
||||
Patch1: uread-c99.patch
|
||||
|
||||
#BuildRequires:
|
||||
#Requires:
|
||||
|
|
@ -29,13 +30,12 @@ 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
|
||||
%autosetup -p1 -n uread
|
||||
|
||||
cp -p %{SOURCE1} .
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CFLAGS="$RPM_OPT_FLAGS -std=gnu17"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
|
|
@ -56,6 +56,45 @@ install -m0755 uread ustrip uswap $RPM_BUILD_ROOT%{_bindir}/
|
|||
%{_mandir}/man1/u*.1*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.37.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.36.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.35.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.34.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.33.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.32.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.31.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sun Mar 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 0-0.30.20081006
|
||||
- migrated to SPDX license
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.29.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Dec 2 2022 Florian Weimer <fweimer@redhat.com> - 0-0.28.20081006
|
||||
- Port to C99 (#2150291)
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.27.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.26.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.25.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.24.20081006
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue