Change-Id: I5fd89a9808d7d3b1e1a0c0a8595ec6432e82fa05
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2384
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,111 @@ |
| 0 |
+Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory) |
|
| 1 |
+Name: ndctl |
|
| 2 |
+Version: 56 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPLv2 |
|
| 5 |
+Group: System Environment/Base |
|
| 6 |
+Url: https://github.com/pmem/ndctl |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: https://github.com/pmem/%{name}/archive/%{name}-%{version}.tar.gz
|
|
| 10 |
+%define sha1 ndctl=99dbdae3609c85270dae0530aec0206e6ad36e88 |
|
| 11 |
+ |
|
| 12 |
+BuildRequires: asciidoc |
|
| 13 |
+BuildRequires: which |
|
| 14 |
+BuildRequires: xmlto |
|
| 15 |
+BuildRequires: libtool |
|
| 16 |
+BuildRequires: pkg-config |
|
| 17 |
+BuildRequires: kmod |
|
| 18 |
+BuildRequires: systemd |
|
| 19 |
+BuildRequires: json-c-devel |
|
| 20 |
+ |
|
| 21 |
+%description |
|
| 22 |
+Utility library for managing the "libnvdimm" subsystem. The "libnvdimm" |
|
| 23 |
+subsystem defines a kernel device model and control message interface for |
|
| 24 |
+platform NVDIMM resources. |
|
| 25 |
+ |
|
| 26 |
+%package devel |
|
| 27 |
+Summary: Development files for ndctl |
|
| 28 |
+License: LGPLv2 |
|
| 29 |
+Group: Development/Libraries |
|
| 30 |
+Requires: %{name} = %{version}-%{release}
|
|
| 31 |
+ |
|
| 32 |
+%description devel |
|
| 33 |
+The %{name}-devel package contains libraries and header files for
|
|
| 34 |
+developing applications that use %{name}.
|
|
| 35 |
+ |
|
| 36 |
+%package -n daxctl |
|
| 37 |
+Summary: Manage Device-DAX instances |
|
| 38 |
+License: GPLv2 |
|
| 39 |
+Group: System Environment/Base |
|
| 40 |
+ |
|
| 41 |
+%description -n daxctl |
|
| 42 |
+The daxctl utility provides enumeration and provisioning commands for |
|
| 43 |
+the Linux kernel Device-DAX facility. This facility enables DAX mappings |
|
| 44 |
+of performance / feature differentiated memory without need of a |
|
| 45 |
+filesystem. |
|
| 46 |
+ |
|
| 47 |
+%package -n daxctl-devel |
|
| 48 |
+Summary: Development files for daxctl |
|
| 49 |
+License: LGPLv2 |
|
| 50 |
+Group: Development/Libraries |
|
| 51 |
+Requires: daxctl = %{version}-%{release}
|
|
| 52 |
+ |
|
| 53 |
+%description -n daxctl-devel |
|
| 54 |
+The %{name}-devel package contains libraries and header files for
|
|
| 55 |
+developing applications that use %{name}, a library for enumerating
|
|
| 56 |
+"Device DAX" devices. Device DAX is a facility for establishing DAX |
|
| 57 |
+mappings of performance / feature-differentiated memory. |
|
| 58 |
+ |
|
| 59 |
+%prep |
|
| 60 |
+%setup -q ndctl-%{version}
|
|
| 61 |
+ |
|
| 62 |
+%build |
|
| 63 |
+./autogen.sh |
|
| 64 |
+%configure \ |
|
| 65 |
+ --disable-static \ |
|
| 66 |
+ --enable-local \ |
|
| 67 |
+ --disable-docs |
|
| 68 |
+make %{?_smp_mflags}
|
|
| 69 |
+ |
|
| 70 |
+%install |
|
| 71 |
+make install DESTDIR=%{buildroot}
|
|
| 72 |
+find %{buildroot} -name '*.la' -delete
|
|
| 73 |
+ |
|
| 74 |
+%check |
|
| 75 |
+make check |
|
| 76 |
+ |
|
| 77 |
+%post -p /sbin/ldconfig |
|
| 78 |
+ |
|
| 79 |
+%postun -p /sbin/ldconfig |
|
| 80 |
+ |
|
| 81 |
+%files |
|
| 82 |
+%defattr(-,root,root) |
|
| 83 |
+%license util/COPYING licenses/BSD-MIT licenses/CC0 |
|
| 84 |
+%{_bindir}/ndctl
|
|
| 85 |
+%{_libdir}/libndctl.so.*
|
|
| 86 |
+%{_datadir}/bash-completion/
|
|
| 87 |
+ |
|
| 88 |
+%files devel |
|
| 89 |
+%defattr(-,root,root) |
|
| 90 |
+%license COPYING |
|
| 91 |
+%{_includedir}/ndctl/
|
|
| 92 |
+%{_libdir}/libndctl.so
|
|
| 93 |
+%{_libdir}/pkgconfig/libndctl.pc
|
|
| 94 |
+ |
|
| 95 |
+%files -n daxctl |
|
| 96 |
+%defattr(-,root,root) |
|
| 97 |
+%license util/COPYING licenses/BSD-MIT licenses/CC0 |
|
| 98 |
+%{_bindir}/daxctl
|
|
| 99 |
+%{_libdir}/libdaxctl.so.*
|
|
| 100 |
+ |
|
| 101 |
+%files -n daxctl-devel |
|
| 102 |
+%defattr(-,root,root) |
|
| 103 |
+%license COPYING |
|
| 104 |
+%{_includedir}/daxctl/
|
|
| 105 |
+%{_libdir}/libdaxctl.so
|
|
| 106 |
+%{_libdir}/pkgconfig/libdaxctl.pc
|
|
| 107 |
+ |
|
| 108 |
+%changelog |
|
| 109 |
+* Thu Apr 06 2017 Dheeraj Shetty <dheerajs@vmware.com> 56-1 |
|
| 110 |
+- Initial build. First version |
| 0 | 111 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,51 @@ |
| 0 |
+Summary: The purpose of xmlto is to convert an XML file to the desired format |
|
| 1 |
+Name: xmlto |
|
| 2 |
+Version: 0.0.28 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPLv2+ |
|
| 5 |
+URL: https://pagure.io/xmlto |
|
| 6 |
+Group: Applications/System |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: http://releases.pagure.org/xmlto/%{name}-%{version}.tar.gz
|
|
| 10 |
+%define sha1 xmlto=235feb4d2aeccf7467f458a3e18b20445f89cc0f |
|
| 11 |
+BuildRequires: docbook-xsl |
|
| 12 |
+BuildRequires: docbook-xml |
|
| 13 |
+BuildRequires: libxslt-devel |
|
| 14 |
+Requires: systemd |
|
| 15 |
+Requires: docbook-xsl |
|
| 16 |
+Requires: libxslt |
|
| 17 |
+ |
|
| 18 |
+%description |
|
| 19 |
+The purpose of xmlto is to convert an XML file to the desired format |
|
| 20 |
+ |
|
| 21 |
+%prep |
|
| 22 |
+%setup -q |
|
| 23 |
+ |
|
| 24 |
+%build |
|
| 25 |
+./configure \ |
|
| 26 |
+ --prefix=%{_prefix}
|
|
| 27 |
+ |
|
| 28 |
+make %{?_smp_mflags}
|
|
| 29 |
+ |
|
| 30 |
+%install |
|
| 31 |
+make install DESTDIR=%{buildroot}
|
|
| 32 |
+ |
|
| 33 |
+%check |
|
| 34 |
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
|
| 35 |
+ |
|
| 36 |
+%post |
|
| 37 |
+/sbin/ldconfig |
|
| 38 |
+ |
|
| 39 |
+%postun |
|
| 40 |
+/sbin/ldconfig |
|
| 41 |
+ |
|
| 42 |
+%files |
|
| 43 |
+%defattr(-,root,root) |
|
| 44 |
+%{_bindir}/*
|
|
| 45 |
+%{_mandir}/*/*
|
|
| 46 |
+%{_datadir}/xmlto/*
|
|
| 47 |
+ |
|
| 48 |
+%changelog |
|
| 49 |
+* Thu Apr 06 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.0.28-1 |
|
| 50 |
+- Initial build. First version |