[12457] | 1 | %undefine __cmake_in_source_build |
---|
| 2 | |
---|
| 3 | Name: uchardet |
---|
| 4 | Version: 0.0.6 |
---|
| 5 | Release: 12%{?_dist_release} |
---|
| 6 | Summary: An encoding detector library ported from Mozilla |
---|
| 7 | Group: system |
---|
| 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
| 10 | |
---|
| 11 | License: MPLv1.1 |
---|
| 12 | URL: https://www.freedesktop.org/wiki/Software/%{name} |
---|
| 13 | Source0: https://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.xz |
---|
| 14 | |
---|
| 15 | BuildRequires: gcc |
---|
| 16 | BuildRequires: gcc-c++ |
---|
| 17 | BuildRequires: cmake |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Uchardet is a C language binding of the original C++ implementation of the |
---|
| 21 | universal charset detection library by Mozilla. Uchardet is an encoding |
---|
| 22 | detector library, which takes a sequence of bytes in an unknown character |
---|
| 23 | encoding without any additional information, and attempts to determine the |
---|
| 24 | encoding of the text. |
---|
| 25 | |
---|
| 26 | %package devel |
---|
| 27 | Summary: Development files for %{name} |
---|
| 28 | Group: programming |
---|
| 29 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | The %{name}-devel package contains headers and shared libraries |
---|
| 33 | for developing tools for uchardet. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %autosetup |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %build |
---|
| 41 | mkdir -p build |
---|
| 42 | pushd build |
---|
| 43 | %cmake \ |
---|
| 44 | -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
---|
| 45 | -DBUILD_STATIC=OFF \ |
---|
| 46 | .. |
---|
| 47 | make %{?_smp_mflags} |
---|
| 48 | popd |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | %install |
---|
| 52 | pushd build |
---|
| 53 | make DESTDIR=%{buildroot} install |
---|
| 54 | popd |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %check |
---|
| 58 | pushd build |
---|
| 59 | ctest -VV \ |
---|
| 60 | %ifarch %{ix86} |
---|
| 61 | || : |
---|
| 62 | %else |
---|
| 63 | ; |
---|
| 64 | %endif |
---|
| 65 | popd |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %post -p /sbin/ldconfig |
---|
| 69 | %postun -p /sbin/ldconfig |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %files |
---|
| 73 | %license COPYING |
---|
| 74 | %doc AUTHORS |
---|
| 75 | %{_bindir}/%{name} |
---|
| 76 | %{_libdir}/lib%{name}.so.* |
---|
| 77 | %{_mandir}/man1/%{name}.1* |
---|
| 78 | |
---|
| 79 | %files devel |
---|
| 80 | %{_includedir}/%{name}/ |
---|
| 81 | %{_libdir}/lib%{name}.so |
---|
| 82 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %changelog |
---|
| 86 | * Sat Aug 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.0.6-12 |
---|
| 87 | - initial build for Vine Linux. |
---|
| 88 | |
---|
| 89 | * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-11 |
---|
| 90 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
---|
| 91 | |
---|
| 92 | * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-10 |
---|
| 93 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
---|
| 94 | |
---|
| 95 | * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-9 |
---|
| 96 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
---|
| 97 | |
---|
| 98 | * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-8 |
---|
| 99 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 100 | |
---|
| 101 | * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-7 |
---|
| 102 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 103 | |
---|
| 104 | * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-6 |
---|
| 105 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
| 106 | |
---|
| 107 | * Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.6-5 |
---|
| 108 | - Switch to %%ldconfig_scriptlets |
---|
| 109 | |
---|
| 110 | * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-4 |
---|
| 111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
---|
| 112 | |
---|
| 113 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3 |
---|
| 114 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 115 | |
---|
| 116 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-2 |
---|
| 117 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 118 | |
---|
| 119 | * Thu Dec 22 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.6-1 |
---|
| 120 | - update version to 0.0.6 |
---|
| 121 | - changed upstream url |
---|
| 122 | |
---|
| 123 | * Thu Jul 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-4 |
---|
| 124 | - Rebuild for f23 to fix i686 |
---|
| 125 | |
---|
| 126 | * Fri Feb 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-3 |
---|
| 127 | - Fixup summary in devel subpkg |
---|
| 128 | |
---|
| 129 | * Mon Feb 08 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-2 |
---|
| 130 | - Fix building on i686 properly |
---|
| 131 | |
---|
| 132 | * Sat Feb 6 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.5-1 |
---|
| 133 | - update version to 0.0.5 |
---|
| 134 | |
---|
| 135 | * Fri Nov 20 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.3-1 |
---|
| 136 | - update version to 0.0.3 |
---|
| 137 | - add tests |
---|
| 138 | |
---|
| 139 | * Thu Oct 1 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.1-5 |
---|
| 140 | - remove macros srcname and sum |
---|
| 141 | |
---|
| 142 | * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.1-4 |
---|
| 143 | - fix enable debug packages |
---|
| 144 | - fix add flag verbose for make |
---|
| 145 | - fix change in build |
---|
| 146 | - fix remove in libs from files |
---|
| 147 | - fix add change for libs in post/postun |
---|
| 148 | - fix version on 0.0.1 from git |
---|
| 149 | - added macros |
---|
| 150 | |
---|
| 151 | * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-3 |
---|
| 152 | - fix description and summary for libs and libs-devel |
---|
| 153 | |
---|
| 154 | * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-2 |
---|
| 155 | - fix version on 0.0.0 |
---|
| 156 | - fix license path |
---|
| 157 | - remove static lib |
---|
| 158 | - fix description |
---|
| 159 | - fix number packages |
---|
| 160 | |
---|
| 161 | * Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-1 |
---|
| 162 | - Initial package |
---|