-
Notifications
You must be signed in to change notification settings - Fork 3
/
sbdmock.spec
55 lines (39 loc) · 1.23 KB
/
sbdmock.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
Name: sbdmock
Version: 0.4.2
Release: 1%{?dist}
Summary: Scratchbox debian package builder
Group: Development/Languages
License: GPL
URL: http://bifh.org/wiki/sbdmock
Source0: %{name}-%{version}.tar.gz
Requires: python-minideblib
Requires: scratchbox-core >= 1.0.8
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
%description
Small python script for building debian packages using Scratchbox
%prep
%setup -q
%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
# example configs
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sbdmock
install -m 755 etc/*.cfg $RPM_BUILD_ROOT%{_sysconfdir}/sbdmock
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/sbd*
%dir %{_sysconfdir}/sbdmock
%config(noreplace) %{_sysconfdir}/sbdmock/*.cfg
%changelog
* Fri Apr 24 2009 Alexandr D. Kanevskiy <packages@bifh.org>
- 0.4.2 release
* Sun Nov 11 2007 Alexandr D. Kanevskiy <packages@bifh.org>
- initial packaging