Name: uncrustify Version: 0.63 Release: 1 Summary: Reformat Source Group: Development/Tools License: GPLv2 URL: http://uncrustify.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/uncrustify/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf BuildRequires: gcc >= 4.5.4-1 BuildRequires: gcc-c++ >= 4.5.4-1 BuildRequires: libstdc++-devel >= 4.5.4-1 Requires: libgcc >= 4.5.4-1 Requires: libstdc++ >= 4.5.4-1 %description Source Code Beautifier for C, C++, C#, D, Java, and Pawn %prep %setup -q %patch0 %build export CFLAGS="-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include" export CXXFLAGS="$CFLAGS" export CC="gcc -D_LARGE_FILES" export CXX="g++ -D_LARGE_FILES" export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" autoreconf ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc COPYING AUTHORS README.md NEWS %doc documentation %{_bindir}/* %{_datadir}/%{name} %{_mandir}/man1/* /usr/bin/* %changelog * Wed Jun 13 2018 Michael Perzl - 0.63-1 - updated to version 0.63 * Wed Jun 13 2018 Michael Perzl - 0.62-1 - updated to version 0.62 * Thu Apr 02 2015 Michael Perzl - 0.61-1 - updated to version 0.61 * Tue Jan 08 2013 Michael Perzl - 0.60-1 - updated to version 0.60 * Fri Nov 04 2011 Michael Perzl - 0.59-1 - first version for AIX V5.1 and higher