Changeset 1807 for spec/trunk/SPECS
- Timestamp:
- Apr 10, 2022, 8:26:25 PM (4 years ago)
- Location:
- spec/trunk/SPECS
- Files:
-
- 3 edited
-
cmake/macros.cmake (modified) (4 diffs)
-
jsoncpp.spec (modified) (4 diffs)
-
libsndfile.spec (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/cmake/macros.cmake
r1800 r1807 2 2 # Macros for cmake 3 3 # 4 %_cmake_lib_suffix64 -DLIB_SUFFIX=64 4 5 %_cmake_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON 5 6 %_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON 6 7 %_cmake_version @@CMAKE_VERSION@@ 7 %__cmake /@unixroot/usr/bin/cmake 8 %__cmake /usr/bin/cmake 9 %__ctest /usr/bin/ctest 10 %__cmake_builddir %{!?__cmake_in_source_build:%{_vpath_builddir}}%{?__cmake_in_source_build:.} 8 11 9 12 # - Set default compile flags … … 11 14 # and default to -O3 -DNDEBUG. Strip the -O3 so we can override with *FLAGS 12 15 # - Turn on verbose makefiles so we can see and verify compile flags 16 # - Turn off stripping by default so RPM can do it separately 13 17 # - Set default install prefixes and library install directories 14 18 # - Turn on shared libraries by default 15 19 %cmake \ 20 %if 0%{?set_build_flags:1} \ 21 %set_build_flags \ 22 %else \ 16 23 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ 17 24 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ … … 19 26 FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \ 20 27 %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \ 28 %endif \ 21 29 %__cmake \\\ 30 %{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\ 31 %{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\ 22 32 -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ 23 33 -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ 24 34 -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ 25 35 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\ 36 -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \\\ 26 37 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\ 27 38 -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\ … … 29 40 -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\ 30 41 -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\ 31 %{?_cmake_shared_libs} 42 %if "%{?_lib}" == "lib64" \ 43 %{?_cmake_lib_suffix64} \\\ 44 %endif \ 45 %{?_cmake_shared_libs} 46 47 %cmake_build \ 48 %__cmake --build "%{__cmake_builddir}" %{?_smp_mflags} --verbose 49 50 %cmake_install \ 51 DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}" 52 53 %ctest(:-:) \ 54 cd "%{__cmake_builddir}" \ 55 %__ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} %{**} \ 56 cd - 57 32 58 33 59 %cmake@@CMAKE_MAJOR_VERSION@@ %cmake 60 %cmake@@CMAKE_MAJOR_VERSION@@_build %cmake_build 61 %cmake@@CMAKE_MAJOR_VERSION@@_install %cmake_install 62 %ctest@@CMAKE_MAJOR_VERSION@@(:-:) %ctest %{**} -
spec/trunk/SPECS/jsoncpp.spec
r1732 r1807 13 13 14 14 Name: jsoncpp 15 Version: 1.9. 415 Version: 1.9.5 16 16 Release: 1%{?dist} 17 17 Summary: JSON library implemented in C++ … … 28 28 BuildRequires: gcc 29 29 BuildRequires: gcc-c++ 30 %if !0%{?os2_version}31 30 BuildRequires: python3-devel 32 %endif33 31 34 32 %description … … 84 82 85 83 %cmake \ 86 -DBUILD_STATIC_LIBS:BOOL=OFF \ 87 -DBUILD_OBJECT_LIBS:BOOL=OFF \ 84 -DBUILD_SHARED=true \ 88 85 -DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON \ 89 86 -DJSONCPP_WITH_EXAMPLE:BOOL=OFF \ … … 93 90 -DJSONCPP_WITH_TESTS:BOOL=ON \ 94 91 -DJSONCPP_WITH_WARNING_AS_ERROR:BOOL=OFF \ 92 -DPYTHON_EXECUTABLE:STRING="%{__python3}" \ 95 93 .. 96 94 97 95 %if !0%{?os2_version} 98 -DPYTHON_EXECUTABLE:STRING="%{__python3}"99 96 %cmake_build 100 97 %else -
spec/trunk/SPECS/libsndfile.spec
r1768 r1807 1 1 Summary: Library for reading and writing sound files 2 2 Name: libsndfile 3 Version: 1. 0.314 Release: 2%{?dist}3 Version: 1.1.0 4 Release: 1%{?dist} 5 5 License: LGPLv2+ and GPLv2+ and BSD 6 6 URL: http://libsndfile.github.io/libsndfile/ … … 8 8 Source0: https://github.com/libsndfile/libsndfile/releases/download/%{version}/libsndfile-%{version}.tar.bz2 9 9 %else 10 %scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2 11 %endif 12 10 %scm_source github https://github.com/TeLLie/libsndfile-os2 %{version}-os2 11 %endif 13 12 %if !0%{?os2_version} 14 13 Patch0: libsndfile-1.0.25-system-gsm.patch 15 14 Patch1: libsndfile-1.0.25-zerodivfix.patch 16 %endif 17 18 %if !0%{?os2_version} 15 # from upstream, fix #1984320=CVE-2021-3246, for <= 1.0.31 16 Patch2: libsndfile-1.0.31-deb669ee.patch 17 # from upstream, fix #2027692, for <= 1.0.31 18 Patch3: libsndfile-1.0.31-ced91d7b.patch 19 %endif 19 20 BuildRequires: gcc-c++ 21 %if !0%{?os2_version} 20 22 BuildRequires: alsa-lib-devel 21 23 %endif … … 31 33 BuildRequires: libtool 32 34 BuildRequires: make 33 %if !0%{?os2_version}34 35 BuildRequires: python3 35 %endif 36 BuildRequires: opus-devel 37 36 38 37 39 %description … … 64 66 This package contains command line utilities for libsndfile. 65 67 66 %debug67 68 68 69 %prep 69 70 %if !0%{?os2_version} 70 71 %setup -q 71 %else72 %scm_setup73 %endif74 %if !0%{?os2_version}75 72 %patch0 -p1 -b .system-gsm 76 73 rm -r src/GSM610 74 %else 75 %scm_setup 76 %endif 77 77 # TODO: check if this patch is still needed 78 %if !0%{?os2_version} 78 79 %patch1 -p1 -b .zerodivfix 80 %patch2 -p1 -b .deb669ee 81 %patch3 -p1 -b .ced91d7b 79 82 %endif 80 83 … … 82 85 %if !0%{?os2_version} 83 86 autoreconf -I M4 -fiv # for system-gsm patch 84 %endif85 86 %if !0%{?os2_version}87 87 %configure \ 88 88 --disable-dependency-tracking \ … … 101 101 -DCMAKE_BUILD_TYPE=Release \ 102 102 -Wno-dev \ 103 -DBUILD_TESTING=ON \104 103 .. 104 %endif 105 105 # Get rid of rpath 106 106 %if !0%{?os2_version} … … 109 109 %endif 110 110 111 %if !0%{?os2_version} 112 %make_build 113 %else 111 114 make %{?_smp_mflags} 112 115 %endif 113 116 114 117 %install 115 make install DESTDIR=$RPM_BUILD_ROOT 118 %make_install -C build 116 119 rm -rf __docs 117 120 mkdir __docs … … 120 123 find %{buildroot} -type f -name "*.la" -delete 121 124 122 123 125 # fix multilib issues 124 %if !0%{?os2_version}125 126 mv %{buildroot}%{_includedir}/sndfile.h \ 126 127 %{buildroot}%{_includedir}/sndfile-%{__isa_bits}.h … … 135 136 #else 136 137 # error "unexpected value for __WORDSIZE macro" 138 #endif 137 139 EOF 138 %endif 139 140 %if !0%{?os2_version} 141 %if 0%{?rhel} != 0 140 141 %if 0%{?rhel} != 0 || !0%{?os2_version} 142 142 rm -f %{buildroot}%{_bindir}/sndfile-jackplay 143 143 %endif 144 %endif 144 145 145 146 146 %check 147 LD_LIBRARY_PATH=$PWD/src/.libs make check 147 %if 0%{?os2_version} 148 LD_LIBRARY_PATH=$PWD/build 149 %endif 150 cd build 151 make -k test 152 148 153 149 154 %if !0%{?os2_version} … … 174 179 %{_bindir}/sndfile-salvage 175 180 %else 176 %{_bindir}/*.exe 181 %{_bindir}/sndfile-cmp.exe 182 %{_bindir}/sndfile-concat.exe 183 %{_bindir}/sndfile-convert.exe 184 %{_bindir}/sndfile-deinterleave.exe 185 %{_bindir}/sndfile-info.exe 186 %{_bindir}/sndfile-interleave.exe 187 %{_bindir}/sndfile-metadata-get.exe 188 %{_bindir}/sndfile-metadata-set.exe 189 %{_bindir}/sndfile-play.exe 190 %{_bindir}/sndfile-salvage.exe 177 191 %endif 178 192 %{_mandir}/man1/sndfile-cmp.1* … … 197 211 %{_libdir}/*.a 198 212 %endif 213 %dir %{_libdir}/cmake/SndFile 214 %{_libdir}/cmake/SndFile/SndFileTargets-release.cmake 215 %{_libdir}/cmake/SndFile/SndFileConfig.cmake 216 %{_libdir}/cmake/SndFile/SndFileConfigVersion.cmake 217 %{_libdir}/cmake/SndFile/SndFileTargets.cmake 199 218 %{_libdir}/pkgconfig/sndfile.pc 200 219 201 220 202 221 %changelog 222 * Sun Apr 10 2022 Elbert Pol <elbert.pol@gmail.com> - 1.0.1-1 223 - Updated to latest version 224 203 225 * Sun Jan 31 2021 Elbert Pol <elbert.pol@gmail.com> - 1.0.21-2 204 226 - Update the spec more to Fedora style
Note:
See TracChangeset
for help on using the changeset viewer.
