X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=QtCurve.spec;h=d17e7a638583d6e40c8b6faa827bdd464ad36cff;hb=6320eacf6255421c2f4255ed7e99d90580f98651;hp=66a6346b4e447355df5d07aa4fc06c574797f301;hpb=0935fb48912180756f174b76c9f66dc8ea7ae32c;p=packages%2FQtCurve.git diff --git a/QtCurve.spec b/QtCurve.spec index 66a6346..d17e7a6 100644 --- a/QtCurve.spec +++ b/QtCurve.spec @@ -1,133 +1,277 @@ +# TODO: +# - gtk1 no longer updated. drop after dropping last gtk+ 1.x app # # 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 +%bcond_without gtk # don't build GTK+ styles +%bcond_without gtk2 # don't build GTK+2 styles +%bcond_with kde3 # build KDE3 styles +%bcond_without kde4 # don't build KDE4 styles + +%define ver 1.0.1 +%define kde4_ver 1.0.1 +%define kde3_ver 1.0.0 +%define gtk2_ver 1.0.1 +%define gtk1_ver 0.42.2 +Summary: A free and corrected port of Red Hat's GTK+/Qt theme +Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata Name: QtCurve -Version: 0.20 +Version: %{ver} Release: 1 License: GPL Group: Themes -Source0: http://www.cpdrummond.freeuk.com/%{name}-%{version}.tar.gz -# Source0-md5: a485093b0b21e55552ccfd65b16d3513 -Patch0: %{name}-gcc34.patch -URL: http://www.kde-look.org/content/show.php?content=5065 -BuildRequires: automake -BuildRequires: kdelibs-devel >= 3.1 +Source0: http://craigd.wikispaces.com/file/view/%{name}-KDE3-%{kde3_ver}.tar.bz2 +# Source0-md5: b3bd5675fc954a4a01e691e7d5be35ee +Source1: http://craigd.wikispaces.com/file/view/%{name}-Gtk2-%{gtk2_ver}.tar.bz2 +# Source1-md5: 8c574b955851e79397805db95ed08b62 +Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz +# Source2-md5: 8219f58493ca4e65a8fe61ee76eca522 +Source3: http://craigd.wikispaces.com/file/view/%{name}-KDE4-%{kde4_ver}.tar.bz2 +# Source3-md5: d60fff0f032bc86e6731468e37ba0226 +Patch0: %{name}-Gtk1-lib64.patch +URL: http://www.kde-look.org/content/show.php?content=40492 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: cmake +%{?with_gtk:BuildRequires: gtk+-devel} +%{?with_gtk2:BuildRequires: gtk+2-devel} +%{?with_kde4:BuildRequires: kde4-kdelibs-devel} +%{?with_kde4:BuildRequires: kde4-kdelibs} +%{?with_kde3:BuildRequires: kdelibs-devel >= 3.1} +BuildRequires: libtool +BuildRequires: pkgconfig +%{?with_kde4:BuildRequires: qt4-build} +BuildRequires: rpmbuild(macros) >= 1.293 +BuildRequires: sed > 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -A free and corrected port of Redhat's gtk/qt theme. +A free and corrected port of Red Hat's GTK+/Qt theme. -%description -l pl -Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata. +%description -l pl.UTF-8 +Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. %package -n kde-style-QtCurve -Summary: A free and corrected port of Redhat's gtk/qt theme -Summary(pl): Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata +Summary: A free and corrected port of Red Hat's GTK+/Qt theme +Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata +Version: %{kde3_ver} Group: Themes Requires: kdelibs >= 3.1 %description -n kde-style-QtCurve -A free and corrected port of Redhat's gtk/qt theme. KDE version. +A free and corrected port of Red Hat's GTK+/Qt theme. KDE3 version. + +%description -n kde-style-QtCurve -l pl.UTF-8 +Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. +Wersja pod KDE3. + +%package -n kde4-style-QtCurve +Summary: A free and corrected port of Red Hat's GTK+/Qt theme +Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata +Version: %{kde4_ver} +Group: Themes +Requires: kde4-kdebase >= 4.3.4 + +%description -n kde4-style-QtCurve +A free and corrected port of Red Hat's GTK+/Qt theme. KDE4 version. -%description -n kde-style-QtCurve -l pl -Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata. -Wersja pod KDE. +%description -n kde4-style-QtCurve -l pl.UTF-8 +Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. +Wersja pod KDE4. %package -n gtk-theme-QtCurve -Summary: A free and corrected port of Redhat's gtk/qt theme -Summary(pl): Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata +Summary: A free and corrected port of Red Hat's GTK+/Qt theme +Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata +Version: %{gtk1_ver} Group: Themes -Requires: gtk+ -Requires: theme-QtCurve-common = %{version}-%{release} +Requires: theme-QtCurve-common = %{ver}-%{release} %description -n gtk-theme-QtCurve -A free and corrected port of Redhat's gtk/qt theme. gtk version. +A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version. -%description -n gtk-theme-QtCurve -l pl -Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata. -Wersja pod gtk. +%description -n gtk-theme-QtCurve -l pl.UTF-8 +Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. +Wersja pod GTK+. %package -n gtk2-theme-QtCurve -Summary: A free and corrected port of Redhat's gtk/qt theme -Summary(pl): Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata +Summary: A free and corrected port of Red Hat's GTK+/Qt theme +Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata +Version: %{gtk2_ver} Group: Themes -Requires: gtk+ -Requires: theme-QtCurve-common = %{version}-%{release} +Requires: theme-QtCurve-common = %{ver}-%{release} %description -n gtk2-theme-QtCurve -A free and corrected port of Redhat's gtk/qt theme. gtk2 version. +A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version. -%description -n gtk2-theme-QtCurve -l pl -Darmowa i poprawiona wersja motywu gtk/qt zrobionego przez Redhata. -Wersja pod gtk2. +%description -n gtk2-theme-QtCurve -l pl.UTF-8 +Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. +Wersja pod GTK+2. %package -n theme-QtCurve-common -Summary: A free and corrected port of Redhats gtk/qt theme - common -Summary(pl): Darmowa i poprawiona wersja tematu gtk/qt zrobionego przez Redhata - common +Summary: A free and corrected port of Redhats GTK+/Qt theme - common +Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common +Version: %{ver} Group: Themes -Obsoletes: theme-bluecurve-common -Obsoletes: gtk2-theme-bluecurve Obsoletes: gtk-theme-bluecurve +Obsoletes: gtk2-theme-bluecurve Obsoletes: kde-style-bluecurve Obsoletes: kde-theme-bluecurve +Obsoletes: theme-bluecurve-common %description -n theme-QtCurve-common -A free and corrected port of Redhats gtk/qt theme. -Documentation and common files package. +A free and corrected port of Red Hat's GTK+/Qt theme. Documentation +and common files package. -%description -n theme-QtCurve-common -l pl -Darmowa i poprawiona wersja tematu gtk/qt zrobionego przez Redhata. -Pakiet z dokumentacja i plikami wspó³dzielonymi. +%description -n theme-QtCurve-common -l pl.UTF-8 +Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. +Pakiet z dokumentacja i plikami współdzielonymi. %prep -%setup -q +%setup -q -c -D %{?with_kde3:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2} %{?with_kde4:-a3} + +%if %{with gtk} +%if "%{_lib}" == "lib64" +cd %{name}-Gtk1-%{gtk1_ver} %patch0 -p1 +cd - +%endif +%endif %build -cp /usr/share/automake/config.sub admin +%if %{with kde3} +cd %{name}-KDE3-%{kde3_ver} +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + . + +%{__make} +cd - +%endif + +%if %{with kde4} +cd %{name}-KDE4-%{kde4_ver} +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + . -%{!?with_gtk:export "DO_NOT_COMPILE=gtk gtk2"} -##export UNSERMAKE=/usr/share/unsermake/unsermake -##%{__make} -f admin/Makefile.common cvs +%{__make} +cd - +%endif + +%if %{with gtk} +cd %{name}-Gtk1-%{gtk1_ver} +rm -f acinclude.m4 +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} %configure +%{__make} +cd - +%endif + +%if %{with gtk2} +cd %{name}-Gtk2-%{gtk2_ver} +%cmake \ + -DQTC_ADD_EVENT_FILTER=true \ + -DQTC_MODIFY_MOZILLA=true \ + -DQTC_MODIFY_MOZILLA_USER_JS=true \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + . %{__make} +cd - +%endif %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ +%if %{with kde3} +%{__make} -C %{name}-KDE3-%{kde3_ver} install \ + DESTDIR=$RPM_BUILD_ROOT +%endif + +%if %{with kde4} +%{__make} -C %{name}-KDE4-%{kde4_ver} install \ + DESTDIR=$RPM_BUILD_ROOT +%endif + +%if %{with gtk} +%{__make} -C %{name}-Gtk1-%{gtk1_ver} install \ + DESTDIR=$RPM_BUILD_ROOT +%endif + +%if %{with gtk2} +%{__make} -C %{name}-Gtk2-%{gtk2_ver} install \ DESTDIR=$RPM_BUILD_ROOT +chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl +%endif + rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la %clean rm -rf $RPM_BUILD_ROOT +%if %{with kde3} %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 +%{_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc +%{_datadir}/apps/QtCurve +%endif + +%if %{with kde4} +%files -n kde4-style-QtCurve +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/kde4/kstyle_qtcurve_config.so +%attr(755,root,root) %{_libdir}/kde4/kwin3_qtcurve.so +%attr(755,root,root) %{_libdir}/kde4/kwin_qtcurve_config.so +%attr(755,root,root) %{_libdir}/kde4/plugins/styles/qtcurve.so +%{_datadir}/apps/QtCurve/Agua.qtcurve +%{_datadir}/apps/QtCurve/Curve.qtcurve +%{_datadir}/apps/QtCurve/Flat.qtcurve +%{_datadir}/apps/QtCurve/Human.qtcurve +%{_datadir}/apps/QtCurve/Inverted.qtcurve +%{_datadir}/apps/QtCurve/Klearlooks.qtcurve +%{_datadir}/apps/QtCurve/Murrine.qtcurve +%{_datadir}/apps/QtCurve/Ozone.qtcurve +%{_datadir}/apps/QtCurve/Plastic.qtcurve +%{_datadir}/apps/QtCurve/Silk.qtcurve +%{_datadir}/apps/color-schemes/QtCurve.colors +%{_datadir}/apps/kstyle/themes/qtcurve.themerc +%{_datadir}/apps/kwin/qtcurve.desktop +%endif %if %{with gtk} %files -n gtk-theme-QtCurve %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so -%{_datadir}/themes/QtCurve*/gtk +%{_datadir}/themes/QtCurve/gtk +%endif +%if %{with gtk2} %files -n gtk2-theme-QtCurve %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so -%{_datadir}/themes/QtCurve*/gtk-2.0 +%dir %{_datadir}/themes/QtCurve/gtk-2.0 +%{_datadir}/themes/QtCurve/gtk-2.0/gtkrc +%{_datadir}/themes/QtCurve/gtk-2.0/icons3 +%{_datadir}/themes/QtCurve/gtk-2.0/icons4 +%{_datadir}/themes/QtCurve/gtk-2.0/kdeglobals +%attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl +%dir %{_datadir}/themes/QtCurve/mozilla +%{_datadir}/themes/QtCurve/mozilla/QtCurve.css +%{_datadir}/themes/QtCurve/mozilla/QtCurve-KDEButtonOrder.css +%{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml +%endif %files -n theme-QtCurve-common %defattr(644,root,root,755) -%doc ChangeLog README TODO -%dir %{_datadir}/themes/QtCurve* -%endif +%doc %{name}-KDE3-%{kde3_ver}/ChangeLog +%doc %{name}-KDE3-%{kde3_ver}/README +%doc %{name}-KDE3-%{kde3_ver}/TODO +%dir %{_datadir}/themes/QtCurve