diff --git a/jna-4.1.0-junit.patch b/jna-4.1.0-junit.patch
new file mode 100644
index 0000000..adeae5c
--- /dev/null
+++ b/jna-4.1.0-junit.patch
@@ -0,0 +1,48 @@
+diff -up ./build.xml.junit ./build.xml
+--- ./build.xml.junit 2014-03-07 12:52:05.899899902 +0100
++++ ./build.xml 2014-03-07 12:58:14.956255306 +0100
+@@ -290,7 +290,7 @@
+
+
+
+-
++
+
+
+
+@@ -486,7 +486,7 @@ osname=macosx;processor=x86;processor=x8
+
+
+
+-
++
+
+
+
+@@ -509,7 +509,7 @@ osname=macosx;processor=x86;processor=x8
+
+
+
+-
++
+
+
+
+@@ -822,7 +822,7 @@ osname=macosx;processor=x86;processor=x8
+
+
+
+-
++
+
+
+
+@@ -933,7 +933,7 @@ osname=macosx;processor=x86;processor=x8
+
+
+
+-
++
+
+
+
diff --git a/jna.spec b/jna.spec
index d698852..d600e8f 100644
--- a/jna.spec
+++ b/jna.spec
@@ -1,8 +1,6 @@
-%global innerversion 4.0
-
Name: jna
-Version: 4.0.0
-Release: 5%{?dist}
+Version: 4.1.0
+Release: 4%{?dist}
Summary: Pure Java access to native libraries
Group: Development/Libraries
@@ -15,7 +13,7 @@ URL: https://jna.dev.java.net/
# mv twall-jna-* jna-%{version}
# rm -rf jna-%{version}/{dist/*,www}
# tar cjf ~/rpm/SOURCES/jna-%{version}.tar.gz jna-%{version}
-Source0: https://github.com/twall/jna/archive/%{name}-%{innerversion}.tar.gz
+Source0: https://github.com/twall/jna/archive/%{name}-%{version}.tar.gz
Source1: package-list
Patch0: jna-3.5.0-build.patch
# This patch is Fedora-specific for now until we get the huge
@@ -29,8 +27,7 @@ Patch2: jna-4.0.0-tests-headless.patch
# Build using GCJ javadoc
Patch3: jna-3.5.2-gcj-javadoc.patch
# junit cames from rpm
-Patch4: jna-4.0.0-junit.patch
-Patch5: jna-4.0.0-charfix.patch
+Patch4: jna-4.1.0-junit.patch
Patch6: jna-4.0.0-ffi.patch
Patch7: jna-4.0.0-fix-native-test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -88,7 +85,7 @@ This package contains the contributed examples for %{name}.
%prep
-%setup -q -n %{name}-%{innerversion}
+%setup -q -n %{name}-%{version}
cp %{SOURCE1} .
%patch0 -p1 -b .build
%patch1 -p1 -b .loadlib
@@ -97,7 +94,6 @@ sed -i 's|@JNIPATH@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java
chmod -Rf a+rX,u+w,g-w,o-w .
%patch3 -p0 -b .gcj-javadoc
%patch4 -p1 -b .junit
-%patch5 -p1 -b .charfix
%patch6 -p1 -b .ffi
%patch7 -p1
@@ -212,8 +208,8 @@ rm -rf %{buildroot}
%changelog
-* Tue Mar 04 2014 Stanislav Ochotnicky - 4.0.0-5
-- Use Requires: java-headless rebuild (#1067528)
+* Fri Mar 7 2014 Levente Farkas - 4.1.0-1
+- Update to 4.1.0
* Fri Jan 10 2014 Roland Grunberg - 4.0.0-4
- fix updated depmap