diff --git a/.gitignore b/.gitignore index e69de29..00b1add 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ucpp-*.tar.* diff --git a/sources b/sources new file mode 100644 index 0000000..f397904 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ucpp-1.3.5.tar.bz2) = 24b9d91165ae830fae48519cee9996d7d6e2997a0dcfa6e36adc90bafc835b1740be47316a29470c0e98593d10c678652a6c7994e679ef41346345af8aec0652 diff --git a/ucpp-rpm.patch b/ucpp-rpm.patch new file mode 100644 index 0000000..9b9d90a --- /dev/null +++ b/ucpp-rpm.patch @@ -0,0 +1,39 @@ +diff -up ucpp/Makefile.r ucpp/Makefile +--- ucpp/Makefile.r 2011-08-09 07:13:15.000000000 +0200 ++++ ucpp/Makefile 2013-05-02 01:36:23.659241707 +0200 +@@ -91,25 +91,25 @@ COBJ = mem.o nhash.o cpp.o lexer.o asser + CFLAGS = $(FLAGS) + + all: ucpp +- @ar cq libucpp.a *.o ++ ar cq libucpp.a *.o + + clean: +- @rm -f *.o ucpp core *.a ++ rm -f *.o ucpp core *.a + + ucpp: $(COBJ) +- @$(FINAL_STEP) ++ $(FINAL_STEP) + + assert.o: tune.h ucppi.h cpp.h nhash.h mem.h +- @$(CC) $(CFLAGS) -c assert.c ++ $(CC) $(CFLAGS) -c assert.c + cpp.o: tune.h ucppi.h cpp.h nhash.h mem.h +- @$(CC) $(CFLAGS) -c cpp.c ++ $(CC) $(CFLAGS) -c cpp.c + eval.o: tune.h ucppi.h cpp.h nhash.h mem.h arith.c arith.h +- @$(CC) $(CFLAGS) -c eval.c ++ $(CC) $(CFLAGS) -c eval.c + lexer.o: tune.h ucppi.h cpp.h nhash.h mem.h +- @$(CC) $(CFLAGS) -c lexer.c ++ $(CC) $(CFLAGS) -c lexer.c + macro.o: tune.h ucppi.h cpp.h nhash.h mem.h +- @$(CC) $(CFLAGS) -c macro.c ++ $(CC) $(CFLAGS) -c macro.c + mem.o: mem.h +- @$(CC) $(CFLAGS) -c mem.c ++ $(CC) $(CFLAGS) -c mem.c + nhash.o: nhash.h mem.h +- @$(CC) $(CFLAGS) -c nhash.c ++ $(CC) $(CFLAGS) -c nhash.c diff --git a/ucpp.spec b/ucpp.spec new file mode 100644 index 0000000..3dd67ea --- /dev/null +++ b/ucpp.spec @@ -0,0 +1,136 @@ +Summary: Embeddable, quick, light and fully compliant ISO C99 preprocessor +Name: ucpp +Version: 1.3.5 +Release: 5%{?dist} +URL: https://gitlab.com/scarabeusiv/ucpp +Source0: https://gitlab.com/scarabeusiv/ucpp/-/archive/%{version}/ucpp-%{version}.tar.bz2 +License: BSD +BuildRequires: libtool +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description +A C preprocessor is a part of a C compiler responsible for macro replacement, +conditional compilation and inclusion of header files. It is often found as +a stand-alone program on Unix systems. + +ucpp is such a preprocessor; it is designed to be quick and light, but anyway +fully compliant to the ISO standard 9899:1999, also known as C99. ucpp can be +compiled as a stand-alone program, or linked to some other code; in the latter +case, ucpp will output tokens, one at a time, on demand, as an integrated lexer. + +%package libs +Summary: Library for preprocessing C code compliant with ISO-C99 + +%description libs +libucpp is an ISO standard 9899:1999 compliant preprocessing library for C +code. It will output tokens, one at a time, on demand, as an integrated lexer. + +%package devel +Summary: Development files for libucpp Library +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +libucpp is an ISO standard 9899:1999 compliant preprocessing library for C +code. It will output tokens, one at a time, on demand, as an integrated lexer. + +This package contains the development files for the library. + +%prep +%setup -q +# convert README to UTF-8 +iconv -f iso8859-1 -t utf8 README >README.utf8 && \ + touch -r README.utf8 README && \ + mv README.utf8 README +autoreconf -vif + +%build +%configure \ + --disable-silent-rules \ + --disable-static \ + --disable-werror \ + +%make_build + +%install +%make_install +rm %{buildroot}%{_libdir}/libucpp.la + +%files +%{_bindir}/ucpp +%{_mandir}/man1/ucpp.1* + +%files libs +%doc AUTHORS ChangeLog* COPYING README +%{_libdir}/libucpp.so.13* + +%files devel +%{_includedir}/libucpp +%{_libdir}/libucpp.so +%{_libdir}/pkgconfig/libucpp.pc + +%changelog +* Wed Jul 29 2020 Fedora Release Engineering - 1.3.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Mar 19 2020 Dominik Mierzejewski 1.3.5-4 +- fix FTBFS due to -Werror on s390x + +* Fri Jan 31 2020 Fedora Release Engineering - 1.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 1.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 27 2019 Dominik Mierzejewski 1.3.5-1 +- update to 1.3.5 +- update upstream location +- include SO version in files list to avoid unexpected bumps +- use modern macros +- drop obsolete comments + +* Sun Feb 03 2019 Fedora Release Engineering - 1.3.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.3.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 1.3.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.3.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.3.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.3.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 1.3.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 1.3.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 1.3.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 1.3.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Feb 22 2014 Dominik Mierzejewski 1.3.4-3 +- add ?_isa to dependencies + +* Sun Nov 03 2013 Dominik Mierzejewski 1.3.4-2 +- make make verbose +- run ldconfig for libs +- convert README to UTF-8 + +* Wed Oct 30 2013 Dominik Mierzejewski 1.3.4-1 +- switch to new upstream +- update to 1.3.4 +- split libs and devel subpackages +- call autoreconf to fix rpath issue + +* Thu Oct 17 2013 Dominik Mierzejewski 1.3.2-1 +- initial build