]> git.pld-linux.org Git - packages/gnome-menus.git/blob - gnome-menus.spec
- updated to 3.32.0
[packages/gnome-menus.git] / gnome-menus.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Implementation of the draft Desktop Menu Specification
6 Summary(pl.UTF-8):      Implementacja specyfikacji menu systemów biurkowych
7 Name:           gnome-menus
8 Version:        3.32.0
9 Release:        1
10 License:        GPL v2+
11 Group:          X11/Applications
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-menus/3.32/%{name}-%{version}.tar.xz
13 # Source0-md5:  4262208c13f266d9ada7d356aada9e1b
14 URL:            http://www.gnome.org/
15 BuildRequires:  autoconf >= 2.62
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  gettext-tools >= 0.19.4
18 BuildRequires:  glib2-devel >= 1:2.30.0
19 BuildRequires:  gobject-introspection-devel >= 0.10.0
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 Requires:       %{name}-libs = %{version}-%{release}
25 Provides:       xdg-menus
26 Obsoletes:      gnome-menus-editor
27 Obsoletes:      gnome-menus-filter-default
28 Obsoletes:      gnome-menus-filter-desktop
29 # sr@Latn vs. sr@latin
30 Conflicts:      glibc-misc < 6:2.7
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 The package contains an implementation of the draft "Desktop Menu
35 Specification" from freedesktop.org:
36 http://www.freedesktop.org/Standards/menu-spec .
37
38 %description -l pl.UTF-8
39 Pakiet zawiera implementację specyfikacji menu systemów biurkowych z
40 freedesktop.org: http://www.freedesktop.org/Standards/menu-spec .
41
42 %package libs
43 Summary:        gnome-menus library
44 Summary(pl.UTF-8):      Biblioteka gnome-menus
45 Group:          Libraries
46 Requires:       glib2 >= 1:2.30.0
47 Provides:       gnome-vfs-menu-module = 1.1-1
48 Provides:       gnome-vfs2-module-menu = 1.1-1
49 Obsoletes:      gnome-vfs-menu-module
50 Obsoletes:      gnome-vfs2-module-menu
51 Obsoletes:      gnome-vfs2-vfolder-menu
52
53 %description libs
54 gnome-menus library.
55
56 %description libs -l pl.UTF-8
57 Biblioteka gnome-menus.
58
59 %package devel
60 Summary:        Header files of gnome-menus library
61 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gnome-menus
62 Group:          Development/Libraries
63 Requires:       %{name}-libs = %{version}-%{release}
64 Requires:       glib2-devel >= 1:2.30.0
65
66 %description devel
67 Headers for gnome-menus library.
68
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki gnome-menus.
71
72 %package static
73 Summary:        Static gnome-menus library
74 Summary(pl.UTF-8):      Statyczna biblioteka gnome-menus
75 Group:          Development/Libraries
76 Requires:       %{name}-devel = %{version}-%{release}
77
78 %description static
79 Static versions of gnome-menu library.
80
81 %description static -l pl.UTF-8
82 Statyczna biblioteka gnome-menu.
83
84 %prep
85 %setup -q
86
87 %build
88 %{__gettextize}
89 %{__libtoolize}
90 %{__aclocal} -I m4
91 %{__autoconf}
92 %{__autoheader}
93 %{__automake}
94 %configure \
95         --disable-silent-rules \
96         %{!?with_static_libs:--disable-static}
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106
107 install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications-merged
108
109 # not supported by glibc (as of 2.21-5)
110 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{gn,io}
111
112 %find_lang %{name} --with-gnome --all-name
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   libs -p /sbin/ldconfig
118 %postun libs -p /sbin/ldconfig
119
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README
123 %{_sysconfdir}/xdg/menus
124 %{_datadir}/desktop-directories
125
126 %files libs
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libgnome-menu-3.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libgnome-menu-3.so.0
130 %{_libdir}/girepository-1.0/GMenu-3.0.typelib
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libgnome-menu-3.so
135 %{_datadir}/gir-1.0/GMenu-3.0.gir
136 %{_pkgconfigdir}/libgnome-menu-3.0.pc
137 %{_includedir}/gnome-menus-3.0
138
139 %if %{with static_libs}
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/libgnome-menu-3.a
143 %endif
This page took 0.09397 seconds and 3 git commands to generate.