]>
Commit | Line | Data |
---|---|---|
df6bcbd7 JB |
1 | Summary: Tool to convert C99 code to MSVC-compatible C89 |
2 | Summary(pl.UTF-8): Narzędzie do konwersji kodu C99 do C89 zgodnego z MSVC | |
3 | Name: c99-to-c89 | |
4 | Version: 1.0.3 | |
c6f74d6e | 5 | Release: 10 |
df6bcbd7 JB |
6 | License: Apache v2.0 |
7 | Group: Development/Tools | |
8 | #Source0Download: https://github.com/libav/c99-to-c89/releases | |
9 | Source0: https://github.com/libav/c99-to-c89/archive/release-%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 17634d419ff1019d5b5f2fa5912fdc60 | |
11 | URL: https://github.com/libav/c99-to-c89 | |
12 | BuildRequires: clang-devel >= 3.1 | |
13 | Requires: clang-libs >= 3.1 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Tool to convert C99 code to MSVC-compatible C89. | |
18 | ||
19 | %description -l pl.UTF-8 | |
20 | Narzędzie do konwersji kodu C99 do C89 zgodnego z MSVC. | |
21 | ||
22 | %prep | |
23 | %setup -q -n %{name}-release-%{version} | |
24 | ||
25 | %build | |
26 | %{__make} \ | |
27 | CC="%{__cc}" \ | |
28 | CFLAGS="%{rpmcflags}" \ | |
29 | LDFLAGS="%{rpmldflags}" | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_bindir} | |
34 | ||
35 | install c99conv c99wrap $RPM_BUILD_ROOT%{_bindir} | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %doc README.md | |
43 | %attr(755,root,root) %{_bindir}/c99conv | |
44 | %attr(755,root,root) %{_bindir}/c99wrap |