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