commit 7b9ac3758409682cb1a1f3699e588ec71f6307824dffdb7891226642c519fc7d Author: Sascha Peilicke Date: Thu Sep 15 12:08:34 2011 +0000 Accepting request 81763 from server:monitoring one more try OBS-URL: https://build.opensuse.org/request/show/81763 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protobuf-c?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/protobuf-c-0.15.tar.gz b/protobuf-c-0.15.tar.gz new file mode 100644 index 0000000..ce478e0 --- /dev/null +++ b/protobuf-c-0.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036 +size 500911 diff --git a/protobuf-c-rpmlintrc b/protobuf-c-rpmlintrc new file mode 100644 index 0000000..86ba2d6 --- /dev/null +++ b/protobuf-c-rpmlintrc @@ -0,0 +1 @@ +addFilter('devel-dependency libprotobuf-c-devel') diff --git a/protobuf-c.changes b/protobuf-c.changes new file mode 100644 index 0000000..5749755 --- /dev/null +++ b/protobuf-c.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Wed Aug 31 07:11:06 UTC 2011 - coolo@suse.com + +- update to 0.15 + - make protobuf_c_message_init() into a function (Issue #49, daveb) + - Fix for freeing memory after unpacking bytes w/o a default-value. + (Andrei Nigmatulin) + - minor windows portability issues (use ProtobufC_FD) (Pop Stelian) + - --with-endianness={little,big} (Pop Stelian) + - bug setting up values of has_idle in public dispatch, + make protobuf_c_dispatch_run() use only public members (daveb) + - provide cmake support and some Windows compatibility (Nikita Manovich) + +------------------------------------------------------------------- +Wed Apr 13 22:50:53 CET 2011 - pascal.bleser@opensuse.org + +- initial version (0.14) + diff --git a/protobuf-c.spec b/protobuf-c.spec new file mode 100644 index 0000000..fb8050c --- /dev/null +++ b/protobuf-c.spec @@ -0,0 +1,122 @@ +# +# spec file for package protobuf-c +# +# Copyright (c) 2011 Pascal Bleser +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + + +Name: protobuf-c +Version: 0.15 +Release: 0 +%define soname 0 +Summary: C bindings for Google's Protocol Buffers +Source: http://protobuf-c.googlecode.com/files/protobuf-c-%{version}.tar.gz +Source99: protobuf-c-rpmlintrc +Url: http://code.google.com/p/protobuf-c/ +Group: Development/Tools/Other +License: ASL 2.0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: glibc-devel +BuildRequires: libtool +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: protobuf-devel +Requires: libprotobuf-c-devel = %{version} + +%description +This package provides a code generator and runtime libraries to use Protocol +Buffers from pure C (not C++). + +It uses a modified version of protoc called protoc-c. + +%package -n libprotobuf-c%{soname} +Summary: C bindings for Google's Protocol Buffers +Group: System/Libraries + +%description -n libprotobuf-c%{soname} +This package provides a code generator and runtime libraries to use Protocol +Buffers from pure C (not C++). + +%package -n libprotobuf-c-devel +Summary: C bindings for Google's Protocol Buffers +Group: Development/Libraries/C and C++ +Requires: libprotobuf-c%{soname} = %{version} + +%description -n libprotobuf-c-devel +This package provides a code generator and runtime libraries to use Protocol +Buffers from pure C (not C++). + +%prep +%setup -q + +%build +%if 0 +mkdir build +pushd build +export CFLAGS="%{optflags}" +cmake \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DCMAKE_INSTALL_PREFIX:PATH="%{_prefix}" \ + -DCMAKE_SKIP_RPATH=TRUE \ + -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \ + -DCMAKE_STRIP="/usr/bin/touch" \ + .. +%__make %{?_smp_flags} +popd #build +%else +%configure +%__make %{?_smp_flags} +%endif + +%install +%if 0 +pushd build +%makeinstall +popd #build +%else +%makeinstall +%endif + +%__rm "%{buildroot}%{_libdir}"/*.a +%__rm "%{buildroot}%{_libdir}"/*.la + +%post -n libprotobuf-c%{soname} -p /sbin/ldconfig + +%postun -n libprotobuf-c%{soname} -p /sbin/ldconfig + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files +%defattr(-,root,root) +%doc ChangeLog TODO +%{_bindir}/protoc-c + +%files -n libprotobuf-c%{soname} +%defattr(-,root,root) +%{_libdir}/libprotobuf-c.so.%{soname} +%{_libdir}/libprotobuf-c.so.%{soname}.* + +%files -n libprotobuf-c-devel +%defattr(-,root,root) +%dir %{_includedir}/google +%{_includedir}/google/protobuf-c +%{_libdir}/libprotobuf-c.so +%{_libdir}/pkgconfig/libprotobuf-c.pc + +%changelog