summaryrefslogtreecommitdiff
path: root/packaging/python-elementary.spec
blob: e3e64555a3d5ac4dce57896746d86b2fdd8ae08d (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
%bcond_with x

Name:           python-elementary
Version:        1.7.0
Release:        0
License:        LGPL-2.1
Summary:        Edbus python bindings
Url:            http://www.enlightenment.org
#Vc:             git://git.enlightenment.org/legacy/bindings/python/python-elementary.git#master
Group:          EFL
Source:         %{name}-%{version}.tar.bz2
Source1001:     python-elementary.manifest
BuildRequires:  python-devel
BuildRequires:  pkgconfig(ecore-x)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  pkgconfig(ecore-x)
BuildRequires:  pkgconfig(python-ecore)
BuildRequires:  pkgconfig(python-evas)
%if %{with x}
BuildRequires:  pkgconfig(ecore-x)
%else
ExclusiveArch:
%endif


%description
Elementary python bindings.


%package devel
Summary:        Development files for %{name}
Group:          Development/Python

%description devel
Development files for %{name}.


%prep
%setup -q
cp %{SOURCE1001} .

# prevent FTBFS on wrong timestamps
file=./elementary/elementary.c_elementary.c 
[ ! -r $file ] || touch $file

%build
%configure
make %{?_smp_mflags}

%install
%make_install


%files
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root)
%{_libdir}/python2.7/site-packages/elementary


%files devel
%manifest %{name}.manifest
%{_datadir}/python-elementary/examples
%{_libdir}/pkgconfig/*.pc