forked from cnangel/python-libconfig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
python-libconfig.spec
43 lines (33 loc) · 958 Bytes
/
python-libconfig.spec
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
Summary: A python interface to libconfig
Name: python-libconfig
Version: 0.0.1
Release: 1
License: bsd
Group: Development/Libraries
Source0: %{name}-%{version}.tar.gz
URL: http://code.google.com/r/cnangel-python-libconfig/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libconfig libconfig-devel
Requires: libconfig
%description
Python interface to libconfig
python-libconfig is an interface to the popular config for Python.
%prep
%setup -q -n %{name}-%{version}c1
%build
rm -f doc/*~
export libdirname=%{_lib}
CFLAGS="$RPM_OPT_FLAGS" python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
export libdirname=%{_lib}
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README
%{_libdir}/python?.?/site-packages/*.so
%changelog
* Fri Apr 16 2010 Cnangel <[email protected]> 1.0.0-1
- build the first spec file