]> git.pld-linux.org Git - packages/QtCurve.git/blame - QtCurve.spec
- outdated
[packages/QtCurve.git] / QtCurve.spec
CommitLineData
e2138fbb 1# TODO:
e78c8e0f 2# - kde4
4dafcdae 3# - gtk1 no longer updated. drop after dropping last gtk+ 1.x app
df5f2cf9 4#
7286a96e 5# Conditional build:
ed28eafc 6%bcond_without gtk # don't build GTK+ styles
00a3d52c 7%bcond_without gtk2 # don't build GTK+2 styles
15ae11f4 8%bcond_without kde # don't build KDE styles
7286a96e 9#
8650aea8
KK
10%define ver 0.68.1
11%define kde_ver 0.68.1
12%define gtk2_ver 0.68.1
2327ea5c 13%define gtk1_ver 0.42.2
27b2bea1 14Summary: A free and corrected port of Red Hat's GTK+/Qt theme
90b035bc 15Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
754634b4 16Name: QtCurve
15ae11f4 17Version: %{ver}
5e47f7e5 18Release: 1
754634b4
JB
19License: GPL
20Group: Themes
e2138fbb 21Source0: http://home.freeuk.com/cpdrummond/%{name}-KDE3-%{kde_ver}.tar.bz2
8650aea8 22# Source0-md5: 2451c8e624f8e07bfaf5584f4208c9d7
e2138fbb 23Source1: http://home.freeuk.com/cpdrummond/%{name}-Gtk2-%{gtk2_ver}.tar.bz2
8650aea8 24# Source1-md5: c7c2324e05aa09ecb26d1f9cc81a5e4a
2327ea5c
KK
25Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz
26# Source2-md5: 8219f58493ca4e65a8fe61ee76eca522
8650aea8 27Patch0: %{name}-Gtk1-lib64.patch
a14cbe44 28URL: http://www.kde-look.org/content/show.php?content=40492
00a3d52c 29BuildRequires: autoconf
47b9c578 30BuildRequires: automake
e78c8e0f 31BuildRequires: cmake
b7ff1e84 32%{?with_gtk:BuildRequires: gtk+-devel}
00a3d52c 33%{?with_gtk2:BuildRequires: gtk+2-devel}
15ae11f4 34%{?with_kde:BuildRequires: kdelibs-devel >= 3.1}
2327ea5c 35BuildRequires: libtool
00a3d52c 36BuildRequires: pkgconfig
e78c8e0f 37BuildRequires: rpmbuild(macros) >= 1.293
f7bfae83 38BuildRequires: sed > 4.0
754634b4
JB
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
27b2bea1 42A free and corrected port of Red Hat's GTK+/Qt theme.
754634b4 43
d7edd7b0 44%description -l pl.UTF-8
27b2bea1 45Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
754634b4 46
4e7ad8f7 47%package -n kde-style-QtCurve
27b2bea1 48Summary: A free and corrected port of Red Hat's GTK+/Qt theme
90b035bc 49Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
c9dfc0cd 50Version: %{kde_ver}
754634b4 51Group: Themes
387c4dbb 52Requires: kdelibs >= 3.1
754634b4 53
4e7ad8f7 54%description -n kde-style-QtCurve
27b2bea1 55A free and corrected port of Red Hat's GTK+/Qt theme. KDE version.
754634b4 56
d7edd7b0 57%description -n kde-style-QtCurve -l pl.UTF-8
27b2bea1 58Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
27a34c4d 59Wersja pod KDE.
754634b4 60
4e7ad8f7 61%package -n gtk-theme-QtCurve
27b2bea1 62Summary: A free and corrected port of Red Hat's GTK+/Qt theme
90b035bc 63Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
15ae11f4 64Version: %{gtk1_ver}
5474a1c3 65Group: Themes
15ae11f4 66Requires: theme-QtCurve-common = %{ver}-%{release}
754634b4 67
4e7ad8f7 68%description -n gtk-theme-QtCurve
27b2bea1 69A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version.
754634b4 70
d7edd7b0 71%description -n gtk-theme-QtCurve -l pl.UTF-8
27b2bea1 72Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
4b59ebdb 73Wersja pod GTK+.
754634b4 74
4e7ad8f7 75%package -n gtk2-theme-QtCurve
27b2bea1 76Summary: A free and corrected port of Red Hat's GTK+/Qt theme
90b035bc 77Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
15ae11f4 78Version: %{gtk2_ver}
5474a1c3 79Group: Themes
15ae11f4 80Requires: theme-QtCurve-common = %{ver}-%{release}
754634b4 81
4e7ad8f7 82%description -n gtk2-theme-QtCurve
27b2bea1 83A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version.
754634b4 84
d7edd7b0 85%description -n gtk2-theme-QtCurve -l pl.UTF-8
27b2bea1 86Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
4b59ebdb 87Wersja pod GTK+2.
754634b4 88
4e7ad8f7 89%package -n theme-QtCurve-common
4b59ebdb 90Summary: A free and corrected port of Redhats GTK+/Qt theme - common
90b035bc 91Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common
c9dfc0cd 92Version: %{ver}
5474a1c3 93Group: Themes
5474a1c3 94Obsoletes: gtk-theme-bluecurve
e78c8e0f 95Obsoletes: gtk2-theme-bluecurve
5474a1c3 96Obsoletes: kde-style-bluecurve
97Obsoletes: kde-theme-bluecurve
e78c8e0f 98Obsoletes: theme-bluecurve-common
6b908541 99
4e7ad8f7 100%description -n theme-QtCurve-common
e78c8e0f
ER
101A free and corrected port of Red Hat's GTK+/Qt theme. Documentation
102and common files package.
754634b4 103
d7edd7b0 104%description -n theme-QtCurve-common -l pl.UTF-8
27b2bea1 105Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
d7edd7b0 106Pakiet z dokumentacja i plikami współdzielonymi.
754634b4
JB
107
108%prep
15ae11f4 109%setup -q -c -D %{?with_kde:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2}
754634b4 110
f4dbcdaf 111%if %{with gtk}
112%if "%{_lib}" == "lib64"
113cd %{name}-Gtk1-%{gtk1_ver}
8650aea8 114%patch0 -p1
f4dbcdaf 115cd -
116%endif
117%endif
118
119
754634b4 120%build
15ae11f4 121%if %{with kde}
2327ea5c 122cd %{name}-KDE3-%{kde_ver}
e78c8e0f
ER
123%cmake \
124 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
60a21061 125 .
d0f6aa39 126
754634b4 127%{__make}
2327ea5c 128cd -
15ae11f4 129%endif
2327ea5c
KK
130
131%if %{with gtk}
132cd %{name}-Gtk1-%{gtk1_ver}
133%{__libtoolize}
134%{__aclocal}
135%{__autoconf}
136%{__autoheader}
137%{__automake}
138%configure
139%{__make}
140cd -
141%endif
142
143%if %{with gtk2}
144cd %{name}-Gtk2-%{gtk2_ver}
e78c8e0f 145%cmake \
84390b5c
ER
146 -DQTC_ADD_EVENT_FILTER=true \
147 -DQTC_MODIFY_MOZILLA=true \
148 -DQTC_MODIFY_MOZILLA_USER_JS=true \
e78c8e0f 149 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
60a21061 150 .
d0f6aa39 151
2327ea5c
KK
152%{__make}
153cd -
154%endif
754634b4
JB
155
156%install
157rm -rf $RPM_BUILD_ROOT
158
15ae11f4 159%if %{with kde}
2327ea5c 160%{__make} -C %{name}-KDE3-%{kde_ver} install \
27a34c4d 161 DESTDIR=$RPM_BUILD_ROOT
15ae11f4 162%endif
754634b4 163
2327ea5c
KK
164%if %{with gtk}
165%{__make} -C %{name}-Gtk1-%{gtk1_ver} install \
166 DESTDIR=$RPM_BUILD_ROOT
167%endif
168
169%if %{with gtk2}
170%{__make} -C %{name}-Gtk2-%{gtk2_ver} install \
171 DESTDIR=$RPM_BUILD_ROOT
2327ea5c 172
84390b5c 173chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
15ae11f4 174%endif
84390b5c 175
7286a96e
JB
176rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la
177
754634b4
JB
178%clean
179rm -rf $RPM_BUILD_ROOT
180
15ae11f4 181%if %{with kde}
4e7ad8f7 182%files -n kde-style-QtCurve
754634b4 183%defattr(644,root,root,755)
a5ccfc6f 184%{_libdir}/kde3/kstyle_qtcurve_config.la
185%attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so
754634b4 186%attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so
6b908541 187%{_datadir}/apps/kstyle/themes/qtcurve*.themerc
e78c8e0f 188%{_datadir}/apps/kstyle/themes/qtc_klearlooks.themerc
19458cf5 189%{_datadir}/apps/QtCurve
15ae11f4 190%endif
754634b4 191
5890c07d 192%if %{with gtk}
4e7ad8f7 193%files -n gtk-theme-QtCurve
754634b4 194%defattr(644,root,root,755)
754634b4 195%attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so
2327ea5c 196%{_datadir}/themes/QtCurve/gtk
00a3d52c 197%endif
754634b4 198
00a3d52c 199%if %{with gtk2}
4e7ad8f7 200%files -n gtk2-theme-QtCurve
754634b4 201%defattr(644,root,root,755)
754634b4 202%attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so
84390b5c
ER
203%dir %{_datadir}/themes/QtCurve/gtk-2.0
204%{_datadir}/themes/QtCurve/gtk-2.0/gtkrc
205%{_datadir}/themes/QtCurve/gtk-2.0/icons3
206%{_datadir}/themes/QtCurve/gtk-2.0/icons4
207%attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
208%dir %{_datadir}/themes/QtCurve/mozilla
209%{_datadir}/themes/QtCurve/mozilla/QtCurve.css
8650aea8 210%{_datadir}/themes/QtCurve/mozilla/QtCurve-KDEButtonOrder.css
84390b5c 211%{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml
00a3d52c 212%endif
754634b4 213
4e7ad8f7 214%files -n theme-QtCurve-common
754634b4 215%defattr(644,root,root,755)
84a6d42d
BZ
216%doc %{name}-KDE3-%{kde_ver}/ChangeLog
217%doc %{name}-KDE3-%{kde_ver}/README
218%doc %{name}-KDE3-%{kde_ver}/TODO
2327ea5c 219%dir %{_datadir}/themes/QtCurve
This page took 0.254169 seconds and 4 git commands to generate.