diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..67d4496
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+SOURCES/librhsm-9bd5080.tar.gz
diff --git a/.librhsm.metadata b/.librhsm.metadata
new file mode 100644
index 0000000..7c3c50f
--- /dev/null
+++ b/.librhsm.metadata
@@ -0,0 +1 @@
+10ebeb7f2f543c4220befd12719a54229175f626 SOURCES/librhsm-9bd5080.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/librhsm.spec b/SPECS/librhsm.spec
new file mode 100644
index 0000000..d3af647
--- /dev/null
+++ b/SPECS/librhsm.spec
@@ -0,0 +1,57 @@
+%global libname rhsm
+
+%global commit 9bd50802ae027422720b358eaea3c01f2a55ecab
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           lib%{libname}
+Version:        0.0.1
+Release:        1%{?dist}
+Summary:        Red Hat Subscription Manager library
+
+License:        LGPLv2+
+URL:            https://github.com/rpm-software-management/librhsm
+Source:         %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
+
+BuildRequires:  gcc
+BuildRequires:  cmake >= 2.8.5
+BuildRequires:  make
+BuildRequires:  pkgconfig(glib-2.0) >= 2.44
+BuildRequires:  pkgconfig(gobject-2.0) >= 2.44
+BuildRequires:  pkgconfig(gio-2.0) >= 2.44
+BuildRequires:  pkgconfig(json-glib-1.0)
+BuildRequires:  pkgconfig(openssl)
+
+%description
+%{summary}.
+
+%package devel
+Summary:        Development libraries and header files for %{name}
+Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
+
+%description devel
+%{summary}.
+
+%prep
+%autosetup -n %{name}-%{commit}
+
+%build
+mkdir %{_target_platform}
+pushd %{_target_platform}
+  %cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
+popd
+%make_build -C %{_target_platform}
+
+%install
+%make_install -C %{_target_platform}
+
+%files
+%license COPYING
+%doc README.md
+%{_libdir}/%{name}.so.*
+
+%files devel
+%{_libdir}/%{name}.so
+%{_includedir}/%{libname}/
+%{_libdir}/pkgconfig/%{name}.pc
+
+%changelog