Package protobuf: 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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | # find-requires: message.h:112:18: fatal error: vector: No such file or directory %add_findreq_skiplist /usr/include/google/protobuf/message.h %add_findprov_skiplist /usr/include/google/protobuf/message.h %def_with java %define soversion 9 %def_with python3 Name: protobuf Version: 2.6.1 Release: alt1.1 Summary: Protocol Buffers - Google's data interchange format License: Apache License 2.0 Group: System/Libraries Url: http://code.google.com/p/protobuf/ Packager: Mikhail A Pokidko <pma@altlinux.ru> Source: %name-%version.tar Patch: %name-%version-%release.patch Obsoletes: libprotobuf <= 2.0.0-alt1 # Automatically added by buildreq on Wed Nov 19 2008 BuildRequires: gcc-c++ python-devel libnumpy-devel zlib-devel BuildPreReq: python-module-setuptools-tests BuildPreReq: python-module-google-apputils BuildPreReq: python-module-mox python-module-mox python-module-dateutil BuildPreReq: python-module-pytz python-module-gflags %if_with python3 BuildRequires(pre): rpm-build-python3 BuildPreReq: python3-devel libnumpy-py3-devel BuildPreReq: python3-module-setuptools-tests python-tools-2to3 BuildPreReq: python3-module-google-apputils BuildPreReq: python3-module-mox python3-module-mox python3-module-dateutil BuildPreReq: python3-module-pytz python3-module-gflags %endif %description Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats. %package compiler Summary: Protocol Buffers Compiler Group: Development/Other Requires: lib%{name}%{soversion} = %version-%release %description compiler Compiler for protocol buffer definition files %package -n lib%{name}%{soversion} Summary: Protocol Buffer c++ library. Group: System/Libraries Provides: libprotobuf = %version-%release %description -n lib%{name}%{soversion} Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats. %package -n lib%{name}%{soversion}-lite Summary: Protocol Buffers LITE_RUNTIME libraries Group: System/Libraries Provides: libprotobuf-lite = %version-%release %description -n lib%{name}%{soversion}-lite Protocol Buffers built with optimize_for = LITE_RUNTIME. The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code which only depends libprotobuf-lite, which is much smaller than libprotobuf but lacks descriptors, reflection, and some other features. %package -n lib%{name}-devel Summary: Development files for %name Group: Development/C Requires: lib%{name}%{soversion} = %version-%release %description -n lib%{name}-devel This package contains development files required for packaging %name. %package -n lib%{name}-lite-devel Summary: Protocol Buffers LITE_RUNTIME development libraries Group: Development/C Requires: lib%{name}%{soversion}-lite = %version-%release Requires: lib%{name}-devel = %version-%release %description -n lib%{name}-lite-devel This package contains development libraries built with optimize_for = LITE_RUNTIME. The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code which only depends libprotobuf-lite, which is much smaller than libprotobuf but lacks descriptors, reflection, and some other features. %package -n python-module-%name Summary: Python module files for %name Group: Development/Python Requires: lib%{name}%{soversion} = %version-%release %py_requires google.apputils %description -n python-module-%name Python bindings for protocol buffers %package -n python3-module-%name Summary: Python module files for %name Group: Development/Python3 Requires: lib%{name}%{soversion} = %version-%release %py3_requires google.apputils %description -n python3-module-%name Python bindings for protocol buffers %if_with java %package java Summary: Java Protocol Buffers runtime library Group: Development/Java BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: rpm-build-java java-devel-default Conflicts: %{name}-compiler > %{version} Conflicts: %{name}-compiler < %{version} # remove when xmvn will be patched to not insert this dep automatically %filter_from_requires /^java-headless/d %description java This package contains Java Protocol Buffers runtime library. %package javadoc Summary: Javadocs for %{name}-java Group: Development/Documentation BuildArch: noarch Requires: %{name}-java = %{version}-%{release} %description javadoc This package contains the API documentation for %{name}-java. %endif %prep %setup -q %patch -p1 rm -rf java/src/test # without gtest rm -rf gtest %if_with python3 cp -fR python python3 find python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + %endif %build iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8 mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt rm -f m4/{lt*,libtool*}.m4 export PTHREAD_LIBS="-lpthread" %autoreconf %configure --disable-static %make_build pushd python %python_build --cpp_implementation popd %if_with python3 pushd python3 %python3_build --cpp_implementation popd %endif %if_with java pushd java %mvn_file : %{name} %mvn_build popd %endif %install %makeinstall_std mkdir -p %buildroot%python_sitelibdir/google/ pushd python %python_install --cpp_implementation --record=INSTALLED_FILES popd %if_with python3 pushd python3 %python3_install --cpp_implementation popd %endif %if_with java pushd java %mvn_install popd %endif %files compiler %_bindir/protoc %files -n lib%{name}%{soversion} %doc CONTRIBUTORS.txt README* examples/ %_libdir/*.so.* %exclude %_libdir/libprotobuf-lite.so.* %files -n lib%{name}-devel %dir %_includedir/google/ %_includedir/google/protobuf/ %_pkgconfigdir/protobuf.pc %_libdir/*.so %exclude %_libdir/libprotobuf-lite.so %files -n lib%{name}%{soversion}-lite %_libdir/libprotobuf-lite.so.* %files -n lib%{name}-lite-devel %_libdir/libprotobuf-lite.so %_pkgconfigdir/protobuf-lite.pc %files -n python-module-%name -f python/INSTALLED_FILES #python_sitelibdir/google/ %files -n python3-module-%name %python3_sitelibdir/* %if %{with java} %files java -f java/.mfiles %doc examples/AddPerson.java examples/ListPeople.java %files javadoc -f java/.mfiles-javadoc %endif %changelog * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.6.1-alt1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Wed Feb 10 2016 Igor Vlasenko <viy@altlinux.ru> 2.6.1-alt1 - 2.6.1 * Wed Feb 10 2016 Igor Vlasenko <viy@altlinux.ru> 2.6.0-alt1.2 - NMU: java is built according to new policy (using xmvn) * Wed Jun 10 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 2.6.0-alt1.1 - Rebuilt for gcc5 C++11 ABI. * Fri Aug 29 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.6.0-alt1 - Version 2.6.0 - Added module for Python 3 * Fri Aug 08 2014 Igor Vlasenko <viy@altlinux.ru> 2.5.0-alt2 - NMU: added BuildReq: maven-local * Fri Sep 06 2013 Alexey Shabalin <shaba@altlinux.ru> 2.5.0-alt1 - 2.5.0 * Sun Sep 09 2012 Igor Vlasenko <viy@altlinux.ru> 2.4.1-alt2 - added protobuf-java subpackage (required for maven dependencies) * Thu Nov 24 2011 Alexey Shabalin <shaba@altlinux.ru> 2.4.1-alt1 - 2.4.1 * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.3.0-alt1.1.1 - Rebuild with Python-2.7 * Sun Mar 27 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.0-alt1.1 - Rebuilt for debuginfo * Mon Sep 20 2010 Alexey Shabalin <shaba@altlinux.ru> 2.3.0-alt1 - 2.3.0 - changed soname * Fri Apr 30 2010 Alexey Shabalin <shaba@altlinux.ru> 2.2.0a-alt1 - 2.2.0a - changed soname - added export PTHREAD_LIBS="-lpthread" - add libprotobuf-lite subpackage * Fri Apr 30 2010 Alexey Shabalin <shaba@altlinux.ru> 2.2.0-alt1 - 2.2.0 * Fri Feb 19 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.0-alt1.2 - Rebuild with reformed NumPy * Fri Nov 13 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.0-alt1.1 - Rebuilt with python 2.6 * Thu Jun 18 2009 Mikhail Pokidko <pma@altlinux.org> 2.1.0-alt1 - Version up. libprotobuf->libprotobuf4. Preparings for java separation. * Thu Jun 18 2009 Mikhail Pokidko <pma@altlinux.org> 2.0.2-alt2 - Fixed gcc4.4 build errors. * Mon Nov 17 2008 Mikhail Pokidko <pma@altlinux.org> 2.0.2-alt1 - Building protobuf with new subpackages structure and with python binding * Wed Jul 23 2008 Vitaly Lipatov <lav@altlinux.ru> 2.0.0-alt1 - initial build for ALT Linux Sisyphus (2.0.0 beta) |