Пакет libtpcmisc: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | # BEGIN SourceDeps(oneline): BuildRequires: unzip # END SourceDeps(oneline) Group: Development/C %add_optflags %optflags_shared Name: libtpcmisc Version: 1.4.8 Release: alt2_12 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 Source44: import.info %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 Group: Development/C Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package static Group: Development/C 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 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 %files %doc History Readme %{_bindir}/%{name} %{_libdir}/%{name}.so.* %files devel %doc doc/%{name}/* %{_libdir}/%{name}.so %{_includedir}/* %files static %{_libdir}/%{name}.a %changelog * Mon Feb 15 2016 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_12 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_11 - update to new release by fcimport * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_10 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_9 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_8 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_7 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_6 - update to new release by fcimport * Wed Jan 11 2012 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_5 - update to new release by fcimport * Fri Dec 23 2011 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt2_4 - spec cleanup thanks to ldv@ * Sat Dec 17 2011 Igor Vlasenko <viy@altlinux.ru> 1.4.8-alt1_4 - initial import by fcimport |