diff --git a/specs/cmmi/cmmi-0.5.2_conf.patch b/specs/cmmi/cmmi-0.5.2_conf.patch new file mode 100644 index 000000000..546469ac2 --- /dev/null +++ b/specs/cmmi/cmmi-0.5.2_conf.patch @@ -0,0 +1,88 @@ +diff -uNr cmmi-0.5.2.orig/dot.cmmirc.en cmmi-0.5.2/dot.cmmirc.en +--- cmmi-0.5.2.orig/dot.cmmirc.en 2007-01-18 23:34:42.000000000 +0900 ++++ cmmi-0.5.2/dot.cmmirc.en 2013-12-29 14:23:47.648037196 +0900 +@@ -36,23 +36,23 @@ + # + # This example supports both Debian system and cygwin system. + # +-if( $ENV{OSTYPE} =~ /linux/ ) { +- # Package type +- $PACKAGE_TYPE= "D"; +- +- # The directory to pool generated packages +- $PACKAGE_DIR = "/home/kiyoka/public_html/debian"; +-} +-else { +- # Package type +- $PACKAGE_TYPE= "C"; +- +- # The directory to pool generated packages +- $PACKAGE_DIR = "/home/kiyoka/park/cygwin"; +- +- # installation target directory +- $TARGET_PREFIX = "/opt/local"; +-} ++#if( $ENV{OSTYPE} =~ /linux/ ) { ++# # Package type ++# $PACKAGE_TYPE= "D"; ++# ++# # The directory to pool generated packages ++# $PACKAGE_DIR = "/home/kiyoka/public_html/debian"; ++#} ++#else { ++# # Package type ++# $PACKAGE_TYPE= "C"; ++# ++# # The directory to pool generated packages ++# $PACKAGE_DIR = "/home/kiyoka/park/cygwin"; ++# ++# # installation target directory ++# $TARGET_PREFIX = "/opt/local"; ++#} + + # + # --- Verbose mode ( for debug ) +diff -uNr cmmi-0.5.2.orig/dot.cmmirc.ja cmmi-0.5.2/dot.cmmirc.ja +--- cmmi-0.5.2.orig/dot.cmmirc.ja 2007-01-18 23:34:42.000000000 +0900 ++++ cmmi-0.5.2/dot.cmmirc.ja 2013-12-29 14:24:16.705226436 +0900 +@@ -41,23 +41,23 @@ + # 次の例では、.cmmirc を Debian system と cygwinシステムで + # 共有することができます。 + # +-if( $ENV{OSTYPE} =~ /linux/ ) { +- # Package type +- $PACKAGE_TYPE= "D"; +- +- # The directory to pool generated packages +- $PACKAGE_DIR = "/home/kiyoka/public_html/debian"; +-} +-else { +- # Package type +- $PACKAGE_TYPE= "C"; +- +- # The directory to pool generated packages +- $PACKAGE_DIR = "/home/kiyoka/park/cygwin"; +- +- # installation target directory +- $TARGET_PREFIX = "/opt/local"; +-} ++#if( $ENV{OSTYPE} =~ /linux/ ) { ++# # Package type ++# $PACKAGE_TYPE= "D"; ++# ++# # The directory to pool generated packages ++# $PACKAGE_DIR = "/home/kiyoka/public_html/debian"; ++#} ++#else { ++# # Package type ++# $PACKAGE_TYPE= "C"; ++# ++# # The directory to pool generated packages ++# $PACKAGE_DIR = "/home/kiyoka/park/cygwin"; ++# ++# # installation target directory ++# $TARGET_PREFIX = "/opt/local"; ++#} + + # + # --- バーボーズモード diff --git a/specs/cmmi/cmmi.spec b/specs/cmmi/cmmi.spec new file mode 100644 index 000000000..401678996 --- /dev/null +++ b/specs/cmmi/cmmi.spec @@ -0,0 +1,46 @@ +# Upstream: Kiyoka Nishiyama + +Summary: The program which makes convenient installation work of the software using configure script +Name: cmmi +Version: 0.5.2 +Release: 1%{?dist} +Group: Development/Tools +Source0: http://prdownloads.sourceforge.net/cmmi/cmmi-%{version}.tar.gz +Patch0: cmmi-0.5.2_conf.patch +URL: http://www.netfort.gr.jp/~kiyoka/cmmi/index.html +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: perl >= 5 +BuildRequires: perl +BuildArch: noarch +License: GPLv2 + +%description +Cmmi helps you to simplify your installation process from '.tar.gz' source +archives.You can be a package manager of your local site, if you are not an +expert of your OS.Cmmi can make Debian, RedHat, Slackware and cygwin packages +efficiently. + +%prep +%setup -q +%patch0 -p1 + +%build + +%install +%{__rm} -rf %{buildroot} + +%{__mkdir} -p %{buildroot}%{_bindir} +%{__install} -m0755 cmmi %{buildroot}%{_bindir} + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-, root, root, 0755) +%doc CHANGELOG COPYING CREDITS README README.ja dot.cmmirc* +%{_bindir}/cmmi + +%changelog +* Sun Jan 19 2014 IWAI, Masaharu 0.5.2-1 +- initial release +