fix #296624 rename faulty
[opensuse:kupdateapplet.git] / package / opensuse-updater-kde.spec
1 #
2 # spec file for package opensuse-updater (Version 0.1.svn.r390)
3 #
4 # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
7 #
8 # Please submit bugfixes or comments via http://bugs.opensuse.org/
9 #
10
11 Name:           opensuse-updater-kde
12 BuildRequires:  kdelibs3-devel >= 3.5.7
13 BuildRequires:  kdepim3-devel update-desktop-files
14 BuildRequires:  cmake >= 2.4.6
15 License:        GPL
16 Group:          System/Management
17 Summary:        KDE updater applet for OpenSUSE
18 Version:        0.5
19 Release:        1
20 URL:            http://en.opensuse.org/KDE_Updater_Applet
21 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
22 Source0:        %{name}-%{version}.tar.bz2
23 Requires:       zypper >= 0.8.4
24 Provides:                               opensuse-updater = 0.4
25 Obsoletes:      opensuse-updater <= 0.4
26 Conflicts:      
27
28 %description
29 KDE updater applet for OpenSUSE
30
31 Authors:
32 --------
33     Narayan Newton <narayannewton@gmail.com>
34     Duncan Mac-Vicar <dmacvicar@novell.com>
35     Martin Vidner <mvidner@novell.com>
36                 Thomas Goettlicher <tgoettlicher@novell.com>
37
38 %prep
39 %setup -q -n %{name}-%{version} 
40 . /etc/opt/kde3/common_options
41
42 %build
43 . /etc/opt/kde3/common_options
44 mkdir build
45 cd build
46 cmake -DCMAKE_INSTALL_PREFIX=/opt/kde3 \
47       -DLIB=%{_lib} \
48       -DCMAKE_C_FLAGS="%{optflags}" \
49       -DCMAKE_CXX_FLAGS="%{optflags}" \
50       -DCMAKE_BUILD_TYPE=Release \
51       -DCMAKE_SKIP_RPATH=1 \
52       ..
53 make
54
55 %install
56 . /etc/opt/kde3/common_options
57 cd build
58 make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
59 rm -rf $RPM_BUILD_ROOT/opt/kde3/include
60
61 %suse_update_desktop_file opensuseupdater
62 %find_lang opensuseupdater
63
64 %post
65 %run_ldconfig
66
67 %postun
68 %run_ldconfig
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 #%files -f opensuseupdater.lang
74 %files
75 %defattr(-,root,root)
76 /opt/kde3/bin/*
77 /opt/kde3/share/apps/opensuseupdater
78 /opt/kde3/share/icons/hicolor/*
79 /opt/kde3/share/applnk/*
80 /opt/kde3/share/autostart/*.desktop
81 /opt/kde3/share/servicetypes/*
82 /opt/kde3/share/applications/kde/opensuseupdater.desktop
83 /opt/kde3/%{_lib}/*
84 /opt/kde3/share/services/*
85 /opt/kde3/share/config.kcfg/opensuseupdater_settings.kcfg
86 #/opt/kde3/share/doc/*
87 /usr/sbin/zypper_install
88 /opt/kde3/share/locale
89
90 %changelog -n opensuse-updater-kde
91 * Fri Jul 30 2006 - tgoettlicher@novell.com
92 - add recurring notification
93 * Fri Jul 27 2006 - tgoettlicher@novell.com
94 - complete rewrite 
95 * Wed Aug 30 2006 - stbinner@suse.de
96 - fix build
97 * Tue Aug 29 2006 - dmacvicar@suse.de
98 - revision 390
99
100