[ATrpms-users] develfiles.list missing when building src RPMs

Axel Thimm Axel.Thimm at ATrpms.net
Mon Aug 27 23:28:37 CEST 2007


On Sun, Aug 26, 2007 at 10:41:26PM -0700, Big Wave Dave wrote:
> I've tried to build a couple src rpms on FC5, and have been getting
> errors about "develfiles.list" missing from the RPMs.  Am I missing
> one of the macros?  I downloaded the src rpm from atrpms.net and did
> the following:
> 
> rpmbuild --rebuild xvidcore-1.1.2-10.src.rpm
> 
> The error message I am getting is:
> Processing files: xvidcore-devel-1.1.2-10.fc5.at
> error: Could not open %files file
> /usr/src/redhat/BUILD/xvidcore-1.1.2/develfiles.list: No such file or
> directory
> 
> 
> RPM build errors:
>     Could not open %files file
> /usr/src/redhat/BUILD/xvidcore-1.1.2/develfiles.list: No such file or
> directory
> 
> I am guessing that this isn't a "bug" which is why I didn't file it in
> bugzilla.  I am guessing I am missing a macro or some other step.
> What would I need to do to get these to re-compile properly?  Some
> searching online indicating hacking the spec file... but that didn't
> seem right, as lots of people would be having problems with these src
> rpms.
> 
> Any help is appreciated!

I'll create a downloadable package with the macros, but won't be able
to do so in the next O(2) weeks, as I'm just packing to relocate from
Germany to Greece and the destination has not network access, yet.

FWIW for DIYs I added the respective macros/scripts I use.

PS: I was hoping to get this on a wiki and finalize them with the
people here, but I never managed to get the wiki going for ATrpms. I
got it going for ATrpms' successor, though: rpmrepo.org
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
#######################################################################################################
%__lib_name() lib%(echo %1 | grep '[0-9]$' > /dev/null && echo %{1}_%2 || echo %1%2)

%lib_package() \
%global __lib_dependencies %{?__lib_dependencies:%(echo -n %__lib_dependencies | sed -e's,%%,%%%%,g'),}%%%%{__lib_name %1 %2} = %{evr}\
%global __lib_packages %{?__lib_packages:%(echo %__lib_packages | sed -e's,%%,%%%%,g')}%%%%{__lib_package %1 %2}\
%global __lib_package_list %{?__lib_package_list:%(echo %__lib_package_list | sed -e's,%%,%%%%,g')} %1 %2


%__lib_package() \
%global _enable_devel_packages 1\
%global __the_lib_name lib%(echo %1 | grep '[0-9]$' > /dev/null && echo %{1}_%2 || echo %1%2)\
%package -n %__the_lib_name\
Summary: Shared libraries for package %{name}\
Group: System Environment/Libraries\
Provides: shared-library-package\
%(echo %__the_lib_name | grep -- - > /dev/null && echo "Obsoletes: %__the_lib_name" | sed -e's,-,,g')\
%description -n %__the_lib_name\
This package provides the shared libraries lib%1.so.%{2}* for the package %{name}.\
Shared libraries are required at runtime for software built against %{name}.\
Keeping shared libraries in a separate package enables their use as\
forward/backward compatibility packages.\
%post -n %__the_lib_name -p /sbin/ldconfig\
%postun -n %__the_lib_name -p /sbin/ldconfig\
%files -n %__the_lib_name -f %{__the_lib_name}.list \
%{nil}

%lib_dependencies %{?__lib_dependencies:Requires: %{expand:%__lib_dependencies}}

%devel_extra_Requires() \
%global __devel_extra_Requires %{?__devel_extra_Requires:%__devel_extra_Requires, }%*

%devel_extra_Obsoletes() \
%global __devel_extra_Obsoletes %{?__devel_extra_Obsoletes:%__devel_extra_Obsoletes, }%*

%devel_extra_Provides() \
%global __devel_extra_Provides %{?__devel_extra_Provides:%__devel_extra_Provides, }%*

%devel_extra_Conflicts() \
%global __devel_extra_Conflicts %{?__devel_extra_Conflicts:%__devel_extra_Conflicts, }%*

#
%devel_package \
%global __devel_package 1\
%package devel\
Summary: Development files for building against the %{name} package\
Group: Development/Libraries\
%lib_dependencies\
%{?__devel_extra_Requires:Requires: %{__devel_extra_Requires}}\
%{?__devel_extra_Obsoletes:Obsoletes: %{__devel_extra_Obsoletes}}\
%{?__devel_extra_Provides:Provides: %{__devel_extra_Provides}}\
%{?__devel_extra_Conflicts:Conflicts: %{__devel_extra_Conflicts}}\
%description devel\
This package provides the files neccessary for development against\
%{name}. Use this package if you need to build a package depending on\
%{name} at build time, or if you want to do your own development\
against %{name}.\
%files devel -f develfiles.list\
%defattr(-,root,root,-)\
%{nil}

%__lib_install_post \
   /usr/lib/rpm/atrpms/find-lib.sh %{buildroot} %{_builddir}/%{buildsubdir} %{__lib_package_list} \
%{nil}

%__devel_install_post   \
   /usr/lib/rpm/atrpms/find-devel.sh %{buildroot} %{_builddir}/%{buildsubdir}\
%{nil}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-lib.sh
Type: application/x-sh
Size: 426 bytes
Desc: /usr/lib/rpm/atrpms/find-lib.sh
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20070827/8e882b14/attachment.sh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-devel.sh
Type: application/x-sh
Size: 1165 bytes
Desc: /usr/lib/rpm/atrpms/find-devel.sh
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20070827/8e882b14/attachment-0001.sh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20070827/8e882b14/attachment.bin 


More information about the atrpms-users mailing list