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