diff --git a/librepo-mirrorlist_h.patch b/librepo-mirrorlist_h.patch
new file mode 100644
index 0000000..5dc3c37
--- /dev/null
+++ b/librepo-mirrorlist_h.patch
@@ -0,0 +1,11 @@
+diff -up librepo/librepo/CMakeLists.txt.mirrorlist librepo/librepo/CMakeLists.txt
+--- librepo/librepo/CMakeLists.txt.mirrorlist	2013-10-07 06:40:51.000000000 -0500
++++ librepo/librepo/CMakeLists.txt	2013-10-10 19:44:38.906416673 -0500
+@@ -25,6 +25,7 @@ SET(librepo_HEADERS
+     handle.h
+     librepo.h
+     metalink.h
++    mirrorlist.h
+     package_downloader.h
+     rcodes.h
+     repomd.h
diff --git a/librepo.spec b/librepo.spec
index 19c6b3e..44772b6 100644
--- a/librepo.spec
+++ b/librepo.spec
@@ -3,7 +3,7 @@
 
 Name:		librepo
 Version:	1.2.1
-Release:	2%{?dist}
+Release:	3.%{gitrev}%{?dist}
 Summary:	Repodata downloading library
 
 Group:		System Environment/Libraries
@@ -15,6 +15,10 @@ URL:		https://github.com/Tojaj/librepo
 #  utils/make_tarball.sh %{gitrev}
 Source0:	librepo-%{gitrev}.tar.xz
 
+# upstreamable patch to install missing mirrorlist.h header
+# https://bugzilla.redhat.com/show_bug.cgi?id=1018006
+Patch1: librepo-mirrorlist_h.patch
+
 BuildRequires:	check-devel
 BuildRequires:	cmake
 BuildRequires:	doxygen
@@ -71,6 +75,8 @@ Python 3 bindings for the librepo library.
 %prep
 %setup -q -n librepo
 
+%patch1 -p1 -b .mirrorlist_h
+
 rm -rf py3
 mkdir ../py3
 cp -a . ../py3/
@@ -118,6 +124,10 @@ popd
 %{python3_sitearch}/
 
 %changelog
+* Thu Oct 10 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.2.1-3.bc2c8a5
+- fastestmirror.h:26:24: fatal error: mirrorlist.h: No such file or directory (#1018006)
+- adjust Release tag to match packaging guidelines
+
 * Thu Oct  10 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 1.2.1-2
 - Just release bump