]>
Commit | Line | Data |
---|---|---|
5f9d9873 JR |
1 | Summary: Get dependencies out of RPM spec file |
2 | Summary(pl): Pobieranie zależności z pliku spec pakietu RPM | |
3 | Name: rpm-getdeps | |
df2ac7c1 JR |
4 | Version: 0.0.8 |
5 | Release: 1 | |
5f9d9873 | 6 | License: GPL |
5f9d9873 | 7 | Group: Applications/System |
6576f132 | 8 | Source0: getdeps.c |
df2ac7c1 JR |
9 | Source1: Makefile |
10 | BuildRequires: rpm-devel >= 1:4.16.0 | |
5f9d9873 JR |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
14 | Get dependencies out of RPM spec file. | |
15 | ||
16 | %description -l pl | |
17 | Pobieranie zależności z pliku spec pakietu RPM. | |
18 | ||
19 | %prep | |
20 | %setup -q -c -T | |
df2ac7c1 JR |
21 | ln -s %{SOURCE0} . |
22 | ln -s %{SOURCE1} . | |
5f9d9873 JR |
23 | |
24 | %build | |
df2ac7c1 JR |
25 | %{__make} \ |
26 | CC="%{__cc}" \ | |
27 | RPMLDFLAGS="%{rpmldflags}" \ | |
28 | RPMCFLAGS="%{rpmcflags}" | |
5f9d9873 JR |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{_bindir} | |
33 | ||
6576f132 | 34 | cp -p rpm-getdeps $RPM_BUILD_ROOT%{_bindir} |
5f9d9873 JR |
35 | |
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
6576f132 | 41 | %attr(755,root,root) %{_bindir}/rpm-getdeps |