File: kdmtheme.spec

package info (click to toggle)
kdmtheme 1.1.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,280 kB
  • ctags: 104
  • sloc: sh: 9,035; perl: 2,730; cpp: 402; makefile: 38
file content (74 lines) | stat: -rw-r--r-- 1,945 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Name:		kdmtheme
Version:	1.1.2
Release:	1%{?dist}
Summary:	Theme Manager for KDM

License:	GPL
Group:		User Interface/Desktops
URL:		http://beta.smileaf.org

Source0:	http://beta.smileaf.org/files/%{name}/%{name}-%{version}.tar.bz2
Patch0:		kdmtheme-1.1.1-entry.patch

BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	  kdelibs-devel, desktop-file-utils, kdebase-devel

Requires:         %{_docdir}/HTML/en/common
Requires(post):   desktop-file-utils
Requires(postun): desktop-file-utils

%description
KDM Theme manager is just what it says a theme Manager for KDM.
This control module allows you to easily add, remove and select
any KDM theme you want.

%prep
%setup -q

%patch0 -p0 -b .

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# Fix absolute symlink
rm -f $RPM_BUILD_ROOT%{_docdir}/HTML/en/%{name}/common
ln -s ../common $RPM_BUILD_ROOT%{_docdir}/HTML/en/%{name}/common

desktop-file-install --vendor fedora \
    --add-category X-Fedora \
    --add-category System \
    --delete-original \
    --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
    $RPM_BUILD_ROOT%{_datadir}/applications/kde/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(-,root,root,-)
%doc README
%{_datadir}/applications/fedora-%{name}.desktop
%{_libdir}/kde3/kcm_%{name}.la
%{_libdir}/kde3/kcm_%{name}.so
%{_docdir}/HTML/*/%{name}/

%changelog
* Tue Jun 13 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 1.1.1-1
- Initial package.