[pysdm/f15] Initial import (#708475)

Richard Shaw hobbes1069 at fedoraproject.org
Tue Jun 14 18:05:18 UTC 2011


commit 0e8d25e298fc2c8debe62b282146228411e6576a
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date:   Tue Jun 14 13:05:07 2011 -0500

    Initial import (#708475)

 .gitignore                        |    1 +
 pysdm-0.4.1-rm_bundled_libs.patch |   26 +++++++++++++
 pysdm.spec                        |   75 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 103 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e7b83be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pysdm-0.4.1.tar.gz
diff --git a/pysdm-0.4.1-rm_bundled_libs.patch b/pysdm-0.4.1-rm_bundled_libs.patch
new file mode 100644
index 0000000..15e7d9d
--- /dev/null
+++ b/pysdm-0.4.1-rm_bundled_libs.patch
@@ -0,0 +1,26 @@
+diff -Naur pysdm-0.4.1.orig/Makefile.am pysdm-0.4.1/Makefile.am
+--- pysdm-0.4.1.orig/Makefile.am	2005-09-02 09:50:48.000000000 -0500
++++ pysdm-0.4.1/Makefile.am	2011-06-02 15:50:42.966845771 -0500
+@@ -7,8 +7,7 @@
+ 	pysdm/fstab.py		\
+ 	pysdm/options_ui.py	\
+ 	pysdm/pysdm.py		\
+-	pysdm/sysfs.py		\
+-	pysdm/SimpleGladeApp.py
++	pysdm/sysfs.py		
+ 
+ fsdatadir = $(pysdmdir)/fsdata
+ fsdata_PYTHON = \
+diff -Naur pysdm-0.4.1.orig/Makefile.in pysdm-0.4.1/Makefile.in
+--- pysdm-0.4.1.orig/Makefile.in	2006-05-14 09:46:29.000000000 -0500
++++ pysdm-0.4.1/Makefile.in	2011-06-02 15:51:13.962852377 -0500
+@@ -199,8 +199,7 @@
+ 	pysdm/fstab.py		\
+ 	pysdm/options_ui.py	\
+ 	pysdm/pysdm.py		\
+-	pysdm/sysfs.py		\
+-	pysdm/SimpleGladeApp.py
++	pysdm/sysfs.py
+ 
+ fsdatadir = $(pysdmdir)/fsdata
+ fsdata_PYTHON = \
diff --git a/pysdm.spec b/pysdm.spec
new file mode 100644
index 0000000..65bade2
--- /dev/null
+++ b/pysdm.spec
@@ -0,0 +1,75 @@
+Name:           pysdm
+Version:        0.4.1
+Release:        2%{?dist}
+Summary:        Python based Storage Device Manager
+
+Group:          Applications/System
+License:        LGPLv2+
+URL:            http://pysdm.sourceforge.net
+Source0:        http://downloads.sourceforge.net/pysdm/%{name}-%{version}.tar.gz
+Patch0:         pysdm-0.4.1-rm_bundled_libs.patch
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  gettext
+BuildRequires:  desktop-file-utils
+
+Requires:       python >= 2.4
+Requires:       pygtk2
+Requires:       tepache
+Requires:       beesu
+Requires:       gnome-icon-theme-legacy
+
+%description
+PySDM is a Storage Device Manager that allows full customization of hard disk
+mount points without manually access to fstab. It also allows the creation of
+udev rules for dynamic configuration of storage devices
+
+
+%prep
+%setup -q
+%patch0 -p1
+# Remove bundled files.
+rm -f pysdm/tepache.py
+rm -f pysdm/SimpleGladeApp.py
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make DESTDIR=$RPM_BUILD_ROOT install
+%find_lang %{name}
+
+# Fedora doesn't use gksudo, use beesu instead.
+sed -i -e 's,gksudo,beesu -c,g' %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+desktop-file-install                                   \
+--remove-key="Encoding"                                \
+--remove-category="Application"                        \
+--delete-original                                      \
+--dir=%{buildroot}%{_datadir}/applications             \
+%{buildroot}%{_datadir}/applications/%{name}.desktop     
+
+# pysdm.py is loaded from a script in /usr/bin
+chmod 0755 %{buildroot}%{_datadir}/%{name}/%{name}.py
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+
+
+%changelog
+* Thu Jun 05 2011 - Richard Shaw <hobbes1069 at gmail.com> - 0.4.1-2
+- Updated requires for new package: tepache
+- Various spec file fixes.
+
+* Sat May 21 2011 - Richard Shaw <hobbes1069 at gmail.com> - 0.4.1-1
+- Inital release.
diff --git a/sources b/sources
index e69de29..cd459d2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bc3b671ac95065c5121e056d820fd0a2  pysdm-0.4.1.tar.gz


More information about the scm-commits mailing list