diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2014-11-22 03:44:59 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2014-11-22 03:44:59 +0800 |
commit | ecdda1d3ef9f7513d6b02f0802672771733311bd (patch) | |
tree | 8635d8946431e5875887f8a45c2a8a6a65ab6c9c /tcc | |
parent | 0639cf607b8d1d4bb8926f088ad7c3867984c475 (diff) | |
download | copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.tar copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.tar.gz copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.tar.bz2 copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.tar.lz copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.tar.xz copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.tar.zst copr-rpm-spec-ecdda1d3ef9f7513d6b02f0802672771733311bd.zip |
Move packages in the addpkgs to its own project and update guix to 0.8
Diffstat (limited to 'tcc')
-rw-r--r-- | tcc/INSTALL.md | 1 | ||||
-rw-r--r-- | tcc/README.md | 2 | ||||
-rw-r--r-- | tcc/tcc/tcc.spec | 86 |
3 files changed, 89 insertions, 0 deletions
diff --git a/tcc/INSTALL.md b/tcc/INSTALL.md new file mode 100644 index 0000000..41615e4 --- /dev/null +++ b/tcc/INSTALL.md @@ -0,0 +1 @@ +Type `man tcc` or `info tcc` to read the manual. diff --git a/tcc/README.md b/tcc/README.md new file mode 100644 index 0000000..ed76e5b --- /dev/null +++ b/tcc/README.md @@ -0,0 +1,2 @@ +[Tiny C Compiler](http://bellard.org/tcc/) built with both the system compiler +and Tiny C Compiler itself. diff --git a/tcc/tcc/tcc.spec b/tcc/tcc/tcc.spec new file mode 100644 index 0000000..877b7c8 --- /dev/null +++ b/tcc/tcc/tcc.spec @@ -0,0 +1,86 @@ +%global use_gcc 1 +%global pkg_name tcc + +%if %{use_gcc} +%global use_cc gcc +%global pkg_fullname %{pkg_name} +%else +%global use_cc tcc +%global pkg_fullname %{pkg_name}-self +%global debug_package %{nil} +%endif + +Name: %{pkg_fullname} +Version: 0.9.26 +Release: 4%{?dist} +Summary: Tiny C Compiler + +Group: Development/Languages +License: LGPL +URL: http://bellard.org/tcc +Source0: http://download.savannah.gnu.org/releases/tinycc/%{pkg_name}-%{version}.tar.bz2 + +BuildRequires: %{use_cc}, glibc-devel, texinfo, perl-podlators + +%description +Tiny C Compiler is a small C compiler, which can already compile itself. +It can also run C source code as a script. + +%prep +%setup -q -n %{pkg_name}-%{version} + +%build +./configure --prefix=%{_prefix} --libdir=%{_libdir} \ + --cc=%{use_cc} --enable-cross +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_datadir}/doc/tcc/tcc-doc.html + +%post +/sbin/install-info %{_infodir}/tcc-doc.info.gz %{_infodir}/dir || : + +%preun +if [ "$1" = 0 ]; then + /sbin/install-info --del %{_infodir}/tcc-doc.info.gz %{_infodir}/dir || : +fi + +%files +%{_bindir}/arm-eabi-tcc +%{_bindir}/arm-fpa-ld-tcc +%{_bindir}/arm-fpa-tcc +%{_bindir}/arm-vfp-tcc +%{_bindir}/c67-tcc +%ifnarch i386 i486 i586 i686 +%{_bindir}/i386-tcc +%endif +%{_bindir}/i386-win32-tcc +%{_bindir}/tcc +%ifnarch x86_64 amd64 +%{_bindir}/x86_64-tcc +%endif +%{_bindir}/x86_64-win32-tcc +%{_includedir}/libtcc.h +%{_libdir}/libtcc.a +%{_libdir}/tcc/include/*.h +%{_libdir}/tcc/libtcc1.a +%ifnarch i386 i486 i586 i686 +%{_libdir}/tcc/i386/include/*.h +%{_libdir}/tcc/i386/libtcc1.a +%endif +%{_libdir}/tcc/win32/include/*.h +%{_libdir}/tcc/win32/include/sec_api/*.h +%{_libdir}/tcc/win32/include/sec_api/sys/*.h +%{_libdir}/tcc/win32/include/sys/*.h +%{_libdir}/tcc/win32/include/winapi/*.h +%{_libdir}/tcc/win32/lib/32/libtcc1.a +%{_libdir}/tcc/win32/lib/64/libtcc1.a +%{_libdir}/tcc/win32/lib/*.def +%{_mandir}/man1/tcc.1.gz +%{_infodir}/tcc-doc.info.gz +%doc Changelog COPYING README TODO VERSION tcc-doc.html + +%changelog +* Mon Nov 04 2013 Ting-Wei Lan <lantw44@gmail.com> +- Initial packaging |