Change-Id: Id2a896e4a509335a4321a7ccea1d6fd58c7df1c9
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4571
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,62 @@ |
| 0 |
+Summary: redis database |
|
| 1 |
+Name: redis |
|
| 2 |
+Version: 4.0.6 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+Vendor: VMware, Inc. |
|
| 5 |
+Distribution: Photon |
|
| 6 |
+License: BSD |
|
| 7 |
+Url: http://redis.io |
|
| 8 |
+Group: Applications/Database |
|
| 9 |
+ |
|
| 10 |
+Source0: %{name}-%{version}.tar.gz
|
|
| 11 |
+%define sha1 redis=9097893771863d56a69dbf233c6c97a78aaddedf |
|
| 12 |
+ |
|
| 13 |
+%description |
|
| 14 |
+Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, HyperLogLogs, Bitmaps. |
|
| 15 |
+ |
|
| 16 |
+%prep |
|
| 17 |
+%setup -q |
|
| 18 |
+ |
|
| 19 |
+%build |
|
| 20 |
+cd src |
|
| 21 |
+make OPTIMIZATION="-g" %{?_smp_mflags}
|
|
| 22 |
+ |
|
| 23 |
+%install |
|
| 24 |
+mkdir -p %{buildroot}%{_prefix}
|
|
| 25 |
+make PREFIX=%{buildroot}%{_prefix} install
|
|
| 26 |
+ |
|
| 27 |
+# Pre-install |
|
| 28 |
+%pre |
|
| 29 |
+ |
|
| 30 |
+ # First argument is 1 => New Installation |
|
| 31 |
+ # First argument is 2 => Upgrade |
|
| 32 |
+ |
|
| 33 |
+# Post-install |
|
| 34 |
+%post |
|
| 35 |
+ |
|
| 36 |
+ # First argument is 1 => New Installation |
|
| 37 |
+ # First argument is 2 => Upgrade |
|
| 38 |
+ |
|
| 39 |
+ /sbin/ldconfig |
|
| 40 |
+ |
|
| 41 |
+# Pre-uninstall |
|
| 42 |
+%preun |
|
| 43 |
+ |
|
| 44 |
+ # First argument is 0 => Uninstall |
|
| 45 |
+ # First argument is 1 => Upgrade |
|
| 46 |
+ |
|
| 47 |
+# Post-uninstall |
|
| 48 |
+%postun |
|
| 49 |
+ |
|
| 50 |
+ /sbin/ldconfig |
|
| 51 |
+ |
|
| 52 |
+ # First argument is 0 => Uninstall |
|
| 53 |
+ # First argument is 1 => Upgrade |
|
| 54 |
+ |
|
| 55 |
+%files |
|
| 56 |
+ %defattr(-,root,root) |
|
| 57 |
+ %{_bindir}/*
|
|
| 58 |
+ |
|
| 59 |
+%changelog |
|
| 60 |
+* Wed Dec 27 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.0.6-1 |
|
| 61 |
+- Initial build for photon. |