%global _legacy_common_support 1 Name: libtpcmisc Version: 1.4.8 Release: 28%{?dist} Summary: Miscellaneous PET functions License: LGPLv2+ URL: http://www.turkupetcentre.net/software/libdoc/%{name}/index.html Source0: http://www.turkupetcentre.net/software/libsrc/%{name}_1_4_8_src.zip Patch0: %{name}-shared.patch BuildRequires: doxygen dos2unix graphviz gcc BuildRequires: make %description Former libpet, the common PET C library, has been divided up in smaller sub-libraries that each handle a specific task. This library includes miscellaneous functions utilized in PET data processing. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package static Summary: Static libraries for %{name} %description static This package contains static libraries for %{name}. %prep %setup -q -n %{name} %patch0 -p1 -b .shared sed -i "/^CFLAGS/d" Makefile # Fix encodings and line endings. dos2unix -k History Readme iconv -f ISO_8859-1 -t utf8 -o History.new History && mv -f History.new History %build # c99 standard since they use declarations in the for loops export CFLAGS="%{optflags} -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L" export CXXFLAGS="%{optflags} -fPIC -DPIC" make %{?_smp_mflags} # Build doxygen documentation mkdir doc ( cat Doxyfile ; echo "OUTPUT_DIRECTORY=./doc" ) | doxygen - %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_libdir} install -d $RPM_BUILD_ROOT%{_includedir}/%{name} install -d $RPM_BUILD_ROOT%{_bindir} install -p -m 0755 %{name} -t $RPM_BUILD_ROOT%{_bindir}/ install -p -m 0644 %{name}.a -t $RPM_BUILD_ROOT%{_libdir}/ install -p -m 0755 %{name}.so.0.0.0 -t $RPM_BUILD_ROOT%{_libdir}/ install -p -m 0644 include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/ pushd $RPM_BUILD_ROOT%{_libdir}/ ln -s %{name}.so.0.0.0 %{name}.so.0 ln -s %{name}.so.0.0.0 %{name}.so popd %ldconfig_scriptlets %files %doc History Readme %{_bindir}/%{name} %{_libdir}/%{name}.so.* %files devel %doc doc/%{name}/* %{_libdir}/%{name}.so %{_includedir}/* %files static %{_libdir}/%{name}.a %changelog * Thu Jul 21 2022 Fedora Release Engineering - 1.4.8-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.4.8-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.4.8-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.4.8-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Aug 07 2020 Jeff Law - 1.4.8-24 - Enable _legacy_common_support * Sat Aug 01 2020 Fedora Release Engineering - 1.4.8-23 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.4.8-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.4.8-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.4.8-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.4.8-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.4.8-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Mar 10 2018 Ankur Sinha - 1.4.8-17 - Add gcc to BR * Wed Feb 07 2018 Fedora Release Engineering - 1.4.8-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.4.8-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.4.8-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.4.8-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.4.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.4.8-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.4.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.4.8-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.4.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.4.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 1.4.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 06 2012 Ankur Sinha - 1.4.8-5 - spec bump for gcc 4.7 rebuild * Mon Aug 08 2011 Tom Callaway - 1.4.8-4 - build shared libraries with PIC - put static lib in subpackage * Mon Aug 01 2011 Ankur Sinha - 1.4.8-3 - Add graphviz to BR * Sun Jul 31 2011 Ankur Sinha - 1.4.8-2 - Changes that Richard made: - Add more documentation - Fix line endings and encoding - Add architecture specific requires - https://bugzilla.redhat.com/show_bug.cgi?id=714326#c2 * Fri Jun 17 2011 Ankur Sinha - 1.4.8-1 - initial rpm build