Skip to content
This repository
tree: e0c1cc34aa
Fetching contributors…

Cannot retrieve contributors at this time

file 54 lines (43 sloc) 1.5 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
# BuildArch should be determined automatically. Use of setarch on x86-64
# platform will allow one to build ix86 only
#
# _revision, _release, and _version should be defined on the rpmbuild command
# line like so:
#
# --define "_version 0.9.1.19.abcdef" --define "_release 7" \
# --define "_revision 0.9.1-19-abcdef"


Name: bitcask
Version: %{_version}
Release: %{_release}%{?dist}
License: GPLv2
Group: Development/Libraries
Source: http://downloads.basho.com/%{name}/%{name}-%{_revision}/%{name}-%{_revision}.tar.gz
URL: http://basho.com/
Vendor: Basho Technologies
Packager: Basho Support <support@basho.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Summary: Because you need another a key/value storage engine

%description
Because you need another a key/value storage engine

%define __prelink_undo_cmd /bin/cat prelink library

%prep
%setup -n %{name}-%{_revision}

%build
mkdir %{name}
ERL_FLAGS="-smp enable" make

%install
mkdir -p %{buildroot}%{_libdir}%{name}

#Copy all necessary lib files etc.
cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/ebin %{buildroot}%{_libdir}%{name}
cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/priv %{buildroot}%{_libdir}%{name}
# I don't see how the source is useful at the moment
#cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/src %{buildroot}%{_libdir}%{name}

%files
%defattr(-,root,root)
%dir %{_libdir}%{name}
%{_libdir}%{name}/*

%clean
rm -rf %{buildroot}

%changelog
* Wed May 26 2010 Ryan Tilder <rtilder@basho.com> 0.1-1
- Initial packaging
Something went wrong with that request. Please try again.