diff --git a/.cvsignore b/.cvsignore index e69de29..996a158 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cdargs-1.35.tar.gz diff --git a/cdargs-1.35_emacs-init.el b/cdargs-1.35_emacs-init.el new file mode 100644 index 0000000..bd068bd --- /dev/null +++ b/cdargs-1.35_emacs-init.el @@ -0,0 +1,2 @@ +;; This defines the function cdargs and an alias cv +(require 'cdargs) diff --git a/cdargs-1.35_shebangs.patch b/cdargs-1.35_shebangs.patch new file mode 100644 index 0000000..39d5e67 --- /dev/null +++ b/cdargs-1.35_shebangs.patch @@ -0,0 +1,18 @@ +diff -Naur cdargs-1.35/contrib/cdargs-bash.sh cdargs-1.35_patched/contrib/cdargs-bash.sh +--- cdargs-1.35/contrib/cdargs-bash.sh 2006-03-03 00:28:17.000000000 +0100 ++++ cdargs-1.35_patched/contrib/cdargs-bash.sh 2008-03-08 11:02:21.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/bin/sh +- + # (C) 2002-2003 Dan Allen and Stefan Kamphausen + + # Written by Dan Allen +diff -Naur cdargs-1.35/contrib/cdargs-tcsh.csh cdargs-1.35_patched/contrib/cdargs-tcsh.csh +--- cdargs-1.35/contrib/cdargs-tcsh.csh 2005-11-06 11:58:13.000000000 +0100 ++++ cdargs-1.35_patched/contrib/cdargs-tcsh.csh 2008-03-08 11:02:29.000000000 +0100 +@@ -1,5 +1,3 @@ +-#!/bin/csh +- + # (C) 2002-2005 Stefan Kamphausen + + # (T)CShell extensions written by diff --git a/cdargs.spec b/cdargs.spec new file mode 100644 index 0000000..f1e0826 --- /dev/null +++ b/cdargs.spec @@ -0,0 +1,105 @@ +%define profiledir %{_sysconfdir}/profile.d + +Name: cdargs +Version: 1.35 +Release: 2%{?dist} +Summary: The shell cd with bookmarks and browser + +Group: Applications/File +License: GPLv2+ +URL: http://www.skamphausen.de/software/cdargs/ +Source0: http://www.skamphausen.de/software/cdargs/%{name}-%{version}.tar.gz +Source1: %{name}-%{version}_emacs-init.el +Patch0: %{name}-%{version}_shebangs.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ncurses-devel + +%description +Enables the user to quickly change working directory by navigating cd arguments +and expanding the shell built-in cd with bookmarks and browser. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries + +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains development files for %{name}. + +%package -n emacs-cdargs +Summary: Cdargs support for Emacs +Group: Applications/Editors + +Requires: %{name} = %{version}-%{release} +Requires: emacs(bin) >= 22.1-8 + +%description -n emacs-cdargs +This is an Emacs front-end to cdargs. It provides a function (cv or +cdargs) which uses the same bookmarks list as the terminal program +cdargs and lets the user quickly make a directory listed there the +current working directory. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{profiledir} +mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d + +install -p -m 644 contrib/cdargs.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/cdargs.el +install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/cdargs-init.el +install -p -m 644 contrib/cdargs-bash.sh $RPM_BUILD_ROOT%{profiledir}/cdargs.sh +install -p -m 644 contrib/cdargs-tcsh.csh $RPM_BUILD_ROOT%{profiledir}/cdargs.csh +install -D -p -m 644 src/cdargs.h $RPM_BUILD_ROOT%{_includedir}/cdargs.h + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, root, -) +%{_bindir}/cdargs +%config(noreplace) %{profiledir}/cdargs.* +%doc %{_mandir}/man1/cdargs.1* +%doc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO + +%files devel +%defattr(-, root, root, -) +%{_includedir}/cdargs.h + +%files -n emacs-cdargs +%defattr(-, root, root, -) +%{_datadir}/emacs/site-lisp/cdargs.el +%{_datadir}/emacs/site-lisp/site-start.d/cdargs-init.el + +%changelog + +* Tue Mar 25 2008 Milos Jakubicek - 1.35-2 +- Fixed non-capital starting letter in the summary of emacs-cdargs subpackage. + +* Sat Mar 08 2008 Milos Jakubicek - 1.35-1 +- Initial package based on SRPM provided by author. +- Removed Packager: and Vendor: field. +- Removed unnecessary making RPM_BUILD_ROOT directory. +- Changed license from GPL to GPLv2+. +- Extended description. +- Setup section is silent now (-p). +- Added SMP flags for building. +- Added directory mode to defattr. +- Added dist tag. +- Changed buildroot directory to default. +- Removed execute rights and shebangs (Patch0) from cdargs.sh, cdargs.csh as + they will be only sourced, not executed. +- Both files cdargs.sh and cdargs.csh marked as config(noreplace). +- Added -devel subpackage with cdargs.h +- Added emacs-cdargs subpackage with cdargs.el +- Added emacs init script as Source1 diff --git a/sources b/sources index e69de29..8cda820 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +50be618d67f0b9f2439526193c69c567 cdargs-1.35.tar.gz