Browse Source

emacsen-common:
- import emacsen-common to vine svn repository
- support ruby-1.9.3
- show-vine-default.sh is now included in archive.

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7248 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 11 years ago
parent
commit
3af07d17a6
2 changed files with 19 additions and 52 deletions
  1. 19 12
      e/emacsen-common/emacsen-common-vl.spec
  2. 0 40
      e/emacsen-common/show-vine-default.sh

+ 19 - 12
e/emacsen-common/emacsen-common-vl.spec

@@ -1,21 +1,25 @@
 %define name emacsen-common
 %define origname emacsen-common
-%define version 0.4
+%define version 0.5
 %define prereq_ge()  %(LC_ALL="C" rpm -q --queryformat 'Requires(post):%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
 %define _libdir %{_prefix}/lib
 
 Summary: Common facilities for all emacsen.
 Name: %{name}
 Version: %{version}
-Release: 6%{?_dist_release}
+Release: 1%{?_dist_release}
 License: GPL
-Vendor: %{_vendor}
 Group: Development/Languages
-Source0: http://www.ad-hoc.org/~xtakei/%{origname}/%{origname}-%{version}.tar.gz
-Source10: show-vine-default.sh
-Patch: emacsen-common-0.4-emacsclient.patch
-Packager: Kazuhisa TAKEI <takei@vinelinux.org>
-URL: http://vinelinux.org/
+# archive created from git-svn local repos.
+# git archive --format=tar --prefix=emacsen-common-0.5/ HEAD |\
+#   xz > ~/rpm/SOURCES/emacsen-common/emacsen-common-0.5.tar.xz
+Source0: %{origname}-%{version}.tar.xz
+
+Distribution: Vine Liunx
+Vendor: Project Vine
+Packager: daisuke
+
+URL: http://trac.vinelinux.org/browser/projects/emacsen-common
 BuildRoot: %{_tmppath}/%{name}-root
 BuildArch: noarch
 Requires: rpm
@@ -31,11 +35,10 @@ This package contains code that is needed by all the (x)emacs packages.
 
 %prep
 
-%setup -q -n %{origname}
-%patch -p1
-%build
+%setup -q
 
 
+%build
 
 
 %install
@@ -61,7 +64,7 @@ echo "/usr/bin/b2m
 /usr/share/icons/hicolor/scalable/apps/emacs.svg
 /usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg" > $RPM_BUILD_ROOT%{_var}/lib/emacs/alternative-filelist
 
-%__cp %{SOURCE10} $RPM_BUILD_ROOT/%{_libdir}/%{origname}/
+%__cp show-vine-default.sh $RPM_BUILD_ROOT/%{_libdir}/%{origname}/
 
 %__cp scripts/emacs-install.rb $RPM_BUILD_ROOT/%{_libdir}/%{origname}/.
 %__cp scripts/emacs-package-install.rb $RPM_BUILD_ROOT/%{_libdir}/%{origname}/.
@@ -159,6 +162,10 @@ fi
 
 
 %changelog 
+* Sat Dec 15 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5-1
+- import emacsen-common to vine svn repository
+- support ruby-1.9.3
+
 * Sun Mar 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4-6
 - fixed show-vine-default.sh
 

+ 0 - 40
e/emacsen-common/show-vine-default.sh

@@ -1,40 +0,0 @@
-#!/bin/bash
-
-if [ $# -ne 1 ]; then
-    cat<<EOF
-Usage:	$(basename $0) <version>
-EOF
-    exit 1
-fi
-
-VERSION=$1
-
-if [ $(egrep -m 1 $VERSION /var/lib/emacsen-common/installed-flavors) ]; then
-    FLAVOR=$(egrep -m 1 $VERSION /var/lib/emacsen-common/installed-flavors)
-else
-    exit 1
-fi
-
-[ -d /etc/${FLAVOR} ] || exit 1
-
-ORDER="base faces"
-ORDER="${ORDER} $(ls /etc/${FLAVOR}/site-start.d/*-init.el | \
-    sed -e "s!.*/[0-9]*\(.*\)-init\.el!\1!g")"
-
-LIST="$(find /usr/share/${FLAVOR}/site-lisp/ \
-    -regex '.*/vine-default.*\.el')"
-
-for pkg in $ORDER; do
-    ELS=$(echo "$LIST" | egrep -e "/${pkg}")
-    if [ ! -z "${ELS}" ]; then
-	for el in ${ELS}; do
-	    echo ";;; Begin ${el}"
-	    cat ${el}
-	    echo ";;; End of ${el}"
-	    echo ""
-	done
-    fi
-done
-
-exit
-