forked from Korulag/python-minideblib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-minideblib.spec
55 lines (39 loc) · 1.53 KB
/
python-minideblib.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
44
45
46
47
48
49
50
51
52
53
54
55
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: python-minideblib
Version: 0.6.21.34
Release: 1%{?dist}
Summary: Python modules for access deb files and repositories
Group: Development/Languages
License: GPL
URL: http://bifh.org/wiki/python-minideblib
Source0: minideblib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools python-devel
%description
Small python library of classes, that simplify tasks for handling
Debian source and binary packages.
%prep
%setup -q -n minideblib-%{version}
%build
# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%dir %{python_sitelib}/minideblib
%{python_sitelib}/minideblib-%{version}-py%{pyver}.egg-info
%{python_sitelib}/minideblib/*.py
%{python_sitelib}/minideblib/*.py[co]
%changelog
* Thu Aug 23 2007 Alexandr D. Kanevskiy <[email protected]>
- AptRepoClient: support copy: method
- AptRepoClient: only load requested architectures for tirvial repositories
* Fri May 11 2007 Alexandr D. Kanevskiy <[email protected]>
- initial packaging