]> git.pld-linux.org Git - SPECS.git/blob - python-pygtkimageview.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / python-pygtkimageview.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # do not make documentation
4 #
5 Summary:        PyGtkImageView - image viewer widget for PyGTK
6 Summary(pl.UTF-8):      PyGtkImageView - widget przeglądarki obrazów dla PyGTK
7 Name:           python-pygtkimageview
8 Version:        1.2.0
9 Release:        4
10 License:        LGPL
11 Group:          Libraries/Python
12 Source0:        http://trac.bjourne.webfactional.com/chrome/common/releases/pygtkimageview-%{version}.tar.gz
13 # Source0-md5:  87959382ca96f2a6bf4a8c338d7096ee
14 URL:            http://trac.bjourne.webfactional.com/
15 %{?with_doc:BuildRequires:      epydoc}
16 BuildRequires:  gtkimageview-devel >= 1.5.0
17 BuildRequires:  python-devel >= 2.2
18 BuildRequires:  python-pygtk-devel >= 2:2.8.0
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  rpmbuild(macros) >= 1.219
21 Requires:       gtkimageview >= 1.5.0
22 Requires:       python-pygtk-gtk >= 2:2.8.0
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 GtkImageView is a simple image viewer widget for GTK+. Similar to the
27 image viewer panes in gThumb or Eye of Gnome. It makes writing image
28 viewing and editing applications easy. Among its features are:
29  - Mouse and keyboard zooming
30  - Scrolling and dragging
31  - Adjustable interpolation
32  - Fullscreen mode
33  - GIF animation support
34  - Ability to make selections
35  - Extensible using a tool system.
36
37 PyGtkImageView is the Python bindings for GtkImageView.
38
39 %description -l pl.UTF-8
40 GtkImageView to prosty widget przeglądarki obrazów dla GTK+, podobny
41 do paneli przeglądarki w programach gThumb albo Eye of Gnome. Ułatwia
42 pisanie przeglądarek obrazów oraz aplikacji modyfikujących je.
43 Możliwości widgetu tu m.in.:
44  - powiększanie przy użyciu myszy lub klawiatury
45  - przewijanie i przeciąganie
46  - konfigurowalna interpolacja
47  - tryb pełnoekranowy
48  - obsługa animacji GIF
49  - możliwość zaznaczania
50  - rozszerzanie przez system narzędzi.
51
52 PyGtkImageView to wiązania Pythona do biblioteki GtkImageView.
53
54 %package devel
55 Summary:        Development files for PyGtkImageView
56 Summary(pl.UTF-8):      Pliki programistyczne pakietu PyGtkImageView
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59 Requires:       gtkimageview-devel >= 1.5.0
60
61 %description devel
62 Development files for PyGtkImageView.
63
64 %description devel -l pl.UTF-8
65 Pliki programistyczne pakietu PyGtkImageView.
66
67 %prep
68 %setup -q -n pygtkimageview-%{version}
69
70 %build
71 %configure
72
73 %{__make}
74
75 %if %{with doc}
76 cd docs
77 PYTHONPATH=. epydoc --no-private -v --debug --config epydoc.config --html gtkimageview
78 %endif
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %py_postclean
87 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gtkimageview/*.la
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
94 %doc README docs/html
95 %dir %{py_sitedir}/gtkimageview
96 %{py_sitedir}/gtkimageview/__init__.py[co]
97 %attr(755,root,root) %{py_sitedir}/gtkimageview/_gtkimageview.so
98
99 %files devel
100 %defattr(644,root,root,755)
101 %{_pkgconfigdir}/pygtkimageview.pc
This page took 0.712405 seconds and 3 git commands to generate.