8f69d9e
%define    profiledir    %{_sysconfdir}/profile.d
Mohan Boddu 94a66c0
8f69d9e
Name:       cdargs
8f69d9e
Version:    1.35
4df7718
Release:    %autorelease
8f69d9e
Summary:    The shell cd with bookmarks and browser
8f69d9e
License:    GPLv2+
8f69d9e
URL:        http://www.skamphausen.de/cgi-bin/ska/CDargs/
8f69d9e
Source0:    http://www.skamphausen.de/downloads/cdargs/%{name}-%{version}.tar.gz
8f69d9e
Source1:    %{name}-%{version}_emacs-init.el
Mohan Boddu 94a66c0
8f69d9e
Patch0:     %{name}-%{version}_shebangs.patch
8f69d9e
Patch1:     %{name}-%{version}_format_security.patch
8f69d9e
Patch2:     %{name}-%{version}_fix_fsf_address.patch
257515c
Patch3:     %{name}-%{version}_configure_c99.patch
Mohan Boddu 94a66c0
670c6ac
BuildRequires:    gcc-c++
8f69d9e
BuildRequires:    ncurses-devel
8f69d9e
BuildRequires:    emacs
05c2927
BuildRequires:    make
670c6ac
Requires:         emacs-filesystem >= %{_emacs_version}
Mohan Boddu 94a66c0
Mohan Boddu 94a66c0
%description
Mohan Boddu 94a66c0
Enables the user to quickly change working directory by navigating cd arguments
Mohan Boddu 94a66c0
and expanding the shell built-in cd with bookmarks and browser.
Mohan Boddu 94a66c0
Mohan Boddu 94a66c0
%package devel
8f69d9e
Summary:    Development files for %{name}
670c6ac
Requires:   %{name}%{?_isa} = %{version}-%{release}
Mohan Boddu 94a66c0
Mohan Boddu 94a66c0
%description devel
Mohan Boddu 94a66c0
This package contains development files for %{name}.
Mohan Boddu 94a66c0
Mohan Boddu 94a66c0
%prep
8f69d9e
%autosetup -p1
8f69d9e
Mohan Boddu 94a66c0
%build
Mohan Boddu 94a66c0
%configure
8f69d9e
%make_build
Mohan Boddu 94a66c0
%{_emacs_bytecompile} contrib/cdargs.el
Mohan Boddu 94a66c0
Mohan Boddu 94a66c0
%install
8f69d9e
%make_install
Mohan Boddu 94a66c0
8f69d9e
mkdir -p %{buildroot}%{profiledir}
8f69d9e
mkdir -p %{buildroot}%{_emacs_sitestartdir}
8f69d9e
mkdir -p %{buildroot}%{_emacs_sitelispdir}/%{name}
Mohan Boddu 94a66c0
8f69d9e
install -p -m 644 contrib/cdargs.el* %{buildroot}%{_emacs_sitelispdir}/%{name}
8f69d9e
install -p -m 644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir}/cdargs-init.el
8f69d9e
8f69d9e
install -p -m 644 contrib/cdargs-bash.sh %{buildroot}%{profiledir}/cdargs.sh
8f69d9e
install -p -m 644 contrib/cdargs-tcsh.csh %{buildroot}%{profiledir}/cdargs.csh
8f69d9e
install -D -p -m 644 src/cdargs.h %{buildroot}%{_includedir}/cdargs.h
Mohan Boddu 94a66c0
Mohan Boddu 94a66c0
%files
8f69d9e
%doc AUTHORS ChangeLog NEWS README THANKS
8f69d9e
%license COPYING
Mohan Boddu 94a66c0
%{_bindir}/cdargs
Mohan Boddu 94a66c0
%config(noreplace) %{profiledir}/cdargs.*
Mohan Boddu 94a66c0
%doc %{_mandir}/man1/cdargs.1*
Mohan Boddu 94a66c0
%dir %{_emacs_sitelispdir}/%{name}
Mohan Boddu 94a66c0
%{_emacs_sitelispdir}/%{name}/*.el
df80819
%{_emacs_sitelispdir}/%{name}/*.elc
df80819
%{_emacs_sitestartdir}/cdargs-init.el
Mohan Boddu 94a66c0
670c6ac
%files devel
670c6ac
%{_includedir}/cdargs.h
670c6ac
Mohan Boddu 94a66c0
%changelog
4df7718
%autochangelog