]> git.pld-linux.org Git - packages/plank.git/blob - plank.spec
5c5eda0f39d87c0578e6678bbd5f97e230529db3
[packages/plank.git] / plank.spec
1 %define         rel             1
2 %define         subver  734
3 Summary:        Plank is meant to be the simplest dock on the planet
4 Name:           plank
5 Version:        0.2.0
6 Release:        0.%{subver}.%{rel}
7 License:        GPL v3+
8 Group:          X11/Applications
9 URL:            http://wiki.go-docky.com/index.php?title=Plank:Introduction
10 # bzr branch lp:plank; cd plank; bzr up -r734
11 # ./autogen.sh; make dist
12 Source0:        %{name}-%{version}.%{subver}.tar.xz
13 # Source0-md5:  2f57cd8444c3c6eab3534739c5814440
14 BuildRequires:  bamf3-devel
15 BuildRequires:  desktop-file-utils
16 BuildRequires:  gettext-devel
17 BuildRequires:  glib2-devel
18 BuildRequires:  gtk+3-devel
19 BuildRequires:  intltool
20 BuildRequires:  libgee0.6-devel
21 BuildRequires:  libwnck-devel
22 BuildRequires:  libxml2-progs
23 BuildRequires:  vala-libgee0.6
24 BuildRequires:  pkgconfig
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  vala
27 BuildRequires:  xz
28 Requires:       bamf-daemon
29 Requires:       gtk-update-icon-cache
30 Requires:       hicolor-icon-theme
31 Requires(post,postun):  /sbin/ldconfig
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 A very simple dock written in Vala.
36
37 %package devel
38 Summary:        Development files for %{name}
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 Development files for %{name}
44
45 %prep
46 %setup -q -n %{name}-%{version}.%{subver}
47
48 %build
49 %configure
50 %{__make} V=1
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libplank.la
58
59 # no apport
60 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/apport/crashdb.conf.d/%{name}-crashdb.conf
61 %{__rm} $RPM_BUILD_ROOT%{_datadir}/apport/package-hooks/source_%{name}.py
62
63 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
64
65 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sma
66
67 %find_lang %{name}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 /sbin/ldconfig
74 %update_desktop_database
75 %update_icon_cache hicolor
76
77 %postun
78 /sbin/ldconfig
79 %update_desktop_database
80 %update_icon_cache hicolor
81
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_bindir}/%{name}
85 %attr(755,root,root) %{_libdir}/libplank.so.*.*.*
86 %ghost %{_libdir}/libplank.so.0
87 %{_mandir}/man1/%{name}.1*
88 %{_datadir}/%{name}
89 %{_desktopdir}/%{name}.desktop
90 %{_iconsdir}/hicolor/*/apps/%{name}.svg
91
92 %files devel
93 %defattr(644,root,root,755)
94 %{_libdir}/libplank.so
95 %{_pkgconfigdir}/%{name}.pc
96 %{_includedir}/%{name}
97 %{_datadir}/vala/vapi/%{name}.vapi
98 %{_datadir}/vala/vapi/%{name}.deps
This page took 0.078992 seconds and 2 git commands to generate.