]> git.pld-linux.org Git - packages/mate-desktop.git/blob - mate-desktop.spec
up to 1.5.8
[packages/mate-desktop.git] / mate-desktop.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable gtk-doc
4
5 Summary:        Shared code for mate-panel, mate-session, mate-file-manager, etc
6 Name:           mate-desktop
7 Version:        1.5.8
8 Release:        1
9 License:        GPL v2+ and LGPL v2+ and MIT
10 Group:          X11/Applications
11 Source0:        http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
12 # Source0-md5:  c3b13f8d9125578c98cdf4c8ef940bfb
13 URL:            http://wiki.mate-desktop.org/mate-desktop
14 BuildRequires:  desktop-file-utils
15 BuildRequires:  docbook-dtd412-xml
16 BuildRequires:  gettext-devel
17 BuildRequires:  intltool >= 0.40.0
18 BuildRequires:  libunique-devel
19 BuildRequires:  mate-common
20 %{?with_apidocs:BuildRequires:  mate-doc-utils >= 1.1.0}
21 BuildRequires:  rpmbuild(find_lang) >= 1.36
22 BuildRequires:  startup-notification-devel
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
25 Requires:       %{name}-libs = %{version}-%{release}
26 Requires:       glib2 >= 1:2.26.0
27 # for identifying monitors from pnp.ids (libmate-desktop/display-name.c)
28 Requires:       hwdata >= 0.243-6
29 Requires:       xdg-user-dirs-gtk >= 0.10-2
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 The mate-desktop package contains an internal library (libmatedesktop)
34 used to implement some portions of the MATE desktop, and also some
35 data files and other shared components of the MATE user environment.
36
37 %package libs
38 Summary:        Shared libraries for libmate-desktop
39 License:        LGPL v2+
40 Group:          Libraries
41
42 %description libs
43 Shared libraries for libmate-desktop
44
45 %package devel
46 Summary:        Libraries and headers for libmate-desktop
47 License:        LGPL v2+
48 Group:          Development/Libraries
49 Requires:       %{name}-libs = %{version}-%{release}
50
51 %description devel
52 Libraries and header files for the MATE-internal private library
53 libmatedesktop.
54
55 %package apidocs
56 Summary:        mate-desktop API documentation
57 Summary(pl.UTF-8):      Dokumentacja API mate-desktop
58 Group:          Documentation
59 Requires:       gtk-doc-common
60
61 %description apidocs
62 mate-desktop API documentation.
63
64 %description apidocs -l pl.UTF-8
65 Dokumentacja API mate-desktop.
66
67 %prep
68 %setup -q
69
70 %build
71 NOCONFIGURE=1 ./autogen.sh
72 %configure \
73         --disable-silent-rules \
74         --enable-gnucat \
75         --disable-scrollkeeper \
76         --disable-static \
77         --disable-schemas-compile \
78         --with-pnp-ids-path=/lib/hwdata/pnp.ids \
79         --enable-unique \
80         %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
81         --with-omf-dir=%{_datadir}/omf/%{name}
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-desktop-2.la
91
92 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
93 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-desktop.convert
94
95 desktop-file-install \
96         --remove-category="MATE" \
97         --add-category="X-Mate" \
98         --delete-original \
99         --dir=$RPM_BUILD_ROOT%{_desktopdir} \
100 $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
101
102 %find_lang %{name} --with-mate --with-omf --all-name
103
104 %post   libs -p /sbin/ldconfig
105 %postun libs -p /sbin/ldconfig
106
107 %post
108 %glib_compile_schemas
109
110 %postun
111 %glib_compile_schemas
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files -f %{name}.lang
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING COPYING.LIB NEWS README
119 %attr(755,root,root) %{_bindir}/mate-about
120 %{_mandir}/man1/mate-about.1*
121 %{_pixmapsdir}/gnu-cat*
122 %{_desktopdir}/mate-about.desktop
123 %dir %{_datadir}/omf/%{name}/fdl
124 %dir %{_datadir}/omf/%{name}/gpl
125 %dir %{_datadir}/omf/%{name}/lgpl
126 %{_datadir}/mate-about
127 %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
128
129 %files libs
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.*
132 %ghost %{_libdir}/libmate-desktop-2.so.17
133
134 %files devel
135 %defattr(644,root,root,755)
136 %{_libdir}/libmate-desktop-2.so
137 %{_pkgconfigdir}/mate-desktop-2.0.pc
138 %{_includedir}/mate-desktop-2.0
139
140 %if %{with apidocs}
141 %files apidocs
142 %defattr(644,root,root,755)
143 %{_gtkdocdir}/mate-desktop
144 %endif
This page took 0.165943 seconds and 4 git commands to generate.