Blob Blame Raw
Name:           drobo-utils
Version:        0.6.2.2
Release:        26%{?dist}
Summary:        Utilities for managing Drobo storage systems
License:        GPLv3
URL:            http://drobo-utils.sourceforge.net/
Source0:        http://downloads.sourceforge.net/drobo-utils/%{name}-%{version}.tgz
Source1:        drobo-utils.desktop
Source2:        droboview.console
Source3:        droboview.pam
Patch0:         0001-fix-invoked-interpreter.patch
BuildArch:      noarch
BuildRequires:  python2-devel, desktop-file-utils, python2-setuptools
Requires:       parted, python2

%description
Drobo-utils is a set of Linux tools to query and manage Data Robotics Drobo
storage systems (Drobos).  This base package provides the command line
utility.

%package gui
Summary:        GUI utilities for managing Drobo storage systems
Requires:       python2-qt4, drobo-utils, usermode

%description gui
Drobo-utils is a set of Linux tools to query and manage Data Robotics Drobo
storage systems (Drobos).  This package provides a graphical utility.

%prep
%setup -q
%patch0 -p1

# Install the pam config so that droboview can request root privileges
install -p -m 644 %{SOURCE3} .

%build
%{__python2} -c 'import setuptools; execfile("setup.py")' build
sed -i -e "s/\#\!\/.*//g" DroboGUI.py

%install
%{__python2} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}

#Make sure DroboGUI.py is executable
chmod a+x %{buildroot}%{python2_sitelib}/DroboGUI.py

#Install the menu entry
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

#Install man files
install -d -m755 %{buildroot}%{_mandir}/man8/
install -m 644 drobom.8 %{buildroot}%{_mandir}/man8/
install -m 644 droboview.8 %{buildroot}%{_mandir}/man8/

#Setup consolehelper so droboview can request root privileges
ln -sf consolehelper %{buildroot}%{_bindir}/droboview-root
mkdir -p %{buildroot}/etc/security/console.apps
mkdir -p %{buildroot}/etc/pam.d
install -p -m 644 %{SOURCE2} %{buildroot}/etc/security/console.apps/droboview-root
install -p -m 644 droboview.pam %{buildroot}/etc/pam.d/droboview-root

%files
%doc CHANGES.txt CHANGES.html COPYING DEVELOPERS.txt DEVELOPERS.html DroboFirmwareWishes.txt QA.txt README.txt README.html drobom.html index.txt index.html
%doc %{_datadir}/%{name}-doc/*.html
%{_bindir}/drobom
%{python2_sitelib}/Drobo*
%{_mandir}/man8/drobom.8*

%files gui
%doc droboview.html
%config %{_sysconfdir}/security/console.apps/droboview-root
%config %{_sysconfdir}/pam.d/droboview-root
%{_bindir}/droboview
%{_bindir}/droboview-root
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/Drobo*
%{_mandir}/man8/droboview.8*

%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.2-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Sep 21 2018 Andy Grover <agrover@redhat.com> - 0.6.2.2-25
- Untabify specfile
- update to build on Fedora 29
  * add 0001-fix-invoked-interpreter.patch

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.2-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6.2.2-23
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.2-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.2-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Sep 21 2016 Andy Grover <agrover@redhat.com> - 0.6.2.2-19
- Replace python-ctypes dep with just python2, it's part of stdlib now

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-18
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Jan 3 2011 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-9
-Changed license tag

* Mon Dec 13 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-8
-Removed setting of CFLAGS since there is nothing to compile

* Mon Dec 13 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-7
-Removed old pam stack lines

* Fri Nov 26 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-6
-Removed Python setup for Fedora versions before 12
-Removed BuildRoot
-Removed Test of pam stack
-Changed RPM_BUILD_ROOT to buildroot for consistency
-Changed update-desktop-database lines to match guidelines
-Removed cleaning of buildroot

* Sun May 16 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-5
-Fixed Python sitelib definition
-BuildRequires: python-setuptools

* Sun May 09 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-4
-Incorporated several ideas from Ismael's package (e.g. split out gui package)

* Mon Mar 29 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-3
-Setup for droboview to run as root

* Sun Feb 14 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-2
-Put man pages in the right place

* Sun Feb 14 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.2-1
-New release

* Sun Jan 10 2010 Jameson Pugh (imntreal@gmail.com) - 0.6.2.1-1
-New release

* Fri Oct 16 2009 Jameson Pugh (imntreal@gmail.com) - 0.6.1-1
-New release

* Sat Jul 04 2009 Jameson Pugh (imntreal@gmail.com) - 0.6.0-2
-Added man files

* Sat Jul 04 2009 Jameson Pugh (imntreal@gmail.com) - 0.6.0-1
-New release

* Thu Jan 29 2009 Jameson Pugh <imntreal@gmail.com> - 0.4.0r195-1
- Initial public release of the package