diff --git a/uthash.spec b/uthash.spec index e6fe3ca..f6abc9c 100644 --- a/uthash.spec +++ b/uthash.spec @@ -28,7 +28,6 @@ Source: https://github.com/troydhanson/uthash/archive/v%{version}/%{name Patch1: uthash-proceed_with_tests_without_prompt.patch Patch2: uthash-optflags.patch BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description @@ -50,9 +49,9 @@ implementation for C structures. %build %install -b="%buildroot" -mkdir -p "$b/%_includedir" -cp -a src/*.h "$b/%_includedir/" +b=%{buildroot} +mkdir -p "$b/%{_includedir}" +cp -a src/*.h "$b/%{_includedir}/" %check pushd tests @@ -61,8 +60,8 @@ OPTFLAGS="%{optflags}" \ popd %files devel -%defattr(-,root,root) %{_includedir}/*.h -%doc LICENSE README.md +%license LICENSE +%doc README.md %changelog