122 lines
3.8 KiB
RPMSpec
122 lines
3.8 KiB
RPMSpec
Name: targetd
|
|
License: GPLv3
|
|
Group: System Environment/Libraries
|
|
Summary: Service to make storage remotely configurable
|
|
Version: 0.7.2
|
|
Release: 1%{?dist}
|
|
URL: https://github.com/agrover/targetd
|
|
Source: https://github.com/downloads/agrover/%{name}/%{name}-%{version}.tar.gz
|
|
Source1: targetd.service
|
|
Source2: targetd.yaml
|
|
BuildArch: noarch
|
|
BuildRequires: systemd, python-devel
|
|
Requires: PyYAML python-setproctitle python-rtslib
|
|
Requires: lvm2-python-libs >= 2.02.99, nfs-utils, btrfs-progs
|
|
Requires(post): systemd
|
|
Requires(preun): systemd
|
|
Requires(postun): systemd
|
|
|
|
|
|
%description
|
|
targetd turns the machine into a remotely-configurable storage appliance.
|
|
It supports an HTTP/jsonrpc-2.0 interface to let a remote
|
|
administrator allocate volumes from an LVM volume group, and export
|
|
those volumes over iSCSI.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
gzip --stdout targetd.8 > targetd.8.gz
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_mandir}/man8/
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/target/
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/targetd.service
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/target/targetd.yaml
|
|
install -m 644 targetd.8.gz %{buildroot}%{_mandir}/man8/
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
%post
|
|
%systemd_post targetd.service
|
|
|
|
%preun
|
|
%systemd_preun targetd.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart targetd.service
|
|
|
|
%files
|
|
%{_bindir}/targetd
|
|
%{_unitdir}/targetd.service
|
|
%{python_sitelib}/*
|
|
%doc LICENSE README.md API.md client
|
|
%{_mandir}/man8/targetd.8.gz
|
|
%config(noreplace) %{_sysconfdir}/target/targetd.yaml
|
|
|
|
%changelog
|
|
* Fri Mar 14 2014 Andy Grover <agrover@redhat.com> 0.7.2-1
|
|
- New upstream version
|
|
|
|
* Mon Feb 10 2014 Andy Grover <agrover@redhat.com> 0.7.1-1
|
|
- New upstream version
|
|
|
|
* Mon Nov 25 2013 Andy Grover <agrover@redhat.com> 0.7-2
|
|
- Fix service file for new ktarget service name
|
|
- Add python-rtslib to requires
|
|
|
|
* Fri Nov 8 2013 Andy Grover <agrover@redhat.com> 0.7-1
|
|
- New upstream version
|
|
- Use systemd spec macros
|
|
|
|
* Thu Aug 8 2013 Andy Grover <agrover@redhat.com> 0.6.1-1
|
|
- Update to latest version, make needed changes
|
|
- Drop patches:
|
|
* require-password.patch
|
|
* use-std-ssl.patch
|
|
- Change requires from python-lvm to lvm2-python-libs
|
|
|
|
* Mon Aug 5 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.1-7
|
|
- Add systemd to BuildReq to fix FTBFS
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Tue Apr 16 2013 Andy Grover <agrover@redhat.com> - 0.3.1-5
|
|
- Update require-password.patch
|
|
- Change target.yaml to not include a commented-out default password
|
|
|
|
* Tue Apr 16 2013 Andy Grover <agrover@redhat.com> - 0.3.1-4
|
|
- Remove dependency on python-tlslite
|
|
|
|
* Mon Apr 15 2013 Andy Grover <agrover@redhat.com> - 0.3.1-3
|
|
- Add patch
|
|
* use-std-ssl.patch
|
|
* require-password.patch
|
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Wed Oct 17 2012 Andy Grover <agrover@redhat.com> - 0.3.1-1
|
|
- New upstream version
|
|
|
|
* Mon Sep 24 2012 Andy Grover <agrover@redhat.com> - 0.3-1
|
|
- New upstream version
|
|
|
|
* Fri Sep 7 2012 Andy Grover <agrover@redhat.com> - 0.2.4-1
|
|
- New upstream version
|
|
|
|
* Tue Aug 28 2012 Andy Grover <agrover@redhat.com> - 0.2.3-1
|
|
- New upstream version
|
|
- Add new dependency python-tlslite
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon Jun 25 2012 Andy Grover <agrover@redhat.com> - 0.2.2-2
|
|
- Add proper pkg requires
|
|
|
|
* Mon Jun 25 2012 Andy Grover <agrover@redhat.com> - 0.2.2-1
|
|
- Initial packaging
|