On 4 December 2016 at 22:21, Patrick Dupre <pdupre@xxxxxxx> wrote: > Can somebody help me. > > Here is my spec file: > Name: libcerf > Version: 1.3 > Release: 1%{?dist} > Summary: library for complex error functions > URL: https://sourceforge.net/projects/libcerf/ > #License: GPLv3+ > > License: Public Domain > Source0: https://sourceforge.net/projects/libcerf/files/latest/download/libcerf-%{version}.tgz > BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > > #BuildRequires: > #Requires: > > BuildArch: x86_64 > > %description > Library providing complex error functions, based on Faddeeva's plasma dispersion function w(z). > > %prep > %setup -q > > %build > %configure > #make %{?_smp_mflags} > %make_build > > %install > rm -rf $RPM_BUILD_ROOT > %make_install > > #mkdir -p %{buildroot}/%{_bindir} > #install -p -m 755 %{SOURCE0} %{buildroot}/%{_bindir} > > %files > %{_libdir}/* > #%{_datadir}/%{name}/ > #%{_bindir}/%{name}/ > > > #%doc > > %changelog > > > > But I get an error message (rpmbuild -bb): > Processing files: libcerf-1.3-1.fc24.x86_64 > > Processing files: libcerf-debuginfo-1.3-1.fc24.x86_64 > Provides: libcerf-debuginfo = 1.3-1.fc24 libcerf-debuginfo(x86-64) = 1.3-1.fc24 > Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 > Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pdupre/rpmbuild/BUILDROOT/libcerf-1.3-1.fc24.x86_64 > error: Installed (but unpackaged) file(s) found: > /usr/include/cerf.h > /usr/share/man/html/cerf.html > /usr/share/man/html/dawson.html > /usr/share/man/html/erfcx.html > /usr/share/man/html/erfi.html > /usr/share/man/html/voigt.html > /usr/share/man/html/w_of_z.html > /usr/share/man/man3/cdawson.3.gz > /usr/share/man/man3/cerf.3.gz > /usr/share/man/man3/cerfc.3.gz > /usr/share/man/man3/cerfcx.3.gz > /usr/share/man/man3/cerfi.3.gz > /usr/share/man/man3/dawson.3.gz > /usr/share/man/man3/erfcx.3.gz > /usr/share/man/man3/erfi.3.gz > /usr/share/man/man3/im_w_of_x.3.gz > /usr/share/man/man3/voigt.3.gz > /usr/share/man/man3/w_of_z.3.gz > [...] Add this to %install (man pages aren't/shouldn't be html AFAIK): rm -fr /usr/share/man/html/ And this to %files: %{_includedir}/*.h %{_mandir}/man3/* (Note that ideally you should put %{_libdir}/*.so.* in the main package and %{_libdir}/*.so and %{_includedir}/* in a subpackage named libcerf-devel, but since this is just for a local build you could skip that). -- Ahmad Samir _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx