]> git.pld-linux.org Git - packages/mate-panel.git/blobdiff - mate-panel.spec
no hardcoded mate- prefix for applications.menu
[packages/mate-panel.git] / mate-panel.spec
index 6deff293257b80179c91a4a0aba37f4824732680..2ae41cc62126180bedc42518a4b7c55efcf40808 100644 (file)
@@ -1,78 +1,56 @@
 # TODO
-# - docs broken, like mate-desktop
-#   fix gtk-doc building (probably missing some dtd's)
-#xsltproc -o mate-applet-clock-C.omf --stringparam db2omf.basename mate-applet-clock --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/usr/share/omf" --stringparam db2omf.help_dir "/usr/share/mate/help" --stringparam db2omf.omf_in "/home/users/glen/rpm/packages/BUILD.i686-linux/mate-panel-1.5.3/help/clock/mate-applet-clock.omf.in"  `/usr/bin/pkg-config --variable db2omf mate-doc-utils` C/mate-applet-clock.xml || { rm -f "mate-applet-clock-C.omf"; exit 1; }
-#if ! test -d ar/; then mkdir ar/; fi
-#if [ -f "C/mate-applet-clock.xml" ]; then d="../"; else d="/home/users/glen/rpm/packages/BUILD.i686-linux/mate-panel-1.5.3/help/clock/"; fi; \
-#mo="ar/ar.mo"; \
-#if [ -f "${mo}" ]; then mo="../${mo}"; else mo="/home/users/glen/rpm/packages/BUILD.i686-linux/mate-panel-1.5.3/help/clock/${mo}"; fi; \
-#(cd ar/ && \
-#  `which xml2po` -m docbook -e -t "${mo}" \
-#    "${d}C/mate-applet-clock.xml" > mate-applet-clock.xml.tmp && \
-#    cp mate-applet-clock.xml.tmp mate-applet-clock.xml && rm -f mate-applet-clock.xml.tmp)
-#runtime error
-#xsltApplyStylesheet: saving to mate-applet-clock-C.omf may not be possible
-#make[3]: *** [mate-applet-clock-C.omf] Error 1
-#make[3]: *** Waiting for unfinished jobs....
-#Making all in mate-panel-applet
-#make[4]: Entering directory `/home/users/glen/rpm/BUILD/i686-linux/mate-panel-1.5.3/doc/reference/mate-panel-applet'
-#  DOC   Scanning header files
-#  DOC   Introspecting gobjects
-#libtool: link: cannot find the library `../../../libmate-panel-applet/libmate-panel-applet-3.la' or unhandled argument `../../../libmate-panel-applet/libmate-panel-applet-3.la'
-#Linking of scanner failed:
-#make[4]: *** [scan-build.stamp] Error 1
-#make[4]: Leaving directory `/home/users/
 # - check direct deps:
 #mate-panel-1.5.3-0.1.i686 marks mate-menus-libs-1.5.0-1.i686 (cap libmate-menu.so.2)
 #mate-panel-1.5.3-0.1.i686 marks mate-panel-libs-1.5.3-0.1.i686 (cap libmate-panel-applet-4.so.1)
 #mate-panel-1.5.3-0.1.i686 marks libmateweather-1.5.0-1.i686 (cap libmateweather.so.1)
 #mate-panel-1.5.3-0.1.i686 marks libmatewnck-1.5.0-1.i686 (cap libmatewnck.so.0)
-# - apidoc subpackage
-# - panel does not start:
-#(mate-panel:7862): GLib-GIO-ERROR **: Settings schema 'org.mate.caja.desktop' is not installed
 
 # Conditional build:
-%bcond_with    doc     # gtk doc. broken
+%bcond_without apidocs         # disable gtk-doc
 
 Summary:       MATE Desktop panel applets
 Name:          mate-panel
 Version:       1.5.3
-Release:       0.1
+Release:       3
 # libs are LGPLv2+ applications GPLv2+
 License:       GPL v2+
 Group:         X11/Applications
-URL:           http://mate-desktop.org
 Source0:       http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
 # Source0-md5: 72029cbcd38bee447df92c8774452bf3
+Patch0:                no-xdg-menu-prefix.patch
+URL:           http://wiki.mate-desktop.org/mate-panel
+BuildRequires: NetworkManager-gtk-lib-devel
+BuildRequires: dbus-glib-devel
+BuildRequires: dconf-devel
 BuildRequires: desktop-file-utils
+BuildRequires: glib2-devel >= 1:2.25.12
+BuildRequires: gobject-introspection-devel
+BuildRequires: gsettings-desktop-schemas-devel
+BuildRequires: gtk+2-devel >= 2:2.19.7
 BuildRequires: icon-naming-utils
+BuildRequires: intltool >= 0.40.0
+BuildRequires: libcanberra-devel
+BuildRequires: libmateweather-devel
+BuildRequires: libmatewnck-devel
+BuildRequires: librsvg-devel
 BuildRequires: mate-common
-BuildRequires: pkgconfig(dbus-glib-1)
-BuildRequires: pkgconfig(dconf)
-BuildRequires: pkgconfig(gobject-introspection-1.0)
-BuildRequires: pkgconfig(gsettings-desktop-schemas)
-BuildRequires: pkgconfig(gtk+-2.0)
-BuildRequires: pkgconfig(libcanberra)
-BuildRequires: pkgconfig(libmate-menu)
-BuildRequires: pkgconfig(libmatewnck)
-BuildRequires: pkgconfig(libnm-gtk)
-BuildRequires: pkgconfig(librsvg-2.0)
-BuildRequires: pkgconfig(mate-desktop-2.0)
-%{?with_apidoc:BuildRequires:  pkgconfig(mate-doc-utils)}
-BuildRequires: pkgconfig(mateweather)
-BuildRequires: pkgconfig(pango)
-BuildRequires: pkgconfig(sm)
-BuildRequires: pkgconfig(x11)
+BuildRequires: mate-desktop-devel
+%{?with_apidocs:BuildRequires: mate-doc-utils}
+BuildRequires: mate-menus-devel
+BuildRequires: pango-devel >= 1:1.15.4
 BuildRequires: popt-devel
+BuildRequires: rpmbuild(find_lang) >= 1.36
 BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libICE-devel
+BuildRequires: xorg-lib-libSM-devel
+BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xz
 Requires:      %{name}-libs = %{version}-%{release}
+Requires:      desktop-file-utils
 Requires:      glib2 >= 1:2.26.0
 Requires:      gsettings-desktop-schemas
-# needed as nothing else requires it
-Requires:      desktop-file-utils
 Requires:      gtk-update-icon-cache
-Requires:      mate-session-manager
+Requires:      mate-window-manager
 Suggests:      mate-settings-daemon
 # for fish
 Requires:      fortune-mod
@@ -82,24 +60,36 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 MATE Desktop panel applets
 
 %package libs
-Summary:       Shared libraries for mate-panel
+Summary:       Shared libraries for %{name}
 License:       LGPL v2+
 Group:         Libraries
-Requires:      %{name} = %{version}-%{release}
 
 %description libs
 Shared libraries for libmate-desktop
 
 %package devel
-Summary:       Development files for mate-panel
+Summary:       Development files for %{name}
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
-Development files for mate-panel
+Development files for %{name}
+
+%package apidocs
+Summary:       %{name} API documentation
+Summary(pl.UTF-8):     Dokumentacja API %{name}
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+%{name} API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API %{name}.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 NOCONFIGURE=1 ./autogen.sh
@@ -110,12 +100,10 @@ NOCONFIGURE=1 ./autogen.sh
        --disable-schemas-compile \
        --with-x \
        --enable-network-manager \
-       --libexecdir=%{_libexecdir}/mate-panel \
-       --with-html-dir=%{_gtkdocdir} \
-       %{?with_doc:--enable-gtk-doc} \
-       --enable-introspection
+       --libexecdir=%{_libdir}/%{name} \
+       --with-html-dir=%{_gtkdocdir}
 
-%{__make}  \
+%{__make} \
        V=1
 
 %install
@@ -123,15 +111,15 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
 
 desktop-file-install \
         --remove-category="MATE" \
         --add-category="X-Mate" \
         --dir=$RPM_BUILD_ROOT%{_desktopdir} \
-$RPM_BUILD_ROOT%{_desktopdir}/mate-panel.desktop
+$RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
 
-%find_lang %{name}
+%find_lang %{name} --with-mate --with-omf --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -153,33 +141,38 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING README
 %attr(755,root,root) %{_bindir}/mate-desktop-item-edit
-%attr(755,root,root) %{_bindir}/mate-panel
-%attr(755,root,root) %{_bindir}/mate-panel-test-applets
-%{_mandir}/man1/*
+%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/%{name}-test-applets
+%{_mandir}/man1/%{name}.1*
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/clock-applet
+%attr(755,root,root) %{_libdir}/%{name}/fish-applet
+%attr(755,root,root) %{_libdir}/%{name}/%{name}-add
+%attr(755,root,root) %{_libdir}/%{name}/notification-area-applet
+%attr(755,root,root) %{_libdir}/%{name}/wnck-applet
 %{_libdir}/girepository-1.0/MatePanelApplet-4.0.typelib
-%{_libexecdir}/mate-panel
 %{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml
-%{_desktopdir}/mate-panel.desktop
 %{_datadir}/dbus-1/services/org.mate.panel.*.service
-%{_datadir}/omf/mate-applet-fish
-%{_datadir}/omf/mate-applet-clock
+%{_datadir}/%{name}
+%{_datadir}/%{name}rc
 %{_iconsdir}/hicolor/*/*/*
-%{_datadir}/mate/help/mate-applet-clock
-%{_datadir}/mate/help/mate-applet-fish
-%{_datadir}/mate-panel
-%{_datadir}/mate-panelrc
+%{_desktopdir}/%{name}.desktop
 
 %files libs
 %defattr(644,root,root,755)
 %doc COPYING.LIB
-%attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so.*.*.*
-%ghost %{_libdir}/libmate-panel-applet-4.so.1
+%attr(755,root,root) %{_libdir}/lib%{name}-applet-4.so.*.*.*
+%ghost %{_libdir}/lib%{name}-applet-4.so.1
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libmate-panel-applet-4.so
-%{_includedir}/mate-panel-4.0
+%{_libdir}/lib%{name}-applet-4.so
+%{_includedir}/%{name}-4.0
 %{_pkgconfigdir}/libmatepanelapplet-4.0.pc
 %{_datadir}/gir-1.0/MatePanelApplet-4.0.gir
-# apidoc
-%{_gtkdocdir}/mate-panel-applet
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/%{name}-applet
+%endif
This page took 0.058643 seconds and 4 git commands to generate.