1 Summary: Resistor color code calculator
2 Summary(pl.UTF-8): Kalkulator kodów paskowych rezystorów
7 Group: X11/Applications
8 Source0: http://www.minipop.org/progs/gresistor/%{name}-%{version}.tar.gz
9 # Source0-md5: d8e5d3a4a5f73f081a4892b220b0f178
10 Patch0: %{name}-desktop.patch
11 URL: http://minipop.org/index.php?file=gresistor
12 BuildRequires: python >= 1:2.5
13 BuildRequires: python-devel
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.219
16 %pyrequires_eq python-modules
17 Requires: python-pygtk-glade
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 To allow for identification, resistors are usually marked with colored
23 bands. Often refereed to as color codes, these markings are indicative
24 of their resistance, tolerance and temperature coefficient. gResistror
25 is a great program that will help you translate a resistor color codes
26 into a readable value. All you have to do is watch the colors on the
27 resistor and then enter them in the program. As you enter you'll see
28 that the resistor value is changing according to the selected color.
30 %description -l pl.UTF-8
31 W celu ułatwienia identyfikacji rezystory zazwyczaj oznaczane są
32 kolorowymi paskami określającymi ich rezystancję, tolerancję oraz
33 temperaturę pracy. gResistor jest aplikacją pomocną w tłumaczeniu tych
34 kodów na czytelną wartość. Wystarczy obejrzeć kolory pasków na
35 rezystorze i wprowadzić je do programu. W miarę wprowadzania widać,
36 jak wartość rezystora zmienia się w zależności od wybranego koloru.
43 %{__python} setup.py build
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
49 %{__python} setup.py install \
51 --root=$RPM_BUILD_ROOT
53 install pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/gresistor.png
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/gresistor
64 %{py_sitescriptdir}/*.py[co]
65 %{py_sitescriptdir}/gresistor-*.egg-info
66 %{_desktopdir}/gresistor.desktop
68 %{_pixmapsdir}/gresistor.png