Package libpolyclipping: 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 123 124 125 126 127 | # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat BuildRequires: unzip # END SourceDeps(oneline) Group: System/Libraries %add_optflags %optflags_shared %define oldname polyclipping # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} # The Clipper C++ crystallographic library already uses the name "clipper". # The developer is fine with the choosen name. Name: libpolyclipping Version: 6.4.2 Release: alt1_17 %global so_version 22 Summary: Polygon clipping library # The entire source is BSL-1.0, except: # - The contents of Documentation/Scripts/SyntaxHighlighter/ are a.'Dual licensed # under the MIT and GPL licensesa.'. These sources do not contribute to the # binary RPMs and are removed in %%prep. License: BSL-1.0 URL: https://sourceforge.net/projects/polyclipping Source0: https://downloads.sourceforge.net/%{oldname}/clipper_ver%{version}.zip BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: ctest cmake BuildRequires: dos2unix Source44: import.info Provides: polyclipping = %{version}-%{release} %description This library primarily performs the boolean clipping operations - intersection, union, difference & xor - on 2D polygons. It also performs polygon offsetting. The library handles complex (self-intersecting) polygons, polygons with holes and polygons with overlapping co-linear edges. Input polygons for clipping can use EvenOdd, NonZero, Positive and Negative filling modes. The clipping code is based on the Vatti clipping algorithm, and outperforms other clipping libraries. %package devel Group: Development/Other Summary: Development files for %{oldname} Requires: %{name} = %{version}-%{release} Provides: polyclipping-devel = %{version}-%{release} %description devel The %{oldname}-devel package contains libraries and header files for developing applications that use %{oldname}. %prep %setup -n %{oldname}-%{version} -qc # Delete binaries find . \( -name "*.exe" -o -name "*.dll" \) -delete # Delete bundled(js-syntaxhighlighter), # https://github.com/syntaxhighlighter/syntaxhighlighter. rm -rvf Documentation/Scripts/SyntaxHighlighter # Correct line ends and encodings find . -type f -exec dos2unix -k {} \; for filename in "Third Party/perl/perl_readme.txt" README; do iconv -f iso8859-1 -t utf-8 "${filename}" > "${filename}".conv && \ touch -r "${filename}" "${filename}".conv && \ mv "${filename}".conv "${filename}" done %build pushd cpp %{fedora_v2_cmake} %fedora_v2_cmake_build popd %install pushd cpp %fedora_v2_cmake_install # Install agg header with corrected include statement sed -e 's/\.\.\/clipper\.hpp/clipper.hpp/' < cpp_agg/agg_conv_clipper.h > %{buildroot}/%{_includedir}/%{oldname}/agg_conv_clipper.h popd # viy hack sed -i -e 's/^Version: $/Version: %version/' %buildroot%{_datadir}/pkgconfig/%{oldname}.pc %files %doc --no-dereference License.txt %doc README %{_libdir}/lib%{oldname}.so.%{so_version} %{_libdir}/lib%{oldname}.so.%{so_version}.* %files devel %doc Third\ Party %{_datadir}/pkgconfig/%{oldname}.pc %{_includedir}/%{oldname}/ %{_libdir}/lib%{oldname}.so %changelog * Sat Feb 25 2023 Igor Vlasenko <viy@altlinux.org> 6.4.2-alt1_17 - update to new release by fcimport * Fri Dec 17 2021 Igor Vlasenko <viy@altlinux.org> 6.4.2-alt1_13 - update to new release by fcimport * Sun Feb 17 2019 Igor Vlasenko <viy@altlinux.ru> 6.4.2-alt1_6 - fc update * Sat Nov 25 2017 Igor Vlasenko <viy@altlinux.ru> 6.4.2-alt1_1 - new version * Sat Jun 07 2014 Igor Vlasenko <viy@altlinux.ru> 6.1.3a-alt1_2 - converted for ALT Linux by srpmconvert tools * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 5.1.6-alt1_3 - update to new release by fcimport * Mon Jul 08 2013 Igor Vlasenko <viy@altlinux.ru> 5.1.6-alt1_2 - update to new release by fcimport * Sun Apr 28 2013 Igor Vlasenko <viy@altlinux.ru> 5.1.2-alt1_1 - initial fc import |