SPECS: kgtk.spec - up to 0.9.4 - cmake used to build - works for me
rotom
rotom at pld-linux.org
Thu Nov 1 15:17:11 CET 2007
Author: rotom Date: Thu Nov 1 14:17:11 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 0.9.4
- cmake used to build
- works for me
---- Files affected:
SPECS:
kgtk.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/kgtk.spec
diff -u SPECS/kgtk.spec:1.17 SPECS/kgtk.spec:1.18
--- SPECS/kgtk.spec:1.17 Thu May 24 23:29:11 2007
+++ SPECS/kgtk.spec Thu Nov 1 15:17:06 2007
@@ -1,15 +1,14 @@
# $Revision$, $Date$
+%define _name KGtk
Summary: KGtk (Use KDE Dialogs in GTK+ Apps)
Summary(pl.UTF-8): KGtk - wykorzystywanie okien dialogowych KDE w aplikacjach GTK+
Name: kgtk
-Version: 0.7
-Release: 0.1
+Version: 0.9.4
+Release: 1
License: GPL v2
Group: Libraries
-Source0: http://home.freeuk.com/cpdrummond/%{name}-%{version}.tar.gz
-# Source0-md5: ee392124600c5a308371ce5163deec10
-Patch0: kde-ac260.patch
-Patch1: %{name}-am110.patch
+Source0: http://home.freeuk.com/cpdrummond/%{_name}-%{version}.tar.bz2
+# Source0-md5: a6fde9e4520e1f347ff6a48cda95337a
URL: http://www.kde-look.org/content/show.php?content=36077
BuildRequires: autoconf
BuildRequires: automake
@@ -35,57 +34,64 @@
Tworzy gniazdo uniksowe, z którym komunikują się aplikacje GTK+.
%prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
+%setup -q -n %{_name}-%{version}
%build
-cp -f /usr/share/automake/config.sub admin
-%{__make} -f admin/Makefile.common cvs
-
-%configure \
+export kde_htmldir=%{_kdedocdir}
+export kde_libs_htmldir=%{_kdedocdir}
+export KDEDIR=%{_prefix}
+export QTDIR=%{_prefix}
+install -d build
+cd build
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DLIB_INSTALL_DIR=%{_libdir} \
+ -DKGTK_QT3=true \
+ -DKGTK_QT4=false \
%if "%{_lib}" == "lib64"
- --enable-libsuffix=64 \
-%endif
- --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
- --with-qt-libraries=%{_libdir}
+ -DLIB_SUFFIX=64 \
+%endif
+ ../
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
-%{__sed} -i '1s|/bin/bash|/bin/sh|' {gtk,qt}/*-wrapper.sh
-
+cd build
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- wrapperdir=%{_bindir}
+ DESTDIR=$RPM_BUILD_ROOT \
+ kde_htmldir=%{_kdedocdir} \
+ kde_libs_htmldir=%{_kdedocdir}
+%find_lang %{name} --with-kde --all-name
+
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files -f build/%{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README
%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%attr(755,root,root) %{_libdir}/libkgtk.so
-%attr(755,root,root) %{_libdir}/kde3/kded_kdialogd.so
-%{_libdir}/kde3/kded_kdialogd.la
-%attr(755,root,root) %{_libdir}/libkqt.so
-%{_libdir}/libkqt.la
-%{_libdir}/libkgtk.la
-%{_datadir}/services/kded/kdialogd.desktop
-
+%dir %{_libdir}/kgtk
+%attr(755,root,root) %{_libdir}/kgtk/libkgtk2.so
+%attr(755,root,root) %{_libdir}/kgtk/libkqt3.so
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2007/11/01 14:17:06 rotom
+- up to 0.9.4
+- cmake used to build
+- works for me
+
Revision 1.17 2007/05/24 21:29:11 qboosh
- glitz and libltdl are not used directly
- BR: pkgconfig gtk+2-devel
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kgtk.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list