]> git.pld-linux.org Git - SPECS.git/blob - gresistor.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / gresistor.spec
1 Summary:        Resistor color code calculator
2 Summary(pl.UTF-8):      Kalkulator kodów paskowych rezystorów
3 Name:           gresistor
4 Version:        0.0.1
5 Release:        3
6 License:        GPL
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
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
29
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.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41
42 %build
43 %{__python} setup.py build
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
48
49 %{__python} setup.py install \
50         --optimize=2 \
51         --root=$RPM_BUILD_ROOT
52
53 install pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/gresistor.png
54
55 %py_postclean
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README
63 %attr(755,root,root) %{_bindir}/gresistor
64 %{py_sitescriptdir}/*.py[co]
65 %{py_sitescriptdir}/gresistor-*.egg-info
66 %{_desktopdir}/gresistor.desktop
67 %{_datadir}/gresistor
68 %{_pixmapsdir}/gresistor.png
This page took 0.28906 seconds and 3 git commands to generate.