]> git.pld-linux.org Git - packages/targetcli-fb.git/commitdiff
new package
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 4 Jan 2014 19:57:26 +0000 (20:57 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 4 Jan 2014 20:20:15 +0000 (21:20 +0100)
targetcli-fb.spec [new file with mode: 0644]

diff --git a/targetcli-fb.spec b/targetcli-fb.spec
new file mode 100644 (file)
index 0000000..e425118
--- /dev/null
@@ -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
This page took 0.087983 seconds and 4 git commands to generate.