rpms/darcs/devel darcs-2.4-issue458.sh-attr.patch, NONE, 1.1 .cvsignore, 1.15, 1.16 darcs.spec, 1.51, 1.52 sources, 1.15, 1.16

Jens Petersen petersen at fedoraproject.org
Tue Mar 2 10:50:03 UTC 2010


Author: petersen

Update of /cvs/extras/rpms/darcs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31758

Modified Files:
	.cvsignore darcs.spec sources 
Added Files:
	darcs-2.4-issue458.sh-attr.patch 
Log Message:
- new major upstream version 2.4
- darcs is now officially a cabal binlib package
- package with ghc-rpm-macros
- server (subpackage) is gone
- add darcs-2.4-issue458.sh-attr.patch to workaround selinux output
- run check tests again
- doc and completions file tweaks



darcs-2.4-issue458.sh-attr.patch:
 issue458.sh |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- NEW FILE darcs-2.4-issue458.sh-attr.patch ---
diff -u darcs-2.4/tests/issue458.sh\~ darcs-2.4/tests/issue458.sh
--- darcs-2.4/tests/issue458.sh~	2010-02-27 04:10:08.000000000 +1000
+++ darcs-2.4/tests/issue458.sh	2010-03-01 14:52:54.000000000 +1000
@@ -20,9 +20,7 @@
 darcs record --repodir repo1 -lam x x
 umask 077                       # DENY ALL access to group, all
 darcs get --set-scripts-executable repo1 repo2
-ls -l repo2/x | cut -f 1 -d\  > mode
-echo -rwx------ > desired-mode
-diff -u desired-mode mode
+ls -l repo2/x | cut -f 1 -d\  | grep -- -rwx------
 
 cd ..
 rm -rf temp


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/darcs/devel/.cvsignore,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- .cvsignore	26 Feb 2009 02:43:49 -0000	1.15
+++ .cvsignore	2 Mar 2010 10:50:03 -0000	1.16
@@ -1 +1 @@
-darcs-2.2.1.tar.gz
+darcs-2.4.tar.gz


Index: darcs.spec
===================================================================
RCS file: /cvs/extras/rpms/darcs/devel/darcs.spec,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -p -r1.51 -r1.52
--- darcs.spec	12 Sep 2009 16:09:12 -0000	1.51
+++ darcs.spec	2 Mar 2010 10:50:03 -0000	1.52
@@ -1,94 +1,76 @@
-Name:           darcs
-Version:        2.2.1
-Release:        5%{?dist}
+%global pkg_name darcs
+
+%global common_summary Haskell %{pkg_name} library
+
+%global common_description Darcs is a revision control system, along the lines of CVS\
+or arch. That means that it keeps track of various revisions\
+and branches of your project, allows for changes to\
+propagate from one branch to another. Darcs is intended to\
+be an ``advanced'' revision control system. Darcs has two\
+particularly distinctive features which differ from other\
+revision control systems: 1) each copy of the source is a\
+fully functional branch, and 2) underlying darcs is a\
+consistent and powerful theory of patches.
+
+# Haskell library dependencies:
+%global ghc_pkg_deps ghc-HTTP-devel, ghc-haskeline-devel, ghc-zlib-devel, ghc-hashed-storage-devel, ghc-html-devel, ghc-regex-compat-devel
+
+%bcond_without shared
+
+# debuginfo is not useful for ghc
+%global debug_package %{nil}
+
+Name:           %{pkg_name}
+Version:        2.4
+Release:        1%{?dist}
 Summary:        David's advanced revision control system
 
 Group:          Development/Tools
 License:        GPLv2+
 URL:            http://www.darcs.net/
-Source0:        http://www.darcs.net/%{name}-%{version}.tar.gz
+Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # fedora ghc archs:
 ExclusiveArch:	%{ix86} x86_64 ppc alpha
-BuildRequires:  ghc
-BuildRequires:  autoconf, sendmail, curl-devel, ncurses-devel, zlib-devel
+BuildRequires:  ghc, ghc-rpm-macros >= 0.5.1
+BuildRequires:  ghc-doc
+BuildRequires:  ghc-prof
+%{?ghc_pkg_deps:BuildRequires:  %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
 # for make check
 BuildRequires:  which
-# for building the manual
-BuildRequires: latex2html
+Patch1:         darcs-2.4-issue458.sh-attr.patch
 
 %description
-Darcs is a revision control system, along the lines of CVS
-or arch. That means that it keeps track of various revisions
-and branches of your project, allows for changes to
-propagate from one branch to another. Darcs is intended to
-be an ``advanced'' revision control system. Darcs has two
-particularly distinctive features which differ from other
-revision control systems: 1) each copy of the source is a
-fully functional branch, and 2) underlying darcs is a
-consistent and powerful theory of patches.
-
-%package doc
-Summary: Documentation for David's advanced revision control system
-Group: Documentation
-
-%description doc
-Darcs is a revision control system, along the lines of CVS
-or arch. That means that it keeps track of various revisions
-and branches of your project, allows for changes to
-propagate from one branch to another. Darcs is intended to
-be an ``advanced'' revision control system. Darcs has two
-particularly distinctive features which differ from other
-revision control systems: 1) each copy of the source is a
-fully functional branch, and 2) underlying darcs is a
-consistent and powerful theory of patches.
-
-This package contains the darcs manual.
+%{common_description}
 
 
-%package server
-Summary: David's advanced revision control system Server
-Group: Development/Tools
-Requires: webserver, darcs, libxslt
-
-%description server
-Darcs is a revision control system, along the lines of CVS
-or arch. That means that it keeps track of various revisions
-and branches of your project, allows for changes to
-propagate from one branch to another. Darcs is intended to
-be an ``advanced'' revision control system. Darcs has two
-particularly distinctive features which differ from other
-revision control systems: 1) each copy of the source is a
-fully functional branch, and 2) underlying darcs is a
-consistent and powerful theory of patches.
-
-This package contains the darcs cgi server program.
+%{?ghc_binlib_package}
 
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}
+%patch1 -p1 -b .orig
 
 
 %build
-#%%{__autoconf}
-%configure --libexecdir=%{_localstatedir}/www
-make all
+%cabal_configure -p
+%cabal build
+%cabal haddock
 
 
 %check
-make test
+%cabal test
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-# convert text files to utf-8
-for textfile in tools/zsh_completion_new AUTHORS
-do
-    mv -v $textfile $textfile.old
-    iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
-    rm -fv $textfile.old
-done 
-make DESTDIR=$RPM_BUILD_ROOT install installserver install-html
+%cabal_install
+%cabal_pkg_conf
+
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
+cp -p contrib/darcs_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/darcs
+
+%ghc_gen_filelists
 
 
 %clean
@@ -97,27 +79,23 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc AUTHORS COPYING tools/zsh_completion_*
+%doc COPYING NEWS
 %dir %{_sysconfdir}/bash_completion.d
 %config(noreplace) %{_sysconfdir}/bash_completion.d/darcs
 %{_bindir}/darcs
 %{_mandir}/man1/*
 
 
-%files doc
-%defattr(-,root,root,-)
-%{_docdir}/darcs
-
-
-%files server
-%defattr(-,root,root,-)
-%doc COPYING AUTHORS
-%{_localstatedir}/www/cgi-bin
-%config(noreplace) %{_sysconfdir}/darcs
-%{_datadir}/darcs
-
-
 %changelog
+* Mon Mar  1 2010 Jens Petersen <petersen at redhat.com> - 2.4-1
+- new major upstream version 2.4
+- darcs is now officially a cabal binlib package
+- package with ghc-rpm-macros
+- server (subpackage) is gone
+- add darcs-2.4-issue458.sh-attr.patch to workaround selinux output
+- run check tests again
+- doc and completions file list updates
+
 * Sun Sep 13 2009 Jens Petersen <petersen at redhat.com> - 2.2.1-5
 - rebuild against ghc-6.10.4 which should fix --help hangs
 - improve doc summary (#522899)


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/darcs/devel/sources,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- sources	26 Feb 2009 02:43:49 -0000	1.15
+++ sources	2 Mar 2010 10:50:03 -0000	1.16
@@ -1 +1 @@
-b9255b501b8e71762f6a0c840594a546  darcs-2.2.1.tar.gz
+169a6d245a33da97b2daa0eda60b28e5  darcs-2.4.tar.gz



More information about the scm-commits mailing list