info: qt-1.40.spec

Jacek Konieczny jajcus w zeus.polsl.gliwice.pl
Czw, 17 Wrz 1998, 16:50:16 CEST


Cześć,

Oto moja wersja speca do Qt. Nie widziałem jeszcze ostatniej wersji
kloczka (nie chcę się łączyć z inetem 2x dziennie), jeśli jest OK można
zapomnieć o tym co tu spłodziłem. Ale na wszelki wypadek wysyłam.

---------------

Summary:	The Qt GUI application framework: Shared library
Summary(pl):	Biblioteka Qt
Name:		qt
Version:	1.40
Release:	3
Source0:	ftp.troll.no:/qt/source/%{name}-%{version}.tar.gz
Patch0: 	qt.patch
Copyright:	distributable
Group:		X11/Libraries
URL:		http://www.troll.no/
BuildRoot:	/tmp/%{name}-%{version}-%{release}-root

%description
Contains the shared library needed to run Qt applications, as well as
the README files for Qt.

%description -l pl
Zawiera bibliotekę Qt, wymaganą dla aplikacji, które z niej korzystają
- takich jak KDE, oraz pliki README dla Qt. 

%package devel
Summary(pl):	Pliki nagłówkowe, przykłady i dokumentacja biblioteki
Summary:	Include files and documentation needed to compile
Group: 		X11/Libraries
Requires:	%{name} = %{version}

%description devel
Contains the files necessary to develop applications using Qt: header
files, the Qt meta object compiler, man pages, HTML documentation and
example programs.  See http://www.troll.no for more information about
Qt, or file:/usr/lib/qt/html/index.html for Qt documentation in HTML.

%description -l pl devel
Zawiera pliki potrzebne do tworzenia i kompilacji aplikacji Qt:
pliki nagłówkowe, meta kompiler (moc), dokumentację.
Zobacz http://www.troll.no aby dowiedzieć się więcej o Qt.
Dokumentację biblioteki znajdziesz w pliku: /usr/doc/qt-1.33/html/index.html  

%prep
%setup -q
%patch -p1

%build
QTDIR=`/bin/pwd` export QTDIR
make linux-g++-shared
make SYSCONF_CFLAGS="$RPM_OPT_FLAGS" \
     SYSCONF_CFLAGS_LIB="$RPM_OPT_FLAGS -fPIC" \
     SYSCONF_CFLAGS_SHOBJ="$RPM_OPT_FLAGS -fPIC"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/X11R6/{bin,include/qt,lib,man/{man1,man3}}

install -s bin/moc $RPM_BUILD_ROOT/usr/X11R6/bin/moc
install -s lib/libqt.so.*.* $RPM_BUILD_ROOT/usr/X11R6/lib
ln -sf libqt.so.%{version} $RPM_BUILD_ROOT/usr/X11R6/lib/libqt.so
install man/man1/* $RPM_BUILD_ROOT/usr/X11R6/man/man1
install man/man3/* $RPM_BUILD_ROOT/usr/X11R6/man/man3
install include/* $RPM_BUILD_ROOT/usr/X11R6/include/qt
# $QTDIR/include must point Qt header files
ln -s . $RPM_BUILD_ROOT/usr/X11R6/include/qt/include

for a in {tutorial,examples}/{Makefile,*/Makefile}; do
  sed 's-^SYSCONF_MOC.*-SYSCONF_MOC		= /usr/bin/moc-' < $a > ${a}.2
  mv -v ${a}.2 $a
done

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc ANNOUNCE LICENSE README* FAQ changes-*
/usr/X11R6/lib/lib*.so.*.*

%files devel
%defattr(644,root,root,755)
%doc html tutorial examples
%attr(755, root, root) /usr/X11R6/bin/*
%attr(644, root,  man) /usr/X11R6/man/man[13]/*
/usr/X11R6/include/qt
%attr(  -, root, root) /usr/X11R6/lib/lib*.so

%changelog
* Tue Sep 15 1998 Jacek Konieczny <jajcus w zeus.polsl.gliwice.pl>
[1.40-3]
- library moved to /usr/X11R6/lib
- includes moved to /usr/X11R6/include/qt
- polish description and sumary added

Mon Aug  3 1998 Tomasz Kłoczko <kloczek w rudy.mif.pg.gda.pl>
[1.40-2]
- added -q %setup parameter and removed -n parameter,
- package rewrited for using Buildroot,
- added using %%{name} and %%{version} macros in Source,
- "rm -rf $RPM_BUILD_ROOT" moved from %prep to %install,
- spec file rewritten for using Buildroot,
- added %clean section,
- added URL,
- removed compiling tutorial and examples during building (qt.patch),
- fixed dependences for devel by adding "Requires: %%{name} = %%{version}",
- html, tutorial, examples and doc are marked as %doc in devel subpackage,
- header files moved to /usr/include/qt (to be consistent with FSSTND), 
- replaced "mkdir -p" with "install -d" in %install,
- added striping binaries,
- /usr/lib/lib*.so moved to devel,
- fiew simplification in %files and %install,
- added using $RPM_OPT_FLAGS during compile,
- /sbin/ldconfig is now -p parameter in %post[un],
- added %defattr and %attr macros in %files (allows building package from
  non-root account).



--
+---------+--------------------------------------------------------+
!      ,  !            Jacek Konieczny, Gliwice, Poland            !      
! Jajcus  !   email: jajcus w zeus.polsl.gliwice.pl, jacek w kde.org   !
!         ! ICQ# 7149127                           WWW: none (yet) !
+---------+--------------------------------------powered-by-Linux--+



Więcej informacji o liście dyskusyjnej pld-devel-pl