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 | # 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 7 Name: protobuf Version: 2.4.1 Release: alt2 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 Patch2: protobuf-2.4.1-java-fixes.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 %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 BuildArch: noarch %description -n python-module-%name Python bindings for protocol buffers %if_with java %package java Summary: Java Protocol Buffers runtime library Group: Development/Java BuildRequires: jpackage-core BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-antrun-plugin BuildRequires: maven-doxia BuildRequires: maven-doxia-sitetools Requires: java Requires: jpackage-utils Conflicts: %{name}-compiler > %{version} Conflicts: %{name}-compiler < %{version} %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 java %patch2 -p1 -b .java-fixes rm -rf java/src/test %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 popd %if_with java pushd java mvn-rpmbuild install javadoc:javadoc popd %endif %install %makeinstall_std mkdir -p %buildroot%python_sitelibdir/google/ pushd python %python_install --optimize=2 --record=INSTALLED_FILES popd %if_with java pushd java install -d -m 755 %{buildroot}%{_javadir} install -pm 644 target/%{name}-java-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{name} install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar %endif %files compiler %_bindir/protoc %files -n lib%{name}%{soversion} %doc CONTRIBUTORS.txt README.txt 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/ %if_with java %files java %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %{_javadir}/%{name}.jar %doc examples/AddPerson.java examples/ListPeople.java %files javadoc %{_javadocdir}/%{name} %endif %changelog * 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) |