|
mgc的apt源里面的kdeedu包的依赖好像写错了
要求kdebase-devel>=6:3.5.3
不知道这个"6:"是咋回事,应该是写错的。
最近升级到了kde3.5.6,就自个下载源代码,玩玩打包。
下面的是我的spec文件,参照liudi的kdeedu3.5.3改的。
[code:1]%define debug 0
%define final 0
%define make_cvs 1
%define arts 1
%define qt_version 3.3.6
%define kdelibs_epoch 6
%define kdebase_epoch 6
%define disable_gcc_check_and_hidden_visibility 1
Name: kdeedu
Version: 3.5.6
Release: 1mgc
Summary: Educational/Edutainment applications for KDE
URL: http://www.kde.org/
License: GPL
Group: User Interface/Desktops
Prefix: %{_prefix}
Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
Patch1: kde-libtool.patch
Requires: kdebase >= %{kdebase_epoch}:%{version}
Requires: qt >= %{qt_version}
Requires(post,postun): /sbin/ldconfig
BuildRequires: kdebase-devel
Obsoletes: blinken
Obsoletes: kalzium
Obsoletes: kanagram
Obsoletes: kbruch
Obsoletes: keduca
Obsoletes: kgeography
Obsoletes: khangman
Obsoletes: kig
Obsoletes: kiten
Obsoletes: klatin
Obsoletes: klettres
Obsoletes: kmplot
Obsoletes: kpercentage
Obsoletes: kstars
Obsoletes: ktouch
Obsoletes: kturtle
Obsoletes: kverbos
Obsoletes: kvoctrain
Obsoletes: kwordquiz
Provides: blinken
Provides: kalzium
Provides: kanagram
Provides: kbruch
Provides: keduca
Provides: kgeography
Provides: khangman
Provides: kig
Provides: kiten
Provides: klatin
Provides: klettres
Provides: kmplot
Provides: kpercentage
Provides: kstars
Provides: ktouch
Provides: kturtle
Provides: kverbos
Provides: kvoctrain
Provides: kwordquiz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Educational/Edutainment applications for KDE
%package devel
Summary: Header files for kdeedu
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains header files for kdeedu.
%package -n blinken
Summary: The KDE version of the well-known game Simon Says
Group: User Interface/Desktops
%description -n blinken
The KDE version of the well-known game Simon Says
%package -n kalzium
Summary: Periodic table of elements
Group: User Interface/Desktops
%description -n kalzium
Periodic table of elements
%package -n kanagram
Summary: An anagram game
Group: User Interface/Desktops
%description -n kanagram
An anagram game
%package -n kbruch
Summary: Fraction excercise trainer
Group: User Interface/Desktops
%description -n kbruch
Fraction excercise trainer
%package -n keduca
Summary: Creation and revision of form-based tests and exams
Group: User Interface/Desktops
%description -n keduca
Creation and revision of form-based tests and exams
%package -n kgeography
Summary: Geography learning program
Group: User Interface/Desktops
%description -n kgeography
Geography learning program
%package -n khangman
Summary: Hangman game. The child should guess a word letter by letter
Group: User Interface/Desktops
%description -n khangman
Hangman game. The child should guess a word letter by letter
%package -n kig
Summary: Interactive Geometry
Group: User Interface/Desktops
%description -n kig
Interactive Geometry
%package -n kiten
Summary: Japanese reference tool
Group: User Interface/Desktops
%description -n kiten
Japanese reference tool
%package -n klatin
Summary: Aims to help revise or learn Latin
Group: User Interface/Desktops
%description -n klatin
Aims to help revise or learn Latin
%package -n klettres
Summary: Helps child to learn the alphabet and to read some syllables
Group: User Interface/Desktops
%description -n klettres
Helps child to learn the alphabet and to read some syllables
%package -n kmplot
Summary: Mathematical function plotter
Group: User Interface/Desktops
%description -n kmplot
Mathematical function plotter
%package -n kpercentage
Summary: Math application to improve skills in calculating percentages
Group: User Interface/Desktops
%description -n kpercentage
Math application to improve skills in calculating percentages
%package -n kstars
Summary: Desktop Planetarium
Group: User Interface/Desktops
%description -n kstars
Desktop Planetarium
%package -n ktouch
Summary: Program for learning touch typing
Group: User Interface/Desktops
%description -n ktouch
Program for learning touch typing
%package -n kturtle
Summary: Educational programming environment using the Logo programming language
Group: User Interface/Desktops
%description -n kturtle
Educational programming environment using the Logo programming language
%package -n kverbos
Summary: Tudy Spanish verb forms
Group: User Interface/Desktops
%description -n kverbos
Tudy Spanish verb forms
%package -n kvoctrain
Summary: Vocabulary Trainer
Group: User Interface/Desktops
%description -n kvoctrain
Vocabulary Trainer
%package -n kwordquiz
Summary: A powerful way to master new vocabularies
Group: User Interface/Desktops
%description -n kwordquiz
A powerful way to master new vocabularies
%prep
%setup -q
%patch1 -p1 -b .libtool
%ifarch s390 s390x ppc ppc64
rm -rf doc/kstars kstars
perl -pi -e "s|kstars||" subdirs
%endif
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
rm -rf doc/kgeography kgeography
perl -pi -e "s|kgeography||" subdirs
%if %{make_cvs}
make -f admin/Makefile.common cvs
%endif
%configure \
--enable-new-ldflags \
--disable-dependency-tracking \
--disable-rpath \
--disable-kig-python-scripting \
%if %{disable_gcc_check_and_hidden_visibility}
--disable-gcc-hidden-visibility \
%endif
%if %{arts} == 0
--without-arts \
%endif
%if %{debug} == 0
--disable-debug \
--disable-warnings \
%endif
%if %{final}
--enable-final \
%endif
--includedir=%{_includedir}/kde \
--with-qt-libraries=$QTDIR/lib
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc %{_docdir}/HTML/en/*
%{_bindir}/*
%{_libdir}/*.so.*
%{_libdir}/*.la
%{_libdir}/kde3/*
%{_datadir}/applications/kde/*
%{_datadir}/applnk/Edutainment/*
%{_datadir}/apps/*
%{_datadir}/mimelnk/application/*
%{_datadir}/icons/*/*/*/*
%{_datadir}/services/*
%{_datadir}/config.kcfg/*
%{_datadir}/config/*
%files devel
%defattr(-,root,root)
%{_includedir}/kde/*
%{_libdir}/*.so
%changelog
* Thu Feb 10 2007 Ni Hui <[email protected]> 3.5.6-1mgc
- update to 3.5.6
* Thu Jul 01 2006 Liu Di <[email protected]> 3.5.3-1mgc
- update to 3.5.3
* Wed Apr 05 2006 Than Ngo <[email protected]> 3.5.2-1
- update to 3.5.2
* Fri Feb 10 2006 Jesse Keating <[email protected]> - 3.5.1-1.2
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <[email protected]> - 3.5.1-1.1
- rebuilt for new gcc4.1 snapshot and glibc changes
* Sat Feb 04 2006 Than Ngo <[email protected]> 3.5.1-1
- 3.5.1
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
* Tue Nov 29 2005 Than Ngo <[email protected]> 3.5.0-1
- 3.5 final
* Fri Nov 11 2005 Than Ngo <[email protected]> 3.4.92-2
- fix #172887
* Tue Oct 25 2005 Than Ngo <[email protected]> 3.4.92-1
- update to 3.5 beta2
* Thu Oct 06 2005 Than Ngo <[email protected]> 3.4.91-1
- update to 3.5 beta 1
* Wed Sep 21 2005 Than Ngo <[email protected]> 3.4.2-3
- fix uic build problem
* Wed Aug 24 2005 Than Ngo <[email protected]> 3.4.2-2
- rebuilt against boost-1.33
* Wed Aug 10 2005 Than Ngo <[email protected]> 3.4.2-1
- update to 3.4.2
* Mon Jul 18 2005 Than Ngo <[email protected]> 3.4.1-2
- enable python-scripting #157961
* Tue Jun 28 2005 Than Ngo <[email protected]> 3.4.1-1
- 3.4.1
- fix gcc4 build problem
* Fri Mar 18 2005 Than Ngo <[email protected]> 3.4.0-1
- 3.4.0
* Fri Mar 04 2005 Than Ngo <[email protected]> 3.4.0-0.rc1.2
- rebuilt against gcc-4.0.0-0.31
* Tue Mar 01 2005 Than Ngo <[email protected]> 3.4.0-0.rc1.1
- 3.4.0 rc1
* Wed Feb 16 2005 Than Ngo <[email protected]> 3.3.92-0.1
- KDE-3.4 Beta2
* Wed Feb 09 2005 Than Ngo <[email protected]> 3.3.2-0.2
- replace kgeo (#142367)
* Fri Dec 03 2004 Than Ngo <[email protected]> 3.3.2-0.1
- update to 3.3.2
* Mon Oct 18 2004 Than Ngo <[email protected]> 3.3.1-2
- rebuilt
* Wed Oct 13 2004 Than Ngo <[email protected]> 3.3.1-1
- update to 3.3.1 release
* Mon Aug 23 2004 Than Ngo <[email protected]> 3.3.0-1
- update to 3.3.0 release
* Tue Aug 10 2004 Than Ngo <[email protected]> 3.3.0-0.1.rc2
- update to 3.3.0 rc2
* Mon Jun 21 2004 Than Ngo <[email protected]> 3.2.3-1
- update to 3.2.3
* Wed Apr 14 2004 Than Ngo <[email protected]> 3.2.2-2
- fix some broken code
* Wed Apr 14 2004 Than Ngo <[email protected]> 3.2.2-1
- update to 3.2.2
* Sun Mar 07 2004 Than Ngo <[email protected]> 3.2.1-1
- 3.2.1
* Tue Mar 02 2004 Elliot Lee <[email protected]>
- rebuilt
* Tue Feb 24 2004 Than Ngo <[email protected]> 3.2.0-1.5
- gcc 3.4 build problem
* Thu Feb 19 2004 Than Ngo <[email protected]> 3.2.0-1.4
- add missing ldconfig in post/postun, #116171
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
* Thu Feb 05 2004 Than Ngo <[email protected]> 3.2.0-0.3
- 3.2.0 release
- built against qt 3.3.0
* Mon Jan 19 2004 Than Ngo <[email protected]> 3.1.95-0.1
- KDE 3.2 RC1
* Mon Dec 01 2003 Than Ngo <[email protected]> 3.1.94-0.1
- KDE 3.2 Beta 2
* Thu Nov 27 2003 Than Ngo <[email protected]> 3.1.93-0.2
- get rid of rpath
* Wed Nov 12 2003 Than Ngo <[email protected]> 3.1.93-0.1
- KDE 3.2 Beta1
- cleanup
- remove some unneeded patch files
* Tue Sep 30 2003 Than Ngo <[email protected]> 3.1.4-1
- 3.1.4
* Thu Aug 21 2003 Than Ngo <[email protected]> 3.1.3-2
- fixed build problem with gcc 3.3
* Tue Aug 12 2003 Than Ngo <[email protected]> 3.1.3-1
- 3.1.3
* Fri Jul 4 2003 Than Ngo <[email protected]> 3.1.2-5
- don't include debug infos in main package (bug #87730)
* Thu Jun 26 2003 Than Ngo <[email protected]> 3.1.2-4
- rebuilt
* Wed Jun 04 2003 Elliot Lee <[email protected]>
- rebuilt
* Mon May 19 2003 Than Ngo <[email protected]> 3.1.2-2
- 3.1.2
* Wed Mar 19 2003 Than Ngo <[email protected]> 3.1.1-1
- 3.1.1
* Mon Feb 24 2003 Elliot Lee <[email protected]>
- debuginfo rebuild
* Fri Feb 21 2003 Than Ngo <[email protected]> 3.1-2
- get rid of gcc path from dependency_libs
* Tue Jan 28 2003 Than Ngo <[email protected]> 3.1-1
- 3.1 release
- remove some unneeded macros
* Thu Jan 23 2003 Tim Powers <[email protected]> 3.1-0.5
- rebuild
* Tue Jan 14 2003 Thomas Woerner <[email protected]> 3.1-0.4
- rc6
- removed size_t check
- excluded ia64
* Sun Dec 1 2002 Than Ngo <[email protected]> 3.1-0.3
- add missing defattr
* Fri Nov 29 2002 Than Ngo <[email protected]> 3.1-0.2
- get rid of sub packages
- desktop issues
* Mon Nov 25 2002 Than Ngo <[email protected]> 3.1-0.1
- update to 3.1 rc4
- add fix for building xjdxgen
* Sun Nov 10 2002 Than Ngo <[email protected]> 3.0.5-1
- update to 3.0.5
* Thu Nov 7 2002 Than Ngo <[email protected]> 3.0.4-2
- fix some build problems
* Tue Oct 15 2002 Than Ngo <[email protected]> 3.0.4-1
- 3.0.4
- cleanup specfile
* Mon Aug 12 2002 Than Ngo <[email protected]> 3.0.3-1
- 3.0.3
* Fri Aug 9 2002 Than Ngo <[email protected]> 3.0.2-3
- desktop file issues
- fixed a bug in install (bug #69414)
* Tue Jul 23 2002 Tim Powers <[email protected]> 3.0.2-2
- build using gcc-3.2-0.1
* Wed Jul 10 2002 Than Ngo <[email protected]> 3.0.2-1
- 3.0.2
- use desktop-file-install
* Fri Jun 21 2002 Tim Powers <[email protected]>
- automated rebuild
* Sat May 25 2002 Bernhard Rosenkraenzer <[email protected]>
- initial RPM
[/code:1]
里面Requires: kdebase >= %{kdebase_epoch}:%{version}应该是有小问题的,是不是%{kdebase_epoch}:要删掉啊?
还有就是kig的configure的时候,选项 --enable-kig-python-scripting \
改成 --disable-kig-python-scripting \ 了
如果enable的话,configure就会提示出错:
[code:1]The Kalzium Chemical Equation Solver has been disabled. Possible
reasons of that:
* OCaml was not found. In order to have the Solver, you have to
install OCaml. You can get OCaml from http://pauillac.inria.fr/ocaml/.
* The FaCiLe module for OCaml was not found. In order to have the Solver,
you have to install the FaCiLe module. You can get it from
http://www.recherche.enac.fr/opti/facile/.
Kig WARNING
===========
There is a problem using unpatched Boost.Python 1.30 in combination
with GCC 3.2 and above. In some distributions, like Debian sarge,
this problem has been fixed, but in other distributions, the problem
may still be there. If you encounter problems while compiling Kig,
then you should try to re-run configure with the option
"--disable-kig-python-scripting". This may fix the compilation, but
you will not be able to use the Kig Python Scripting.
Good - your configure finished. Start make now
[/code:1]
enable的话,make的时候到kig的python-scripter的时候就会卡住,然后硬盘狂转…………没有动静了。
不知道这段警告是什么意思 |
|