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