Skip to content

Commit

Permalink
adding source files to create RPMs
Browse files Browse the repository at this point in the history
  • Loading branch information
jseidman committed Nov 30, 2011
1 parent 9dc2653 commit d011f4b
Show file tree
Hide file tree
Showing 21 changed files with 289 additions and 0 deletions.
19 changes: 19 additions & 0 deletions rpm/src/digest/Makefile
@@ -0,0 +1,19 @@
all:
@echo "Prepping for RPM build...";
@mkdir -p /var/tmp/digest-0.5.1-1-root/RPMS/x86_64
@mkdir -p /var/tmp/digest-0.5.1-1-root/SRPMS
@mkdir -p /var/tmp/digest-0.5.1-1-root/BUILD/usr/lib64/R/library
@cp -r SPECS /var/tmp/digest-0.5.1-1-root/SPECS
@cp -r SOURCES /var/tmp/digest-0.5.1-1-root/
@echo "Generating the RPM...";
@rpmbuild -bb /var/tmp/digest-0.5.1-1-root/SPECS/digest-0.5.1.spec
@mkdir artifacts
@cp /var/tmp/digest-0.5.1-1-root/RPMS/x86_64/*.rpm artifacts
@echo "Done";

clean:
@rm -rf /var/tmp/digest-0.5.1-1-root
@rm -rf ./artifacts
@rm -rf SPECS/*~
@rm -rf ./*~
echo "All Clean!";
Binary file added rpm/src/digest/SOURCES/digest_0.5.1.tar.gz
Binary file not shown.
28 changes: 28 additions & 0 deletions rpm/src/digest/SPECS/digest-0.5.1.spec
@@ -0,0 +1,28 @@
%define name digest
%define version 0.5.1
%define release 1
%define _topdir %{_tmppath}/%{name}-%{version}-%{release}-root

Summary: Install the R digest package.
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL-2
Group: Development/Libraries
BuildArch: x86_64
URL: http://cran.r-project.org/web/packages/digest/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/BUILD

%description
"Create cryptographic hash digests of R objects"

%prep

%build

%install
R CMD INSTALL -l $RPM_BUILD_ROOT/usr/lib64/R/library %{_topdir}/SOURCES/%{name}_%{version}.tar.gz

%files
%defattr(-,root,root,-)
/usr/*
19 changes: 19 additions & 0 deletions rpm/src/iterators-rpm/Makefile
@@ -0,0 +1,19 @@
all:
@echo "Prepping for RPM build...";
@mkdir -p /var/tmp/iterators-1.0.5-1-root/RPMS/x86_64
@mkdir -p /var/tmp/iterators-1.0.5-1-root/SRPMS
@mkdir -p /var/tmp/iterators-1.0.5-1-root/BUILD/usr/lib64/R/library
@cp -r SPECS /var/tmp/iterators-1.0.5-1-root/SPECS
@cp -r SOURCES /var/tmp/iterators-1.0.5-1-root/
@echo "Generating the RPM...";
@rpmbuild -bb /var/tmp/iterators-1.0.5-1-root/SPECS/iterators-1.0.5.spec
@mkdir artifacts
@cp /var/tmp/iterators-1.0.5-1-root/RPMS/x86_64/*.rpm artifacts
@echo "Done";

clean:
@rm -rf /var/tmp/iterators-1.0.5-1-root
@rm -rf ./artifacts
@rm -rf SPECS/*~
@rm -rf ./*~
echo "All Clean!";
Binary file not shown.
29 changes: 29 additions & 0 deletions rpm/src/iterators-rpm/SPECS/iterators-1.0.5.spec
@@ -0,0 +1,29 @@
%define name iterators
%define version 1.0.5
%define release 1
%define _topdir %{_tmppath}/%{name}-%{version}-%{release}-root

Summary: Install the R iterator package.
Name: %{name}
Version: %{version}
Release: %{release}
License: BSD
Group: Development/Libraries
BuildArch: x86_64
URL: http://cran.r-project.org/web/packages/iterators/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/BUILD

%description
"Support for iterators, which allow a programmer to traverse through all the
elements of a vector, list, or other collection of data."

%prep

%build

%install
R CMD INSTALL -l $RPM_BUILD_ROOT/usr/lib64/R/library %{_topdir}/SOURCES/%{name}_%{version}.tar.gz

%files
%defattr(-,root,root,-)
/usr/*
19 changes: 19 additions & 0 deletions rpm/src/itertools-rpm/Makefile
@@ -0,0 +1,19 @@
all:
@echo "Prepping for RPM build...";
@mkdir -p /var/tmp/itertools-0.1-1-root/RPMS/x86_64
@mkdir -p /var/tmp/itertools-0.1-1-root/SRPMS
@mkdir -p /var/tmp/itertools-0.1-1-root/BUILD/usr/lib64/R/library
@cp -r SPECS /var/tmp/itertools-0.1-1-root/SPECS
@cp -r SOURCES /var/tmp/itertools-0.1-1-root/
@echo "Generating the RPM...";
@rpmbuild -bb /var/tmp/itertools-0.1-1-root/SPECS/itertools-0.1.spec
@mkdir artifacts
@cp /var/tmp/itertools-0.1-1-root/RPMS/x86_64/*.rpm artifacts
@echo "Done";

clean:
@rm -rf /var/tmp/itertools-0.1-1-root
@rm -rf ./artifacts
@rm -rf SPECS/*~
@rm -rf ./*~
echo "All Clean!";
Binary file not shown.
30 changes: 30 additions & 0 deletions rpm/src/itertools-rpm/SPECS/itertools-0.1.spec
@@ -0,0 +1,30 @@
%define name itertools
%define version 0.1
%define release 1
%define _topdir %{_tmppath}/%{name}-%{version}-%{release}-root

Summary: Install the R itertools package.
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL-2
Group: Development/Libraries
BuildArch: x86_64
URL: http://cran.r-project.org/web/packages/itertools/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/BUILD

%description
"Various tools for creating iterators, many patterned after functions in the
Python itertools module, and others patterned after functions in the 'snow'
package."

%prep

%build

%install
R CMD INSTALL -l $RPM_BUILD_ROOT/usr/lib64/R/library %{_topdir}/SOURCES/%{name}_%{version}-1.tar.gz

%files
%defattr(-,root,root,-)
/usr/*
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions rpm/src/rhipe-rpm/Makefile
@@ -0,0 +1,19 @@
all:
@echo "Prepping for RPM build...";
@mkdir -p /var/tmp/Rhipe-0.66-1-root/RPMS/x86_64
@mkdir -p /var/tmp/Rhipe-0.66-1-root/SRPMS
@mkdir -p /var/tmp/Rhipe-0.66-1-root/BUILD/usr/lib64/R/library
@cp -r SPECS /var/tmp/Rhipe-0.66-1-root/SPECS
@cp -r SOURCES /var/tmp/Rhipe-0.66-1-root/
@echo "Generating the RPM...";
@rpmbuild -bb /var/tmp/Rhipe-0.66-1-root/SPECS/RHIPE-RPM.spec
@mkdir artifacts
@cp /var/tmp/Rhipe-0.66-1-root/RPMS/x86_64/*.rpm artifacts
@echo "Done";

clean:
@rm -rf /var/tmp/Rhipe-0.66-1-root
@rm -rf ./artifacts
@rm -rf SPECS/*~
@rm -rf ./*~
echo "All Clean!";
Binary file added rpm/src/rhipe-rpm/SOURCES/Rhipe_0.66.tar.gz
Binary file not shown.
32 changes: 32 additions & 0 deletions rpm/src/rhipe-rpm/SPECS/RHIPE-RPM.spec
@@ -0,0 +1,32 @@
%define name Rhipe
%define version 0.66
%define release 1
%define _topdir %{_tmppath}/%{name}-%{version}-%{release}-root

Summary: Install RHIPE and dependencies
Name: %{name}
Version: %{version}
Release: %{release}
License: Apache
Group: Development/Libraries
BuildArch: x86_64
URL: http://www.stat.purdue.edu/~sguha/rhipe/
BuildRoot: %{_topdir}/BUILD
Requires: protobuf, R-core

%description
A Java package that integrates R with Hadoop and facilitates implementing MapReduce in R.

%prep

%build

%install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export HADOOP=/usr/lib/hadoop-0.20
R CMD INSTALL -l $RPM_BUILD_ROOT/usr/lib64/R/library %{_topdir}/SOURCES/%{name}_%{version}.tar.gz

%files
%defattr(-,root,root,-)
/usr/*

19 changes: 19 additions & 0 deletions rpm/src/rjsonio-rpm/Makefile
@@ -0,0 +1,19 @@
all:
@echo "Prepping for RPM build...";
@mkdir -p /var/tmp/RJSONIO-0.96-1-root/RPMS/x86_64
@mkdir -p /var/tmp/RJSONIO-0.96-1-root/SRPMS
@mkdir -p /var/tmp/RJSONIO-0.96-1-root/BUILD/usr/lib64/R/library
@cp -r SPECS /var/tmp/RJSONIO-0.96-1-root/SPECS
@cp -r SOURCES /var/tmp/RJSONIO-0.96-1-root/
@echo "Generating the RPM...";
@rpmbuild -bb /var/tmp/RJSONIO-0.96-1-root/SPECS/rjsonio-0.96.spec
@mkdir artifacts
@cp /var/tmp/RJSONIO-0.96-1-root/RPMS/x86_64/*.rpm artifacts
@echo "Done";

clean:
@rm -rf /var/tmp/RJSONIO-0.96-1-root
@rm -rf ./artifacts
@rm -rf SPECS/*~
@rm -rf ./*~
echo "All Clean!";
Binary file added rpm/src/rjsonio-rpm/SOURCES/RJSONIO_0.96-0.tar.gz
Binary file not shown.
28 changes: 28 additions & 0 deletions rpm/src/rjsonio-rpm/SPECS/rjsonio-0.96.spec
@@ -0,0 +1,28 @@
%define name RJSONIO
%define version 0.96
%define release 1
%define _topdir %{_tmppath}/%{name}-%{version}-%{release}-root

Summary: Install the RJSONIO package, which provides access to JSON objects from R.
Name: %{name}
Version: %{version}
Release: %{release}
License: BSD
Group: Development/Libraries
BuildArch: x86_64
URL: http://cran.r-project.org/web/packages/RJSONIO/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/BUILD

%description
An R package providing functionality to convert to and from JSON objects.

%prep

%build

%install
R CMD INSTALL -l $RPM_BUILD_ROOT/usr/lib64/R/library %{_topdir}/SOURCES/%{name}_%{version}-0.tar.gz

%files
%defattr(-,root,root,-)
/usr/*
19 changes: 19 additions & 0 deletions rpm/src/rmr-rpm/Makefile
@@ -0,0 +1,19 @@
all:
@echo "Prepping for RPM build...";
@mkdir -p /var/tmp/rmr-1.0.1-1-root/RPMS/x86_64
@mkdir -p /var/tmp/rmr-1.0.1-1-root/SRPMS
@mkdir -p /var/tmp/rmr-1.0.1-1-root/BUILD/usr/lib64/R/library
@cp -r SPECS /var/tmp/rmr-1.0.1-1-root/SPECS
@cp -r SOURCES /var/tmp/rmr-1.0.1-1-root/
@echo "Generating the RPM...";
@rpmbuild -bb /var/tmp/rmr-1.0.1-1-root/SPECS/rmr-1.0.1.spec
@mkdir artifacts
@cp /var/tmp/rmr-1.0.1-1-root/RPMS/x86_64/*.rpm artifacts
@echo "Done";

clean:
@rm -rf /var/tmp/rmr-1.0.1-1-root
@rm -rf ./artifacts
@rm -rf SPECS/*~
@rm -rf ./*~
echo "All Clean!";
Binary file added rpm/src/rmr-rpm/SOURCES/rmr_1.0.1.tar.gz
Binary file not shown.
28 changes: 28 additions & 0 deletions rpm/src/rmr-rpm/SPECS/rmr-1.0.1.spec
@@ -0,0 +1,28 @@
%define name rmr
%define version 1.0.1
%define release 1
%define _topdir %{_tmppath}/%{name}-%{version}-%{release}-root

Summary: Install the rmr package, part of the Revolution Analytics RHadoop project
Name: %{name}
Version: %{version}
Release: %{release}
License: Apache
Group: Development/Libraries
BuildArch: x86_64
URL: https://github.com/RevolutionAnalytics/RHadoop/wiki/rmr
BuildRoot: %{_topdir}/BUILD

%description
An R package which provides an interface to Hadoop MapReduce development through the R environment.

%prep

%build

%install
R CMD INSTALL -l $RPM_BUILD_ROOT/usr/lib64/R/library %{_topdir}/SOURCES/%{name}_%{version}.tar.gz

%files
%defattr(-,root,root,-)
/usr/*

0 comments on commit d011f4b

Please sign in to comment.