[packages/c99-to-c89] - new
qboosh
qboosh at pld-linux.org
Sun May 14 22:20:18 CEST 2017
commit df6bcbd79a11f4411fb141a62bb23fb1cd4603c4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 14 22:20:55 2017 +0200
- new
c99-to-c89.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
---
diff --git a/c99-to-c89.spec b/c99-to-c89.spec
new file mode 100644
index 0000000..9563f70
--- /dev/null
+++ b/c99-to-c89.spec
@@ -0,0 +1,44 @@
+Summary: Tool to convert C99 code to MSVC-compatible C89
+Summary(pl.UTF-8): Narzędzie do konwersji kodu C99 do C89 zgodnego z MSVC
+Name: c99-to-c89
+Version: 1.0.3
+Release: 1
+License: Apache v2.0
+Group: Development/Tools
+#Source0Download: https://github.com/libav/c99-to-c89/releases
+Source0: https://github.com/libav/c99-to-c89/archive/release-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 17634d419ff1019d5b5f2fa5912fdc60
+URL: https://github.com/libav/c99-to-c89
+BuildRequires: clang-devel >= 3.1
+Requires: clang-libs >= 3.1
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tool to convert C99 code to MSVC-compatible C89.
+
+%description -l pl.UTF-8
+Narzędzie do konwersji kodu C99 do C89 zgodnego z MSVC.
+
+%prep
+%setup -q -n %{name}-release-%{version}
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+install c99conv c99wrap $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/c99conv
+%attr(755,root,root) %{_bindir}/c99wrap
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/c99-to-c89.git/commitdiff/df6bcbd79a11f4411fb141a62bb23fb1cd4603c4
More information about the pld-cvs-commit
mailing list