diff --git a/physfs.spec b/physfs.spec index 2496c64..3df0a2d 100644 --- a/physfs.spec +++ b/physfs.spec @@ -40,15 +40,15 @@ packages with physfs functionality. %setup -q %build -%cmake . +%cmake %cmake_build -doxygen +doxygen %{_vpath_builddir}/Doxyfile %install %cmake_install rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 -install -m0644 docs/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 +install -m0644 %{_vpath_builddir}/docs/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 # Handle man page conflicts (bz #183705) mv $RPM_BUILD_ROOT%{_mandir}/man3/author.3 $RPM_BUILD_ROOT%{_mandir}/man3/physfs-author.3 @@ -67,8 +67,8 @@ for i in Deinit Free Init Malloc Realloc opaque; do done # Fix multilib conflicts -touch -r LICENSE.txt docs/html/* -touch -r LICENSE.txt docs/latex/* +touch -r LICENSE.txt %{_vpath_builddir}/docs/html/* +touch -r LICENSE.txt %{_vpath_builddir}/docs/latex/* # Get rid of static library. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a @@ -76,11 +76,12 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a %ldconfig_scriptlets %files -%doc docs/CHANGELOG.txt docs/CREDITS.txt LICENSE.txt docs/TODO.txt +%license LICENSE.txt +%doc docs/CHANGELOG.txt docs/CREDITS.txt docs/TODO.txt %{_libdir}/*.so.* %files devel -%doc docs/html/ +%doc %{_vpath_builddir}/docs/html/ %{_bindir}/test_physfs %{_includedir}/physfs.h %{_libdir}/*.so