summaryrefslogtreecommitdiff
path: root/pykdeextensions.spec
blob: d6df6258096cb782c5ac15ef9ebd26134cd5fe0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# TODO:
# - optflags
# - split to devel static examples packages
# - fix KDE HTML docs packaging
Summary:	Collection of software and Python packages to support the creation and installation of KDE applications
Summary(pl.UTF-8):	Zbiór oprogramowania i pakietów Pythona wspierających tworzenie i instalację aplikacji KDE
Name:		pykdeextensions
Version:	0.4.0
Release:	0.2
License:	GPL
Group:		Development/Languages/Python
Source0:	http://www.simonzone.com/software/pykdeextensions/%{name}-%{version}.tar.gz
# Source0-md5:	5249c7288c1b2bed44a2d91111d3313a
URL:		http://www.simonzone.com/software/pykdeextensions/#introduction
BuildRequires:	python-PyKDE
BuildRequires:	python-devel
BuildRequires:	python-modules >= 2.2.1
BuildRequires:	rpm-pythonprov
BuildRequires:	rpmbuild(macros) >= 1.219
%pyrequires_eq	python-modules
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
PyKDE Extensions is a collection of software and Python packages to
support the creation and installation of KDE applications.

%description -l pl.UTF-8
PyKDE Extensions jest zbiorem oprogramowania i pakietów Pythona
wspierających tworzenie i instalację aplikacji KDE.

%prep
%setup -q

%build
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1}

python setup.py install \
	--optimize=2 \
	--root=$RPM_BUILD_ROOT

# install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
# install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/pylintrc

%py_postclean

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc ChangeLog README TODO
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
#%{py_scriptdir}/site-packages/*.py[co]
%{py_sitescriptdir}/*.py[co]
# app_templates -> examples / docs ?
%{_datadir}/apps/%{name}

#%files devel
#%defattr(644,root,root,755)
#%doc devel-doc/*
%attr(755,root,root) %{_libdir}/lib*.so
%{_includedir}/pythonize.h
%{_libdir}/lib*.la

#%files static
#%defattr(644,root,root,755)
%{_libdir}/lib*.a

#%doc ChangeLog TODO README examples/* doc/*.txt
#%attr(755,root,root) %{_bindir}/pylint
#%attr(755,root,root) %{_bindir}/symilar
#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pylintrc
#%{py_sitescriptdir}/*
#%{_mandir}/man1/*