X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=QtCurve.spec;h=7a6620ae3596c01e1587685671fdcc4dd0ac2c95;hb=c50c9c1e09ceda0c922ca468136dce77ecdd3272;hp=abaa4eada2aef229516e6effbddba919b3d753a3;hpb=c7eec8c258cda3ca6fd99e9e198709d7c20715d5;p=packages%2FQtCurve.git diff --git a/QtCurve.spec b/QtCurve.spec index abaa4ea..7a6620a 100644 --- a/QtCurve.spec +++ b/QtCurve.spec @@ -1,14 +1,19 @@ +# +# Conditional build: +%bcond_without gtk # do not build gtk+(2) styles +# Summary: A free and corrected port of Redhats gtk/qt theme Summary(pl): Darmowa i poprawiona wersja tematu gtk/qt zrobionego przez Redhata Name: QtCurve -Version: 0.14 -Release: 1 +Version: 0.19 +Release: 2 License: GPL Group: Themes -# from http://www.kde-look.org/content/download.php?content=5065 -Source0: http://www.kde-look.org/content/files/5065-%{name}-%{version}.tar.gz -# Source0-md5: 93726fd4fc5c91b5e4bc485fa8c5399c +Source0: http://www.cpdrummond.freeuk.com/%{name}-%{version}.tar.gz +# Source0-md5: d7b8addee47e7f9903a75f0ff3a3ecb6 +Patch0: %{name}-gcc34.patch URL: http://www.kde-look.org/content/show.php?content=5065 +BuildRequires: automake BuildRequires: kdelibs-devel >= 3.1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -36,8 +41,7 @@ Summary: A free and corrected port of Redhat's gtk/qt theme Summary(pl): Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata Group: Themes Requires: gtk+ -Requires: theme-QtCurve-common - +Requires: theme-QtCurve-common = %{version}-%{release} %description -n gtk-theme-QtCurve A free and corrected port of Redhat's gtk/qt theme. gtk version. @@ -51,8 +55,7 @@ Summary: A free and corrected port of Redhat's gtk/qt theme Summary(pl): Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata Group: Themes Requires: gtk+ -Requires: theme-QtCurve-common - +Requires: theme-QtCurve-common = %{version}-%{release} %description -n gtk2-theme-QtCurve A free and corrected port of Redhat's gtk/qt theme. gtk2 version. @@ -71,7 +74,6 @@ Obsoletes: gtk-theme-bluecurve Obsoletes: kde-style-bluecurve Obsoletes: kde-theme-bluecurve - %description -n theme-QtCurve-common A free and corrected port of Redhats gtk/qt theme. Documentation and common files package. @@ -82,9 +84,16 @@ Pakiet z dokumentacja i plikami wsp %prep %setup -q +%patch0 -p1 %build +cp /usr/share/automake/config.sub admin + +%{!?with_gtk:export "DO_NOT_COMPILE=gtk gtk2"} +##export UNSERMAKE=/usr/share/unsermake/unsermake +##%{__make} -f admin/Makefile.common cvs %configure + %{__make} %install @@ -93,24 +102,27 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la + %clean rm -rf $RPM_BUILD_ROOT %files -n kde-style-QtCurve %defattr(644,root,root,755) +%{_libdir}/kde3/kstyle_qtcurve_config.la +%attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so %{_libdir}/kde3/plugins/styles/*.la %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so %{_datadir}/apps/kstyle/themes/qtcurve*.themerc +%if %{with gtk} %files -n gtk-theme-QtCurve %defattr(644,root,root,755) -%{_libdir}/gtk/themes/engines/*.la %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so %{_datadir}/themes/QtCurve*/gtk %files -n gtk2-theme-QtCurve %defattr(644,root,root,755) -%{_libdir}/gtk-2.0/*/*/*.la %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so %{_datadir}/themes/QtCurve*/gtk-2.0 @@ -118,3 +130,4 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc ChangeLog README TODO %dir %{_datadir}/themes/QtCurve* +%endif