|
rocessing files: fltk-1.0.11-1mgc
Provides: libfltk.so.1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libX11.so.6 libXext.so.6 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libm.so.6 libm.so.6(GLIBC_2.0)
Processing files: fltk-devel-1.0.11-1mgc
error: File not found: /var/tmp/fltk-1.0.11-1mgc-root/usr/bin/fluid
error: File not found by glob: /var/tmp/fltk-1.0.11-1mgc-root/usr/man/*
Processing files: fltk-debuginfo-1.0.11-1mgc
Provides: libfltk.so.1.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
RPM build errors:
File not found: /var/tmp/fltk-1.0.11-1mgc-root/usr/bin/fluid
File not found by glob: /var/tmp/fltk-1.0.11-1mgc-root/usr/man/*
s pe c 文件从源码包修改而来,如下:
%define version 1.0.11
%define release 1mgc
%define prefix /usr
Summary: Fast Light Tool Kit (FLTK)
Name: fltk
Version: %{version}
Release: %{release}
Copyright: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.fltk.org/pub/fltk/%{version}/fltk-%{version}-source.tar.gz
URL: http://www.fltk.org
Packager: ygw_ycf<[email protected]>
# use BuildRoot so as not to disturb the version already installed
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally
developed by Mr. Bill Spitzak and is currently maintained by a
small group of developers across the world with a central
repository in the US.
%package devel
Summary: FLTK - development environment
Group: Development/Libraries
%description devel
Install fltk-devel if you need to develop FLTK applications. You'll
need to install the fltk package if you plan to run dynamically linked
applications.
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-shared
# If we got this far, all prerequisite libraries must be here.
make
%install
# these lines just make sure the directory structure in the
# RPM_BUILD_ROOT exists
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make -e prefix=$RPM_BUILD_ROOT/%{prefix} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{prefix}/lib/libfltk*.so.*
%files devel
%defattr(-,root,root)
%{prefix}/bin/fluid
%{prefix}/include/FL
%{prefix}/include/Fl
%{prefix}/lib/libfltk*.so
%{prefix}/lib/libfltk*.a
%{prefix}/man/*
%{prefix}/share/doc/fltk/*
哪儿还有错误?恳请指教!!! |
|