specify: decent quit when empty yaml file met
[meego-developer-tools:spectacle.git] / dist / spectacle.spec
1
2 # Do NOT Edit the Auto-generated Part!
3 # Generated by: spectacle version 0.18
4
5 # >> macros
6 # << macros
7
8 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
9 Name:       spectacle
10 Summary:    RPM Spec file generator and management tool
11 Version:    0.18
12 Release:    1
13 Group:      Development/Tools
14 License:    GPLv2+
15 BuildArch:  noarch
16 URL:        http://meego.gitorious.org/meego-developer-tools
17 Source0:    spectacle-%{version}.tar.gz
18 Source100:  spectacle.yaml
19 Requires:   PyYAML
20 Requires:   python-urlgrabber
21 Requires:   python-cheetah
22 BuildRequires:  python-devel
23 BuildRequires:  python-cheetah
24 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
25
26
27 %description
28 Tools for managing and creating RPM spec files of MeeGo
29 packages.
30
31
32
33
34 %prep
35 %setup -q -n %{name}-%{version}
36
37 # >> setup
38 # << setup
39
40 %build
41 # >> build pre
42 make tmpls
43 # << build pre
44
45 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
46
47 # >> build post
48 # << build post
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 # >> install pre
52 # << install pre
53 %if 0%{?suse_version}
54 %{__python} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
55 %else
56 %{__python} setup.py install --root=$RPM_BUILD_ROOT -O1
57 %endif
58
59 # >> install post
60 make install-data DESTDIR=${RPM_BUILD_ROOT}
61 # << install post
62
63
64
65
66
67
68 %files
69 %defattr(-,root,root,-)
70 # >> files
71 %doc README AUTHORS COPYING TODO
72 %doc examples/
73 %dir %{_datadir}/spectacle
74 %{_datadir}/spectacle/*
75 %{_bindir}/*
76 %{python_sitelib}/*
77 # << files
78
79