diff --git a/uread-c99.patch b/uread-c99.patch deleted file mode 100644 index 9481bf5..0000000 --- a/uread-c99.patch +++ /dev/null @@ -1,39 +0,0 @@ -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; diff --git a/uread.spec b/uread.spec index 990b6da..d2253ae 100644 --- a/uread.spec +++ b/uread.spec @@ -2,10 +2,11 @@ Name: uread Version: 0 -Release: 0.37.%{stamp}%{?dist} +Release: 0.14.%{stamp}%{?dist} Summary: Utilities for unformatted fortran files -License: GPL-1.0-or-later +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 @@ -16,26 +17,25 @@ Source0: uread-%{stamp}.tar.gz # his work under the GPL Source1: uread-licence.email #Patch0: uread-include_stdlib.diff -Patch1: uread-c99.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildRequires: #Requires: -BuildRequires: make -BuildRequires: gcc %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 -%autosetup -p1 -n uread +%setup -q -n uread +#%patch0 -p1 cp -p %{SOURCE1} . %build -export CFLAGS="$RPM_OPT_FLAGS -std=gnu17" +export CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} @@ -47,8 +47,12 @@ install -p -m644 *.1 $RPM_BUILD_ROOT%{_mandir}/man1/ install -m0755 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 @@ -56,75 +60,6 @@ install -m0755 uread ustrip uswap $RPM_BUILD_ROOT%{_bindir}/ %{_mandir}/man1/u*.1* %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 0-0.37.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Sat Jan 17 2026 Fedora Release Engineering - 0-0.36.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Fri Jul 25 2025 Fedora Release Engineering - 0-0.35.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sun Jan 19 2025 Fedora Release Engineering - 0-0.34.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Sat Jul 20 2024 Fedora Release Engineering - 0-0.33.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Jan 27 2024 Fedora Release Engineering - 0-0.32.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 0-0.31.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Sun Mar 05 2023 Gwyn Ciesla - 0-0.30.20081006 -- migrated to SPDX license - -* Sat Jan 21 2023 Fedora Release Engineering - 0-0.29.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Dec 2 2022 Florian Weimer - 0-0.28.20081006 -- Port to C99 (#2150291) - -* Sat Jul 23 2022 Fedora Release Engineering - 0-0.27.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Sat Jan 22 2022 Fedora Release Engineering - 0-0.26.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 0-0.25.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jan 27 2021 Fedora Release Engineering - 0-0.24.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 0-0.23.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Jan 31 2020 Fedora Release Engineering - 0-0.22.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Sat Jul 27 2019 Fedora Release Engineering - 0-0.21.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sun Feb 03 2019 Fedora Release Engineering - 0-0.20.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Jul 14 2018 Fedora Release Engineering - 0-0.19.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Feb 09 2018 Fedora Release Engineering - 0-0.18.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Aug 03 2017 Fedora Release Engineering - 0-0.17.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 0-0.16.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0-0.15.20081006 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - * Fri Feb 05 2016 Fedora Release Engineering - 0-0.14.20081006 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild