diff --git a/nomad.pc.in b/nomad.pc.in
index 1a93446ef429093766500e6521951bb09202e3e5..2c08fbabb4b24e35d3578f79d9ff47a82bbb9b5b 100644
--- a/nomad.pc.in
+++ b/nomad.pc.in
@@ -7,4 +7,4 @@ Name: nomad
 Version: @VERSION@
 Description: NOMAD
 Libs: ${libdir}/libnomad.a -lc -lm
-Cflags: -I${includedir}
+Cflags: -I${includedir}/nomad
diff --git a/nomad.spec b/nomad.spec
new file mode 100644
index 0000000000000000000000000000000000000000..6adc6aeb0a085a8e6c0be1ccf61b36975edae1ae
--- /dev/null
+++ b/nomad.spec
@@ -0,0 +1,38 @@
+%define _prefix /usr
+
+Name: nomad
+Version: 3.6.1
+Release: 1
+Summary: NOMAD (Nonsmooth Optimization by Mesh Adaptive Direct Search)
+License: LGPL
+Group: science
+Source: %{name}-%{version}.tar.gz
+URL: https://www.gerad.ca/nomad/
+Packager: Miroslav Shaltev <miroslav.shaltev@aei.mpg.de>
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: gcc-c++, autoconf, automake, doxygen, graphviz
+#Requires: 
+Prefix: %{_prefix}
+
+%description
+NOMAD (Nonsmooth Optimization by Mesh Adaptive Direct Search)
+
+%prep
+%setup -q
+
+%build
+./autogen.sh
+%configure
+make
+%makeinstall
+
+%clean
+#[ ${RPM_BUILD_ROOT} != "/" ] && rm -Rf ${RPM_BUILD_ROOT}
+#rm -Rf ${RPM_BUILD_DIR}/%{name}-%{version}
+
+%files
+%defattr(-,root,root)
+%{_bindir}/*
+%{_datadir}/*
+%{_includedir}/*
+%{_libdir}/*