diff --git a/.gitignore b/.gitignore index e69de29..dd006da 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +/unlambda-0.1.tar.gz +/unlambda-0.1.2.tar.gz +/unlambda-0.1.3.tar.gz +/unlambda-0.1.4.1.tar.gz +/unlambda-0.1.4.2.tar.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..140ae5f --- /dev/null +++ b/changelog @@ -0,0 +1,112 @@ +* Thu Feb 16 2023 Jens Petersen - 0.1.4.2-24 +- refresh to cabal-rpm-2.1.0 including SPDX migration + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.4.2-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 17 2022 Jens Petersen - 0.1.4.2-22 +- rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 0.1.4.2-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Jan 08 2022 Miro HronĨok - 0.1.4.2-20 +- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 + +* Fri Aug 06 2021 Jens Petersen - 0.1.4.2-19 +- rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.4.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.4.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.4.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 Jens Petersen - 0.1.4.2-15 +- refresh to cabal-rpm-2.0.6 + +* Fri Jan 31 2020 Fedora Release Engineering - 0.1.4.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Aug 02 2019 Jens Petersen - 0.1.4.2-13 +- add doc and prof subpackages (cabal-rpm-1.0.0) + +* Sat Jul 27 2019 Fedora Release Engineering - 0.1.4.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 17 2019 Jens Petersen - 0.1.4.2-11 +- refresh to cabal-rpm-0.13 + +* Sun Feb 03 2019 Fedora Release Engineering - 0.1.4.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 28 2018 Jens Petersen - 0.1.4.2-9 +- rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.1.4.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.1.4.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 26 2018 Jens Petersen - 0.1.4.2-6 +- rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.1.4.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.1.4.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 24 2017 Jens Petersen - 0.1.4.2-3 +- refresh to cabal-rpm-0.11.1 + +* Sat Feb 11 2017 Fedora Release Engineering - 0.1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Jun 26 2016 Jens Petersen - 0.1.4.2-1 +- update to 0.1.4.2 + +* Fri Feb 05 2016 Fedora Release Engineering - 0.1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Sep 17 2015 Jens Petersen - 0.1.4.1-1 +- update to 0.1.4.1 + +* Fri Jun 19 2015 Fedora Release Engineering - 0.1.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 0.1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jun 11 2013 Jens Petersen - 0.1.3-3 +- update to new simplified Haskell Packaging Guidelines + +* Fri Feb 15 2013 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Dec 7 2012 Shakthi Kannan - 0.1.3-1 +- spec file generated by cabal-rpm-0.6.5 + +* Fri Oct 26 2012 Shakthi Kannan - 0.1.2-1 +- Updated to new upstream release 0.1.2 + +* Sun Jul 22 2012 Fedora Release Engineering - 0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 19 2012 Shakthi Kannan - 0.1-2 +- Added patch to fix FSF address. + +* Fri Jun 08 2012 Shakthi Kannan - 0.1-1 +- Added iconv to convert Unlambda.hs to utf-8. +- Added BRs. +- Spec file template generated by cabal2spec-0.25.5 diff --git a/sources b/sources index e69de29..540d149 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9e7db868d24d7e192dd9d3f21ca9ee41 unlambda-0.1.4.2.tar.gz diff --git a/unlambda-0.1.2-FSF-license-fix.patch b/unlambda-0.1.2-FSF-license-fix.patch new file mode 100644 index 0000000..23a37ec --- /dev/null +++ b/unlambda-0.1.2-FSF-license-fix.patch @@ -0,0 +1,33 @@ +diff -up unlambda-0.1.2/Language/Unlambda.hs.fix unlambda-0.1.2/Language/Unlambda.hs +--- unlambda-0.1.2/Language/Unlambda.hs.fix 2012-10-26 16:20:40.397173788 +0530 ++++ unlambda-0.1.2/Language/Unlambda.hs 2012-10-26 16:23:15.926170223 +0530 +@@ -19,7 +19,7 @@ GNU General Public License for more deta + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software +-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + -} + + module Language.Unlambda where +diff -up unlambda-0.1.2/LICENSE.fix unlambda-0.1.2/LICENSE +--- unlambda-0.1.2/LICENSE.fix 2012-10-26 16:20:35.517174668 +0530 ++++ unlambda-0.1.2/LICENSE 2012-10-26 16:22:44.604170767 +0530 +@@ -2,7 +2,7 @@ + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. +- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +@@ -305,7 +305,7 @@ the "copyright" line and a pointer to wh + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software +- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + + Also add information on how to contact you by electronic and paper mail. diff --git a/unlambda.spec b/unlambda.spec new file mode 100644 index 0000000..589d695 --- /dev/null +++ b/unlambda.spec @@ -0,0 +1,129 @@ +# generated by cabal-rpm-2.3.2 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name unlambda +%global pkgver %{pkg_name}-%{version} +%{?haskell_setup} + +Name: %{pkg_name} +Version: 0.1.4.2 +Release: %autorelease +Summary: Unlambda interpreter + +License: GPL-2.0-or-later +URL: https://hackage.haskell.org/package/unlambda +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +# End cabal-rpm sources +Patch0: unlambda-0.1.2-FSF-license-fix.patch + +# Begin cabal-rpm deps: +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-array-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-unix-devel +%if %{with ghc_prof} +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-unix-prof +%endif +# End cabal-rpm deps + +%description +This is an interpreter of the Unlambda language, written in the pure, lazy, +functional language Haskell. + + +%package -n ghc-%{name} +Summary: Haskell %{name} library + +%description -n ghc-%{name} +This package provides the Haskell %{name} shared library. + + +%package -n ghc-%{name}-devel +Summary: Haskell %{name} library development files +Provides: ghc-%{name}-static = %{version}-%{release} +Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: ghc-%{name}%{?_isa} = %{version}-%{release} + +%description -n ghc-%{name}-devel +This package provides the Haskell %{name} library development files. + + +%if %{with haddock} +%package -n ghc-%{name}-doc +Summary: Haskell %{name} library documentation +BuildArch: noarch +Requires: ghc-filesystem + +%description -n ghc-%{name}-doc +This package provides the Haskell %{name} library documentation. +%endif + + +%if %{with ghc_prof} +%package -n ghc-%{name}-prof +Summary: Haskell %{name} profiling library +Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (ghc-%{name}-devel and ghc-prof) + +%description -n ghc-%{name}-prof +This package provides the Haskell %{name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%setup -q +# End cabal-rpm setup +%patch -P0 -p1 +iconv -f iso8859-1 -t utf-8 Language/Unlambda.hs > Language/Unlambda.conv && mv -f Language/Unlambda.conv Language/Unlambda.hs + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + + +%files +# Begin cabal-rpm files: +%license LICENSE +%{_bindir}/%{name} +# End cabal-rpm files + + +%files -n ghc-%{name} -f ghc-%{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files + + +%if %{with haddock} +%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files +%endif + + +%changelog +%autochangelog