SPECS: gresistor.spec (NEW) - new

megabajt megabajt at pld-linux.org
Sun Apr 15 20:58:40 CEST 2007


Author: megabajt                     Date: Sun Apr 15 18:58:40 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   gresistor.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/gresistor.spec
diff -u /dev/null SPECS/gresistor.spec:1.1
--- /dev/null	Sun Apr 15 20:58:40 2007
+++ SPECS/gresistor.spec	Sun Apr 15 20:58:35 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+Summary:	Resistor color code calculator
+Name:		gresistor
+Version:	0.0.1
+Release:	1
+License:	GPL
+Group:		X11/Applications
+Source0:	http://www.minipop.org/progs/gresistor/%{name}-%{version}.tar.gz
+# Source0-md5:	d8e5d3a4a5f73f081a4892b220b0f178
+Patch0:		%{name}-desktop.patch
+URL:		http://minipop.org/index.php?file=gresistor
+BuildRequires:	python >= 1:2.5
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+%pyrequires_eq	python-modules
+Requires:	python-pygtk-glade
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+To allow for identification, resistors are usually marked with colored
+bands. Often refereed to as color codes, these markings are indicative
+of their resistance, tolerance and temperature coefficient. gResistror
+is a great program that will help you translate a resistor color codes
+into a readable value. All you have to do is watch the colors on the
+resistor and then enter them in the program. As you enter you'll see
+that the resistor value is changing according to the selected color.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+
+%{__python} setup.py install \
+        --optimize=2 \
+        --root=$RPM_BUILD_ROOT
+
+install pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/gresistor.png
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/gresistor
+%{py_sitescriptdir}/*.py[co]
+%{py_sitescriptdir}/gresistor-*.egg-info
+%{_desktopdir}/gresistor.desktop
+%{_datadir}/gresistor
+%{_pixmapsdir}/gresistor.png
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/04/15 18:58:35  megabajt
+- new
+
================================================================


More information about the pld-cvs-commit mailing list