diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..675f9cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/protobuf-c-1.0.2.tar.gz diff --git a/.protobuf-c.metadata b/.protobuf-c.metadata new file mode 100644 index 0000000..88b3825 --- /dev/null +++ b/.protobuf-c.metadata @@ -0,0 +1 @@ +f831f98a1142fdd3072b329fdc3b30533be67f48 SOURCES/protobuf-c-1.0.2.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/protobuf-c.spec b/SPECS/protobuf-c.spec new file mode 100644 index 0000000..fb75912 --- /dev/null +++ b/SPECS/protobuf-c.spec @@ -0,0 +1,123 @@ +Name: protobuf-c +Version: 1.0.2 +Release: 2%{?dist} +Summary: C bindings for Google's Protocol Buffers + + +Group: System Environment/Libraries +License: BSD +URL: https://github.com/protobuf-c/protobuf-c +Source0: https://github.com/protobuf-c/protobuf-c/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: protobuf-devel + +%description +Protocol Buffers are a way of encoding structured data in an efficient yet +extensible format. This package provides a code generator and run-time +libraries to use Protocol Buffers from pure C (not C++). + +%package compiler +Summary: Protocol Buffers C compiler +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description compiler +This package contains a modified version of the Protocol Buffers +compiler for the C programming language called protoc-c. + +%package devel +Summary: Protocol Buffers C headers and libraries +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: %{name}-compiler = %{version}-%{release} + +%description devel +This package contains protobuf-c headers and libraries. + +%prep +%setup -q + +%build +%configure --disable-static +# disabled parallel build due to https://github.com/protobuf-c/protobuf-c/issues/156 +make + +%check +make check + +%install +make install DESTDIR=$RPM_BUILD_ROOT +rm -f $RPM_BUILD_ROOT/%{_libdir}/libprotobuf-c.la + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%{_libdir}/libprotobuf-c.so.* +%doc TODO LICENSE ChangeLog + +%files compiler +%defattr(-,root,root,-) +%{_bindir}/protoc-c + +%files devel +%defattr(-,root,root,-) +%dir %{_includedir}/google +%{_includedir}/protobuf-c +%{_includedir}/google/protobuf-c +%{_libdir}/libprotobuf-c.so +%{_libdir}/pkgconfig/libprotobuf-c.pc + +%changelog +* Mon Aug 17 2015 Adrian Reber - 1.0.2-2 +- remove 'ExcludeArch' hack + +* Fri Jul 17 2015 Adrian Reber - 1.0.2-1 +- new upstream release +- split off protoc-c into protobuf-c-compiler to reduce runtime + dependencies of the main package + +* Wed Aug 06 2014 Nikos Mavrogiannopoulos - 1.0.1-1 +- new upstream release + +* Mon Aug 04 2014 Nikos Mavrogiannopoulos - 1.0.0-1 +- new upstream release (#1126116) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.15-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.15-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Mar 11 2013 David Robinson - 0.15-7 +- rebuilt for protobuf-2.5.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.15-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Jun 12 2011 David Robinson - 0.15-3 +- rebuilt for protobuf-2.4.1 + +* Sun Apr 24 2011 David Robinson - 0.15-2 +- Spec file cleanup + +* Wed Apr 20 2011 David Robinson - 0.15-1 +- New upstream release +- Spec file cleanup + +* Mon Jan 17 2011 Bobby Powers - 0.14-1 +- New upstream release +- Removed -devel dependency on protobuf-devel +- Small specfile cleanups + +* Wed May 19 2010 David Robinson - 0.13-2 +- Spec file cleanup + +* Wed May 19 2010 David Robinson - 0.13-1 +- Initial packaging