RPM's & SRPMS of kdevelop-1.0beta4
Ashley Cambrell
bec_ash at bigpond.com
Thu Oct 28 10:47:22 BST 1999
Werner Becker wrote:
> On Wed, 27 Oct 1999, Haakon Nilsen wrote:
>
> > At 13:25 27.10.99 +0000, you wrote:
> > >I have created SRPMS ( & an RPM for i686 on Mandrake).. Is there any place
> > >to put these? {if anyone is interested}
> >
>
> Hi Haakon Nilsen,
>
> could you send me the basic files required to build the RPMs as I
> would like to do it for another distribution but hat not that
> much experience with RPMs yet. However, having the basic setup
> and/or initialisation files I should be able to manage that.
>
> Thanks
>
> Werner
Other than a couple in the .spec file, I just dl'ed the gz file which I put
(Mandrake) /usr/src/RPM/SOURCES directory and the .spec in /usr/src/RPM/SPECS and
did rpm -ba /usr/src/RPM/SPECS/kdevelop.spec
Easy as pie...
(Actually a better idea giving out the spec rather than large rpm files... =) )
Ashley Cambrell
-------------- next part --------------
%define name kdevelop
%define version 1.0beta4
%define release 1
%define prefix /usr
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
Summary: KDE Integrated Development Environment
Name: %{name}
Version: %{version}
Release: %{release}
Prefix: %{prefix}
Group: X11/KDE/Development
Copyright: GPL
Vendor: Sandy Meier <smeier at rz.uni-potsdam.de>
Packager: Troy Engel <tengel at sonic.net>
Source0: %{name}-%{version}.tar.gz
Source1: %{name}-c_cpp-reference.tar.gz
URL: http://www.kdevelop.org/
Requires: kdelibs >= 1.1.1
Obsoletes: kdevelop-c_c++_ref
BuildRoot: /tmp/build-%{name}-%{version}
%description
KDevelop is an easy to use IDE (Intergrated Development Enviroment) for
KDE/Unix/X11.
%prep
rm -rf %{builddir}
%setup -q -a 1
touch `find . -type f`
%build
if [ -z "$KDEDIR" ]; then
export KDEDIR=%{prefix}
fi
CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=$KDEDIR --enable-kdoc2
make
%install
if [ -z "$KDEDIR" ]; then
export KDEDIR=%{prefix}
fi
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip
cd %{builddir}/%{name}-c_cpp-reference
cp -a doc $RPM_BUILD_ROOT$KDEDIR
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
$RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
-e '/\/config\//s|^|%config|' >> \
$RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
$RPM_BUILD_DIR/file.list.%{name}
echo "%docdir $KDEDIR/doc/kde" >> $RPM_BUILD_DIR/file.list.%{name}
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{builddir}
rm -f $RPM_BUILD_DIR/file.list.%{name}
%files -f ../file.list.%{name}
More information about the KDevelop
mailing list