Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69a2417a4d | ||
|
|
e742d166a6 | ||
|
|
b08e8a7277 | ||
|
|
bfd0ea18ab |
7 changed files with 127 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
cdargs-1.35.tar.gz
|
||||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: cdargs
|
|
||||||
# $Id$
|
|
||||||
NAME := cdargs
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
2
cdargs-1.35_emacs-init.el
Normal file
2
cdargs-1.35_emacs-init.el
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
;; This defines the function cdargs and an alias cv
|
||||||
|
(require 'cdargs)
|
||||||
18
cdargs-1.35_shebangs.patch
Normal file
18
cdargs-1.35_shebangs.patch
Normal file
|
|
@ -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 <dan@mojavelinux.com>
|
||||||
|
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
|
||||||
105
cdargs.spec
Normal file
105
cdargs.spec
Normal file
|
|
@ -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 <xjakub@fi.muni.cz> - 1.35-2
|
||||||
|
- Fixed non-capital starting letter in the summary of emacs-cdargs subpackage.
|
||||||
|
|
||||||
|
* Sat Mar 08 2008 Milos Jakubicek <xjakub@fi.muni.cz> - 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
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
50be618d67f0b9f2439526193c69c567 cdargs-1.35.tar.gz
|
||||||
Loading…
Add table
Add a link
Reference in a new issue