2012-11-01 09:18:56 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
2012-09-21 01:35:17 +00:00
|
|
|
|
2014-05-17 09:23:30 +00:00
|
|
|
# no useful debuginfo for Haskell packages without C sources
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
2012-09-21 01:35:17 +00:00
|
|
|
Name: cabal-rpm
|
2014-05-17 09:23:30 +00:00
|
|
|
Version: 0.8.11
|
2013-09-28 09:15:55 +00:00
|
|
|
Release: 1%{?dist}
|
2014-03-03 09:20:52 +00:00
|
|
|
Summary: RPM packaging tool for Haskell Cabal-based packages
|
2012-09-21 01:35:17 +00:00
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
URL: http://hackage.haskell.org/package/%{name}
|
2014-05-17 09:23:30 +00:00
|
|
|
Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2013-01-22 01:14:16 +00:00
|
|
|
Source1: cabal-rpm.1
|
2014-03-03 09:20:52 +00:00
|
|
|
Source2: cblrpm-diff
|
|
|
|
|
2012-09-21 01:35:17 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
BuildRequires: ghc-old-locale-devel
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
BuildRequires: ghc-time-devel
|
|
|
|
BuildRequires: ghc-unix-devel
|
|
|
|
# End cabal-rpm deps
|
2012-09-24 10:13:47 +00:00
|
|
|
Obsoletes: cabal2spec < 0.26
|
2013-09-28 09:15:55 +00:00
|
|
|
Provides: cblrpm = %{version}-%{release}
|
2013-04-03 03:22:23 +00:00
|
|
|
Requires: cabal-install
|
2013-07-02 03:20:54 +00:00
|
|
|
Requires: rpm-build
|
2013-09-28 09:15:55 +00:00
|
|
|
# for repoquery
|
|
|
|
Requires: yum-utils
|
2012-09-21 01:35:17 +00:00
|
|
|
|
|
|
|
%description
|
2014-03-03 09:20:52 +00:00
|
|
|
Cabal-rpm is a tool for RPM packaging of Haskell Cabal-based packages.
|
|
|
|
It interacts with yum to install build dependencies and can also act as
|
|
|
|
a cabal-install wrapper installing dependencies packaged in Fedora before
|
|
|
|
running "cabal install".
|
2012-09-21 01:35:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_bin_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_bin_install
|
|
|
|
|
2014-03-03 09:20:52 +00:00
|
|
|
install -p %SOURCE2 %{buildroot}%{_bindir}
|
2013-01-22 01:14:16 +00:00
|
|
|
install -p -m 0644 -D man/cblrpm.1 %{buildroot}%{_mandir}/man1/cblrpm.1
|
|
|
|
install -p -m 0644 %SOURCE1 %{buildroot}%{_mandir}/man1/
|
2012-09-24 10:13:47 +00:00
|
|
|
|
2013-01-22 01:14:16 +00:00
|
|
|
ln -s cblrpm %{buildroot}%{_bindir}/%{name}
|
|
|
|
ln -s cblrpm-diff %{buildroot}%{_bindir}/%{name}-diff
|
2012-11-21 01:58:10 +00:00
|
|
|
|
2012-09-21 01:35:17 +00:00
|
|
|
|
|
|
|
%files
|
2013-12-31 12:47:32 +00:00
|
|
|
%doc ChangeLog
|
2012-09-21 01:35:17 +00:00
|
|
|
%doc COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/%{name}
|
2012-11-21 01:58:10 +00:00
|
|
|
%{_bindir}/cblrpm
|
2012-09-25 02:50:39 +00:00
|
|
|
%{_bindir}/%{name}-diff
|
2012-11-21 01:58:10 +00:00
|
|
|
%{_bindir}/cblrpm-diff
|
2012-09-24 10:13:47 +00:00
|
|
|
%{_mandir}/man1/cabal-rpm.1*
|
2013-01-22 01:14:16 +00:00
|
|
|
%{_mandir}/man1/cblrpm.1*
|
2012-09-21 01:35:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-05-17 09:23:30 +00:00
|
|
|
* Sat May 17 2014 Jens Petersen <petersen@redhat.com> - 0.8.11-1
|
|
|
|
- use .spec file to determine pkg-ver when no .cabal file around
|
|
|
|
- build command renamed again from "rpm" to "local" (like fedpkg)
|
|
|
|
- automatically generate bcond for %check and add testsuite BRs
|
|
|
|
when testsuites available
|
|
|
|
- disable debuginfo explicitly when no c-sources in preparation for
|
|
|
|
ghc-rpm-macros no longer disabling debuginfo
|
|
|
|
- reset filemode of downloaded hackage tarballs to 0644:
|
|
|
|
workaround for cabal-install setting 0600
|
|
|
|
- include release again in initial changelog
|
|
|
|
|
2014-03-03 09:20:52 +00:00
|
|
|
* Mon Mar 3 2014 Jens Petersen <petersen@redhat.com> - 0.8.10-1
|
|
|
|
- new diff command replaces cblrpm-diff script
|
|
|
|
- new missingdeps command
|
|
|
|
- should now work on RHEL 5 and 6: dropped use use of rpmspec
|
|
|
|
- add a temporary cblrpm-diff compat script
|
|
|
|
- refresh description
|
|
|
|
|
2014-02-10 04:51:08 +00:00
|
|
|
* Mon Feb 10 2014 Jens Petersen <petersen@redhat.com> - 0.8.9-1
|
|
|
|
- bugfix for error handling dir with spec file
|
|
|
|
- cblrpm-diff arg is now optional
|
|
|
|
|
2014-02-09 12:11:38 +00:00
|
|
|
* Sun Feb 9 2014 Jens Petersen <petersen@redhat.com> - 0.8.8-1
|
|
|
|
- use .spec file to determine package if no .cabal file (with or without arg)
|
|
|
|
- bugfix: install command now works if some dependencies not packaged
|
|
|
|
- bugfix: do not re-copy cached tarball each time
|
|
|
|
- use new shorter hackage2 URL for packages
|
|
|
|
- filter @ and \ quotes in descriptions
|
|
|
|
- capitalize start of summary and description
|
|
|
|
- new prep command (like "rpmbuild -bp" or "fedpkg prep")
|
|
|
|
- new depends and requires commands list package depends or buildrequires
|
|
|
|
- new builddep command (like yum-buildep, but allows missing packages)
|
|
|
|
|
2013-12-31 12:47:32 +00:00
|
|
|
* Tue Dec 31 2013 Jens Petersen <petersen@redhat.com> - 0.8.7-1
|
|
|
|
- new "install" command wrapping "cabal install"
|
|
|
|
- "build" command renamed to "rpm"
|
|
|
|
- sort devel Requires
|
|
|
|
- cblrpm-diff: allow package arg
|
|
|
|
- support copying tarball fetched from another remote-repo (codeblock)
|
|
|
|
- support AGPL license in Cabal-1.18
|
|
|
|
- update package description
|
|
|
|
|
2013-10-08 09:46:32 +00:00
|
|
|
* Tue Oct 8 2013 Jens Petersen <petersen@redhat.com> - 0.8.6-1
|
|
|
|
- check for _darcs or .git dir in package topdir not pwd
|
|
|
|
|
2013-09-29 07:08:24 +00:00
|
|
|
* Sun Sep 29 2013 Jens Petersen <petersen@redhat.com> - 0.8.5-1
|
|
|
|
- fix repoquery when a package update exists for C lib
|
|
|
|
- make cblrpm-diff quieter
|
|
|
|
|
2013-09-28 09:15:55 +00:00
|
|
|
* Sat Sep 28 2013 Jens Petersen <petersen@redhat.com> - 0.8.4-1
|
|
|
|
- use repoquery to determine extra C library dependencies
|
|
|
|
- quote "pkgconfig(foo)" for rpm query and yum install
|
|
|
|
- show sudo command before sudo password prompt appears
|
|
|
|
- exclude hsc2hs from build tool deps
|
|
|
|
- devel now provides ghc-<pkg>-static
|
|
|
|
- drop release from initial changelog entry for packager to add an entry
|
|
|
|
- do not try to fetch tarball for a darcs or git source dir
|
|
|
|
|
2013-08-03 04:14:46 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-12 08:20:03 +00:00
|
|
|
* Fri Jul 12 2013 Jens Petersen <petersen@redhat.com> - 0.8.3-1
|
|
|
|
- only try to install missing dependencies
|
|
|
|
- word-wrap generic descriptions
|
|
|
|
- now handles ghc_fix_dynamic_rpath for executables depending on own lib
|
|
|
|
- map ffi to libffi
|
|
|
|
- source module rearrangements
|
|
|
|
|
2013-07-02 03:20:54 +00:00
|
|
|
* Tue Jul 2 2013 Jens Petersen <petersen@redhat.com> - 0.8.2-1
|
|
|
|
- handle pkg-ver arg, and check cabal list is non-empty
|
|
|
|
- sort all generated deps
|
|
|
|
- use yum-builddep again to install deps
|
|
|
|
- copy tarball into cwd for rpmbuild
|
|
|
|
- wrap after end of sentence near end of line
|
|
|
|
- use _isa in requires ghc-<pkg>
|
|
|
|
- require rpm-build
|
|
|
|
|
2013-06-21 00:18:10 +00:00
|
|
|
* Fri Jun 21 2013 Jens Petersen <petersen@redhat.com> - 0.8.1-2
|
|
|
|
- rebuild
|
|
|
|
|
2013-06-14 08:00:03 +00:00
|
|
|
* Fri Jun 14 2013 Jens Petersen <petersen@redhat.com> - 0.8.1-1
|
|
|
|
- word wrapping of descriptions
|
|
|
|
- use generic description for shared subpackage
|
|
|
|
- simplify logic for summary and description processing
|
|
|
|
|
2013-05-31 13:50:39 +00:00
|
|
|
* Fri May 31 2013 Jens Petersen <petersen@redhat.com> - 0.8.0-1
|
|
|
|
- use simplified Fedora Haskell Packaging macros approved by
|
|
|
|
Fedora Packaging Committee (https://fedorahosted.org/fpc/ticket/194)
|
|
|
|
|
2013-04-03 03:22:23 +00:00
|
|
|
* Wed Apr 3 2013 Jens Petersen <petersen@redhat.com> - 0.7.1-2
|
|
|
|
- better require cabal-install
|
|
|
|
|
2013-03-22 06:37:36 +00:00
|
|
|
* Fri Mar 22 2013 Jens Petersen <petersen@redhat.com> - 0.7.1-1
|
|
|
|
- add final full-stop to description if missing
|
|
|
|
- add ver-rel to initial changelog entry
|
|
|
|
- output warning when .spec already exists
|
|
|
|
- fix handling of package names that end in a digit
|
|
|
|
- output when trying a path
|
|
|
|
- map curl C dep to libcurl
|
|
|
|
- fix use of cblrpm-diff force lib option
|
|
|
|
- provide cblrpm
|
|
|
|
|
2013-02-13 18:11:30 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-22 01:14:16 +00:00
|
|
|
* Tue Jan 22 2013 Jens Petersen <petersen@redhat.com> - 0.7.0-1
|
|
|
|
- cabal-rpm and cabal-rpm-diff are now symlinks to cblrpm and cblrpm-diff
|
|
|
|
- now uses command args, initially spec, srpm, and build
|
|
|
|
- tries to sudo yum install dependencies
|
|
|
|
- https://github.com/juhp/cabal-rpm/blob/master/NEWS
|
|
|
|
|
2012-11-21 01:58:10 +00:00
|
|
|
* Wed Nov 21 2012 Jens Petersen <petersen@redhat.com> - 0.6.6-1
|
|
|
|
- now generates dependencies for C libs, buildtools, and pkgconfig depends
|
|
|
|
- add short cblrpm and cblrpm-diff alias symlinks
|
|
|
|
- fix handling of LGPL-2.1 license
|
|
|
|
- change backup suffix from .cabal-rpm to .cblrpm
|
|
|
|
- do not mistake non-existent tarballs for package names
|
|
|
|
|
2012-11-01 09:18:56 +00:00
|
|
|
* Thu Nov 1 2012 Jens Petersen <petersen@redhat.com> - 0.6.5-1
|
|
|
|
- drop hscolour BuildRequires
|
|
|
|
- simplify generated BuildRequires: drop version ranges,
|
|
|
|
and exclude base, Cabal, etc
|
|
|
|
- use ExclusiveArch ghc_arches_with_ghci for template-haskell
|
|
|
|
- replace --name option with --library to force Lib package
|
|
|
|
|
2012-09-25 02:50:39 +00:00
|
|
|
* Tue Sep 25 2012 Jens Petersen <petersen@redhat.com> - 0.6.4-1
|
|
|
|
- add cabal-rpm-diff wrapper script
|
|
|
|
- fix generated manpage
|
|
|
|
|
2012-09-24 10:13:47 +00:00
|
|
|
* Mon Sep 24 2012 Jens Petersen <petersen@redhat.com> - 0.6.3-1
|
|
|
|
- can now handle tarball
|
|
|
|
- new manpage
|
2012-09-25 02:50:39 +00:00
|
|
|
- obsoletes cabal2spec
|
2012-09-24 10:13:47 +00:00
|
|
|
|
2012-09-21 01:35:17 +00:00
|
|
|
* Mon Sep 10 2012 Jens Petersen <petersen@redhat.com> - 0.6.2-1
|
|
|
|
- shorten description
|
|
|
|
|
|
|
|
* Mon Sep 10 2012 Fedora Haskell SIG <haskell@lists.fedoraproject.org>
|
|
|
|
- spec file generated by cabal-rpm-0.6.2
|