[packages/targetcli-fb] new package
jajcus
jajcus at pld-linux.org
Sat Jan 4 21:20:32 CET 2014
commit f89e5923666eec4194460edb06d7b9b9e84f754c
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Jan 4 20:57:26 2014 +0100
new package
targetcli-fb.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
---
diff --git a/targetcli-fb.spec b/targetcli-fb.spec
new file mode 100644
index 0000000..e425118
--- /dev/null
+++ b/targetcli-fb.spec
@@ -0,0 +1,53 @@
+Summary: Command shell for managing Linux LIO kernel target
+Name: targetcli-fb
+Version: 2.1.fb33
+Release: 1
+License: Apache v2.0
+Group: Applications/System
+URL: https://github.com/agrover/targetcli-fb
+Source0: https://codeload.github.com/agrover/targetcli-fb/tar.gz/v%{version}
+Requires: python-configshell-fb
+Requires: python-rtslib-fb
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+targetcli-fb is a command-line interface for configuring the LIO
+generic SCSI target, present in 3.x Linux kernel versions.
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_mandir}/man8,/etc/target/backup}
+
+%{__python} setup.py \
+ install --skip-build \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%py_postclean
+
+install targetcli.8 $RPM_BUILD_ROOT%{_mandir}/man8/
+
+# empty JSON file
+echo "{}" > $RPM_BUILD_ROOT/etc/target/saveconfig.json
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md THANKS
+%attr(755,root,root) %{_bindir}/targetcli
+%dir %{py_sitescriptdir}/targetcli
+%{py_sitescriptdir}/targetcli/*.py[co]
+%{py_sitescriptdir}/targetcli_fb-*.egg-info
+%{_mandir}/man8/targetcli.8*
+%attr(750,root,root) %dir /etc/target
+%attr(750,root,root) %dir /etc/target/backup
+%attr(640,root,root) /etc/target/saveconfig.json
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/targetcli-fb.git/commitdiff/f89e5923666eec4194460edb06d7b9b9e84f754c
More information about the pld-cvs-commit
mailing list