Compare commits

...

34 Commits
f26 ... master

Author SHA1 Message Date
Jens Petersen ed2f748318 update to 2.0.4 2020-02-27 12:28:14 +08:00
Jens Petersen d9009656cf refresh to cabal-rpm-2.0.2 2020-02-20 10:14:49 +08:00
Fedora Release Engineering afe81abf5b - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 13:30:27 +00:00
Jens Petersen eaa47d7b25 update to 2.0.0 2020-01-20 23:34:28 +08:00
Jens Petersen 6883cfa237 replace changelog url with entries 2019-12-31 17:22:50 +08:00
Jens Petersen 3d3e710550 add changelog url 2019-12-31 17:15:56 +08:00
Jens Petersen 828be0e412 update to 1.0.3 2019-12-31 17:13:05 +08:00
Jens Petersen d1b6180e90 refresh to cabal-rpm-1.0.3 2019-12-31 17:11:47 +08:00
Jens Petersen b4e6c00173 drop https bcond 2019-12-31 17:08:32 +08:00
Jens Petersen a4742fcf0b drop cabal-rpm-0.13.3-simple-cmd_sudo.patch 2019-12-31 17:07:56 +08:00
Jens Petersen adbb68b293 update to 1.0.2 2019-12-09 23:48:42 +08:00
Jens Petersen 60829c0edd simple-cmd patch would now be for old releases 2019-11-01 18:35:44 +08:00
Jens Petersen 983cb8c348 update to 1.0.1 2019-10-01 18:39:02 +08:00
Jens Petersen 1c7c44667e generate manpage and patch build for simple-cmd-0.2 2019-09-04 18:35:48 +08:00
Jens Petersen c187e7c158 BR prof for lib and static for executable 2019-08-05 18:26:53 +08:00
Jens Petersen 1335074b1d bump release 2019-08-01 19:56:22 +05:30
Fedora Release Engineering f5dab2e207 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 19:46:43 +00:00
Jens Petersen b132d86111 0.13.3 release 2019-05-11 15:48:19 +08:00
Jens Petersen c6262c55f9 update to 0.13.2 2019-05-06 05:50:36 +00:00
Jens Petersen a4c490a4a2 update to 0.13.1 2019-03-18 10:30:42 +08:00
Jens Petersen 9674728231 update to 0.13 2019-02-20 00:53:29 +08:00
Fedora Release Engineering 0f045cb800 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 15:07:37 +00:00
Jens Petersen c04662b4b8 update with cabal-rpm-0.13 section separators 2018-12-10 00:56:52 +09:00
Jens Petersen 43b58dedb7 add TODO 2018-12-10 00:56:37 +09:00
Jens Petersen 82dcc50fd7 refresh description 2018-12-10 00:56:19 +09:00
Jens Petersen 6acfe0813e BR simple-cmd 2018-12-10 00:56:02 +09:00
Jens Petersen f5c9840845 update to 0.12.6 release 2018-10-20 23:47:05 +09:00
Jens Petersen 0bb0b7842a Requires dos2unix to convert .cabal files to unix format 2018-09-25 13:26:55 +09:00
Jens Petersen 3c84a60057 use %{name} for manpage 2018-09-25 13:24:31 +09:00
Jens Petersen c6a9757ce2 Fedora 29 is tracking lts-11 2018-07-30 13:10:27 +09:00
Jens Petersen 17f3e32c46 update to 0.12.5 2018-07-29 11:08:22 +09:00
Fedora Release Engineering 6108c00623 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 21:28:51 +00:00
Jens Petersen ad74c2fd30 requires wget 2018-06-04 23:09:46 +09:00
Jens Petersen 7613179a53 update to 0.12.4 2018-05-31 17:26:04 +09:00
3 changed files with 189 additions and 37 deletions

12
.gitignore vendored
View File

@ -37,3 +37,15 @@
/cabal-rpm-0.12.1.tar.gz
/cabal-rpm-0.12.2.tar.gz
/cabal-rpm-0.12.3.tar.gz
/cabal-rpm-0.12.4.tar.gz
/cabal-rpm-0.12.5.tar.gz
/cabal-rpm-0.12.6.tar.gz
/cabal-rpm-0.13.tar.gz
/cabal-rpm-0.13.1.tar.gz
/cabal-rpm-0.13.2.tar.gz
/cabal-rpm-0.13.3.tar.gz
/cabal-rpm-1.0.1.tar.gz
/cabal-rpm-1.0.2.tar.gz
/cabal-rpm-1.0.3.tar.gz
/cabal-rpm-2.0.0.tar.gz
/cabal-rpm-2.0.4.tar.gz

View File

@ -1,95 +1,235 @@
# generated by cabal-rpm-0.12.1
# generated by cabal-rpm-2.0.2 --stream hackage
# https://fedoraproject.org/wiki/Packaging:Haskell
%if 0%{?fedora} >= 27
%bcond_without https
%else
%bcond_with https
%endif
%bcond_without manpage
Name: cabal-rpm
Version: 0.12.3
Version: 2.0.4
Release: 1%{?dist}
Summary: RPM packaging tool for Haskell Cabal-based packages
License: GPLv3+
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
# End cabal-rpm sources
Source1: cblrpm.1
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
%if %{with https}
BuildRequires: ghc-bytestring-devel
%endif
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
%if %{with https}
BuildRequires: ghc-http-client-devel
BuildRequires: ghc-http-client-tls-devel
BuildRequires: ghc-http-conduit-devel
%else
BuildRequires: ghc-old-locale-devel
%endif
BuildRequires: ghc-process-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-Cabal-static
BuildRequires: ghc-base-static
BuildRequires: ghc-bytestring-static
BuildRequires: ghc-directory-static
BuildRequires: ghc-filepath-static
BuildRequires: ghc-http-client-static
BuildRequires: ghc-http-client-tls-static
BuildRequires: ghc-http-conduit-static
BuildRequires: ghc-optparse-applicative-static
BuildRequires: ghc-process-static
BuildRequires: ghc-simple-cabal-static
BuildRequires: ghc-simple-cmd-static
BuildRequires: ghc-simple-cmd-args-static
BuildRequires: ghc-time-static
BuildRequires: ghc-unix-static
# End cabal-rpm deps
%if %{with manpage}
BuildRequires: pandoc
%endif
Obsoletes: cabal2spec < 0.26
Provides: cblrpm = %{version}-%{release}
Requires: cabal-install
Requires: rpm-build
# for repoquery
%if 0%{?fedora} >= 22
%if 0%{?fedora} || 0%{?rhel} > 7
Requires: dnf-plugins-core
%else
Requires: yum-utils
%endif
Requires: dos2unix
# for rpmdev-bumpspec
Requires: rpmdevtools
Requires: wget
%description
Cabal-rpm is a tool for RPM packaging of Haskell Cabal-based packages.
It interacts with dnf to install build dependencies and can also act as
a cabal-install wrapper installing dependencies packaged in Fedora before
running "cabal install".
This package provides a RPM packaging tool for Haskell Cabal-based packages.
cblrpm has commands to generate a RPM spec file and srpm for a package.
It can rpmbuild packages, dnf install their dependencies, prep packages, and
install them. There are commands to list package dependencies and missing
cabal-rpm has commands to generate a RPM spec file and srpm for a package.
It can rpmbuild packages, yum/dnf install their dependencies, prep packages,
and install them. There are commands to list package dependencies and missing
dependencies. The diff command compares the current spec file with a freshly
generated one, the update command updates the spec file to latest version from
Stackage or Hackage, and the refresh command updates the spec file to the
current cabal-rpm packaging.
current cabal-rpm packaging. It also handles Hackage revisions of packages.
Standalone packages can also be made, built with cabal-install.
%prep
# Begin cabal-rpm setup:
%setup -q
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_bin_build
# End cabal-rpm build
%if %{with manpage}
pandoc -s -t man man/cabal-rpm.1.md > man/cabal-rpm.1
%endif
%install
# Begin cabal-rpm install
%ghc_bin_install
# End cabal-rpm install
install -p -m 0644 -D man/cabal-rpm.1 %{buildroot}%{_mandir}/man1/cabal-rpm.1
%if %{with manpage}
install -p -m 0644 -D man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -p -m 0644 %SOURCE1 %{buildroot}%{_mandir}/man1/
%endif
ln -s %{name} %{buildroot}%{_bindir}/cblrpm
%files
# Begin cabal-rpm files:
%license COPYING
%doc ChangeLog README.md
%doc ChangeLog README.md TODO
%{_bindir}/%{name}
# End cabal-rpm files
%{_bindir}/cblrpm
%{_mandir}/man1/cabal-rpm.1*
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/cblrpm.1*
%changelog
* Thu Feb 27 2020 Jens Petersen <petersen@redhat.com> - 2.0.4-1
- drop %_devel compat macro
- default stream is now lts-14
- spec: detect local revised .cabal file
- sort deps of subpackages
- metapkgs don't have prof or doc
- fix generation of subpackages for a new package
- update: logic reworked to reduce redundant downloads
- quote macros in commented fields
- read --subpackage from spec header
- generate BRs for subpackages
* Thu Feb 20 2020 Jens Petersen <petersen@redhat.com> - 2.0.0-3
- refresh to cabal-rpm-2.0.2
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Jan 20 2020 Jens Petersen <petersen@redhat.com> - 2.0.0-1
- update to 2.0.0:
- major refactor to handle stream/pkgid more precisely and correctly
(hence major version bump due to behavior changes)
- eg can no longer specify both stream and pkg-ver
- check for package first in default LTS, then latest LTS, and Nightly,
before Hackage
- respect and read/write --standalone and --stream in spec header consistently
(note default LTS stream is not written to header)
- fix infinite loop for 'install'
* Tue Dec 31 2019 Jens Petersen <petersen@redhat.com> - 1.0.3-1
- update to 1.0.3
- define _devel for f30 packaging compatibility
- missingdeps and builddep fixes
- --standalone: adds BRs for deps of missing deps
* Mon Dec 09 2019 Jens Petersen <petersen@redhat.com> - 1.0.2-1
- minor bugfixes
- https://hackage.haskell.org/package/cabal-rpm-1.0.2/changelog
* Tue Oct 01 2019 Jens Petersen <petersen@redhat.com> - 1.0.1-1
- doc and prof subpackages for libraries
- reworked to use optparse-applicative (simple-cmd-args)
- default to Stackage LTS 13
- F31+ uses triggers for ghc-pkg recache
- wait 10^4s (< 3 hours) between cabal update's
- refactor using simple-cabal, PackageName and LibPkgType
- handle setup-depends
- diff: autodetect subpackaging
- https://hackage.haskell.org/package/cabal-rpm-1.0.1/changelog
* Thu Aug 01 2019 Jens Petersen <petersen@redhat.com> - 0.13.3-3
- generate manpage (#1725973)
- fix build with simple-cmd 0.2
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat May 11 2019 fedora-toolbox <petersen@redhat.com> - 0.13.3-1
- repoquery for missing deps' package .conf file to avoid modular ghc conflicts
- only --assumeyes for dnf install when not tty
- use tmpdir for tmp spec files and building missing deps
- give up if more than one spec file
- fix handling unversioned update
- map cabal build-tool to cabal-install
* Mon May 06 2019 Jens Petersen <petersen@redhat.com> - 0.13.2-1
- update to 0.13.2:
- include ANNOUNCE in docs
- if dependency parallel directory exists, don't check if installed
- fix buildDepends on Cabal-2.4
- new --standalone option for private packages built with cabal-install
- print --{missing,standalone,subpackage} options on spec file header line
* Mon Mar 18 2019 Jens Petersen <petersen@redhat.com> - 0.13.1-1
- update: fix rw git dir detection
- fix tarball downloading and copying of revised .cabal file
- show output (errors) when prepping source and prep in working dir
- include BUGS and CONTRIBUTING as docs
- need chrpath for subpackaging
- move license dir to any common subpackage
* Tue Feb 19 2019 Jens Petersen <petersen@redhat.com> - 0.13-1
- improve license and doc filtering
- backup revised .cabal files
- fallback to spectool for source downloading
- drop selfdep
- common subpackage for binlib data files
- section dividers for sources, setup, build, install, and files
- only run "cabal update" if more than 10min old
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Oct 20 2018 Jens Petersen <petersen@redhat.com> - 0.12.6-1
- update: remove old revised .cabal
- convert revised .cabal file to unix format (using dos2unix)
- spec: support haskell-gi libraries
- most of SysCmd moved to simple-cmd library (new dep)
- can now download multiple source files
- use line-buffering for stdout
- always do cabal update
- support ghc_without_dynamic for static executables
* Tue Sep 25 2018 Jens Petersen <petersen@redhat.com> - 0.12.5-3
- Require dos2unix for converting .cabal files to unix text format
* Mon Jul 30 2018 Jens Petersen <petersen@redhat.com> - 0.12.5-2
- patch default tracked stream to lts-11
* Sun Jul 29 2018 Jens Petersen <petersen@redhat.com> - 0.12.5-1
- improvements to update and refresh
- improved revising of .cabal files
- use "fedpkg sources" to fetch current Fedora sources
- do not put doc* in docs
- better output for missing sub-deps
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu May 31 2018 Jens Petersen <petersen@redhat.com> - 0.12.4-2
- requires wget
* Thu May 31 2018 Jens Petersen <petersen@redhat.com> - 0.12.4-1
- now uses Hackage revisions of packages
- spec --stream STREAM replaces --hackage
* Tue May 15 2018 Jens Petersen <petersen@redhat.com> - 0.12.3-1
- build: remove erroneous tarball check
- refresh: use cblrpm for old cabal-rpm

View File

@ -1 +1 @@
SHA512 (cabal-rpm-0.12.3.tar.gz) = 82f82e6dd8bcfb1f8e155715cb3dc59e6ce40f5db43ee336847a7889220e7012bb3efdfa2d7b6ac0c897d36fdc8b9503eadee735466ee4b9dc21dd1fb9dee54d
SHA512 (cabal-rpm-2.0.4.tar.gz) = f5ee97a80bdc595d96902edc261bf90725b3e0381b404d5768f1c0b823de28a1710576c5877f90bd702523202bfa84cef2f6653746b8fff7df7b226e43dfd2ec