diff --git a/.gitignore b/.gitignore
index db06dd6..0b287b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ protobuf-2.3.0.tar.bz2
/protobuf-2.4.1.tar.bz2
/protobuf-2.5.0.tar.bz2
/protobuf-2.6.0.tar.bz2
+/protobuf-2.6.1.tar.bz2
diff --git a/protobuf-2.5.0-emacs-24.4.patch b/protobuf-2.5.0-emacs-24.4.patch
new file mode 100644
index 0000000..a29c5b9
--- /dev/null
+++ b/protobuf-2.5.0-emacs-24.4.patch
@@ -0,0 +1,17 @@
+Fix build with emacs-24.4.
+
+http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18845
+
+--- protobuf-2.5.0/editors/protobuf-mode.el
++++ protobuf-2.5.0/editors/protobuf-mode.el
+@@ -66,6 +66,10 @@
+ (require 'cc-mode)
+
+ (eval-when-compile
++ (and (= emacs-major-version 24)
++ (>= emacs-minor-version 4)
++ (null emacs-repository-version)
++ (require 'cl))
+ (require 'cc-langs)
+ (require 'cc-fonts))
+
diff --git a/protobuf-2.6.0-java-fixes.patch b/protobuf-2.6.0-java-fixes.patch
deleted file mode 100644
index b116235..0000000
--- a/protobuf-2.6.0-java-fixes.patch
+++ /dev/null
@@ -1,209 +0,0 @@
---- protobuf-2.6.0/java/pom.xml.orig 2014-08-25 15:52:36.000000000 -0400
-+++ protobuf-2.6.0/java/pom.xml 2014-11-06 13:12:04.459524614 -0500
-@@ -1,160 +1,79 @@
-
-
- 4.0.0
--
-- com.google
-- google
-- 1
--
- com.google.protobuf
- protobuf-java
- 2.6.0
- bundle
- Protocol Buffer Java API
-
- Protocol Buffers are a way of encoding structured data in an efficient yet
- extensible format.
-
- 2008
- http://code.google.com/p/protobuf
-
-
- New BSD license
- http://www.opensource.org/licenses/bsd-license.php
- repo
-
-
-
- http://code.google.com/p/protobuf/source/browse
-
- scm:svn:http://protobuf.googlecode.com/svn/trunk/
-
-
--
--
-- junit
-- junit
-- 4.4
-- test
--
--
-- org.easymock
-- easymock
-- 2.2
-- test
--
--
-- org.easymock
-- easymockclassextension
-- 2.2.1
-- test
--
--
-
-
-
- maven-compiler-plugin
-
- 1.5
- 1.5
-
-
-
-- maven-surefire-plugin
--
--
-- **/*Test.java
--
--
--
--
- maven-antrun-plugin
-
-
- generate-sources
- generate-sources
-
-
-
-
-
-
-
-
-
- target/generated-sources
-
-
- run
-
-
--
-- generate-test-sources
-- generate-test-sources
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
-- target/generated-test-sources
--
--
-- run
--
--
-
-
-
- org.apache.felix
- maven-bundle-plugin
- true
-
-
- http://code.google.com/p/protobuf
- com.google.protobuf
- com.google.protobuf;version=2.5.0
-
-
-
-
-
-
-
- lite
-
-@@ -173,45 +92,33 @@
- **/Internal.java
- **/InvalidProtocolBufferException.java
- **/LazyStringArrayList.java
- **/LazyStringList.java
- **/MessageLite.java
- **/MessageLiteOrBuilder.java
- **/SmallSortedMap.java
- **/UninitializedMessageException.java
- **/UnmodifiableLazyStringList.java
- **/WireFormat.java
- **/Parser.java
- **/AbstractParser.java
- **/BoundedByteString.java
- **/LiteralByteString.java
- **/RopeByteString.java
- **/Utf8.java
- **/LazyField.java
- **/LazyFieldLite.java
- **/ProtocolStringList.java
-
--
-- **/LiteTest.java
-- **/*Lite.java
--
--
--
--
-- maven-surefire-plugin
--
--
-- **/LiteTest.java
--
-
-
-
- maven-jar-plugin
-
- lite
-
-
-
-
-
-
-
diff --git a/protobuf.spec b/protobuf.spec
index 24f7c97..6a41460 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -5,32 +5,29 @@
# Don't require gtest
%bcond_with gtest
-%if %{with python}
-%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
-%endif
-
%global emacs_version %(pkg-config emacs --modversion)
%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
%global emacs_startdir %(pkg-config emacs --variable sitestartdir)
Summary: Protocol Buffers - Google's data interchange format
Name: protobuf
-Version: 2.6.0
-Release: 4%{?dist}
+Version: 2.6.1
+Release: 1%{?dist}
License: BSD
Group: Development/Libraries
-Source: http://protobuf.googlecode.com/files/protobuf-%{version}.tar.bz2
+Source: https://github.com/google/protobuf/releases/download/v%{version}/protobuf-%{version}.tar.bz2
Source1: ftdetect-proto.vim
Source2: protobuf-init.el
+Patch0: protobuf-2.5.0-emacs-24.4.patch
Patch1: protobuf-2.5.0-fedora-gtest.patch
-Patch2: protobuf-2.6.0-java-fixes.patch
-URL: http://code.google.com/p/protobuf/
+URL: https://github.com/google/protobuf
BuildRequires: automake autoconf libtool pkgconfig zlib-devel
BuildRequires: emacs(bin)
BuildRequires: emacs-el >= 24.1
%if %{with gtest}
BuildRequires: gtest-devel
%endif
+BuildRequires: mvn(org.easymock:easymock)
%description
Protocol Buffers are a way of encoding structured data in an efficient
@@ -69,7 +66,7 @@ C++ headers and libraries
%package static
Summary: Static development files for %{name}
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Static libraries for Protocol Buffers
@@ -117,6 +114,8 @@ Summary: Python bindings for Google Protocol Buffers
Group: Development/Languages
BuildRequires: python-devel
BuildRequires: python-setuptools
+# For tests
+BuildRequires: python-google-apputils
Conflicts: %{name}-compiler > %{version}
Conflicts: %{name}-compiler < %{version}
@@ -178,13 +177,15 @@ This package contains the API documentation for %{name}-java.
%prep
%setup -q
+%patch0 -p1 -b .emacs
%if %{with gtest}
rm -rf gtest
%patch1 -p1 -b .gtest
%endif
chmod 644 examples/*
%if %{with java}
-%patch2 -p1 -b .java-fixes
+%pom_remove_parent java/pom.xml
+%pom_remove_dep org.easymock:easymockclassextension java/pom.xml
rm -rf java/src/test
%endif
@@ -214,7 +215,7 @@ popd
emacs -batch -f batch-byte-compile editors/protobuf-mode.el
%check
-#make %{?_smp_mflags} check
+make %{?_smp_mflags} check
%install
rm -rf %{buildroot}
@@ -252,18 +253,17 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
%postun compiler -p /sbin/ldconfig
%files
-%defattr(-, root, root, -)
%{_libdir}/libprotobuf.so.*
-%doc CHANGES.txt CONTRIBUTORS.txt COPYING.txt README.txt
+%doc CHANGES.txt CONTRIBUTORS.txt README.md
+%license LICENSE
%files compiler
-%defattr(-, root, root, -)
%{_bindir}/protoc
%{_libdir}/libprotoc.so.*
-%doc COPYING.txt README.txt
+%doc README.md
+%license LICENSE
%files devel
-%defattr(-, root, root, -)
%dir %{_includedir}/google
%{_includedir}/google/protobuf/
%{_libdir}/libprotobuf.so
@@ -272,26 +272,21 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
%doc examples/add_person.cc examples/addressbook.proto examples/list_people.cc examples/Makefile examples/README.txt
%files static
-%defattr(-, root, root, -)
%{_libdir}/libprotobuf.a
%{_libdir}/libprotoc.a
%files lite
-%defattr(-, root, root, -)
%{_libdir}/libprotobuf-lite.so.*
%files lite-devel
-%defattr(-, root, root, -)
%{_libdir}/libprotobuf-lite.so
%{_libdir}/pkgconfig/protobuf-lite.pc
%files lite-static
-%defattr(-, root, root, -)
%{_libdir}/libprotobuf-lite.a
%if %{with python}
%files python
-%defattr(-, root, root, -)
%dir %{python_sitelib}/google
%{python_sitelib}/google/protobuf/
%{python_sitelib}/protobuf-%{version}-py2.?.egg-info/
@@ -301,29 +296,34 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
%endif
%files vim
-%defattr(-, root, root, -)
%{_datadir}/vim/vimfiles/ftdetect/proto.vim
%{_datadir}/vim/vimfiles/syntax/proto.vim
%files emacs
-%defattr(-,root,root,-)
%{emacs_startdir}/protobuf-init.el
%{emacs_lispdir}/protobuf-mode.elc
%files emacs-el
-%defattr(-,root,root,-)
%{emacs_lispdir}/protobuf-mode.el
%if %{with java}
%files java -f java/.mfiles
-%defattr(-, root, root, -)
%doc examples/AddPerson.java examples/ListPeople.java
%files javadoc -f java/.mfiles-javadoc
-%defattr(-, root, root, -)
%endif
%changelog
+* Mon Apr 6 2015 Orion Poplawski - 2.6.1-1
+- Update to 2.6.1
+- New URL
+- Cleanup spec
+- Add patch to fix emacs compilation with emacs 24.4
+- Drop java-fixes patch, use pom macros instead
+- Add BR on python-google-apputils and mvn(org.easymock:easymock)
+- Run make check
+- Make -static require -devel (bug #1067475)
+
* Thu Mar 26 2015 Kalev Lember - 2.6.0-4
- Rebuilt for GCC 5 ABI change
diff --git a/sources b/sources
index 928a5ea..c3bc013 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-78253c509a055dab316a21e754cb278a protobuf-2.6.0.tar.bz2
+11aaac2d704eef8efd1867a807865d85 protobuf-2.6.1.tar.bz2