]> git.pld-linux.org Git - packages/devhelp.git/blobdiff - devhelp.spec
- updated to 0.13
[packages/devhelp.git] / devhelp.spec
index 04ac2f5006983932102ee57db05c5e27af7f31d6..b7882a6bc4a140e5e0d363714fada32b7752a652 100644 (file)
@@ -1,90 +1,94 @@
-#
-# Conditional build:
-%bcond_without mozilla_firefox # build with mozilla-firefox-devel
-#
-%define                minmozver       5:1.7
-Summary:       DevHelp is a developer's help program for GNOME
-Summary(pl):   Program pomocy dla programistów GNOME
+Summary:       API documentation browser for GNOME
+Summary(pl.UTF-8):     Przeglądarka dokumentacji API dla GNOME
 Name:          devhelp
-Version:       0.12
+Version:       0.13
 Release:       1
 License:       GPL v2+
 Group:         X11/Applications
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.12/%{name}-%{version}.tar.gz
-# Source0-md5: e211ec1a75dba00d8e71a66e2ab2aec3
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.13/%{name}-%{version}.tar.bz2
+# Source0-md5: 230c05c1e13ba6ae44c94e034ea77348
 Patch0:                %{name}-bookdir.patch
 Patch1:                %{name}-mozilla_includes.patch
 Patch2:                %{name}-desktop.patch
 URL:           http://www.imendio.com/projects/devhelp/
-BuildRequires: GConf2-devel
+BuildRequires: GConf2-devel >= 2.16.0
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gnome-common >= 2.8.0
-BuildRequires: gnome-vfs2-devel >= 2.10.0-2
-BuildRequires: gtk+2-devel >= 2:2.6.4
-BuildRequires: libglade2-devel >= 1:2.5.1
+BuildRequires: gnome-common >= 2.12.0
+BuildRequires: gnome-vfs2-devel >= 2.16.3
+BuildRequires: gtk+2-devel >= 2:2.10.9
+BuildRequires: libglade2-devel >= 1:2.6.0
 BuildRequires: libtool
-%if %{with mozilla_firefox}
-BuildRequires: mozilla-firefox-devel
-%else
-BuildRequires: mozilla-devel >= %{minmozver}
-%endif
+BuildRequires: libwnck-devel >= 2.16.3
+BuildRequires: xulrunner-devel >= 1.8.0.4
 BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.311
 BuildRequires: zlib-devel
-Requires(post,preun):  GConf2
+Requires(post,preun):  GConf2 >= 2.16.0
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
 Requires:      %{name}-libs = %{version}-%{release}
-%if %{with mozilla_firefox}
-%requires_eq   mozilla-firefox
-%else
-Requires:      mozilla = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla)
-%endif
+%requires_eq   xulrunner
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # can be provided by mozilla or mozilla-embedded
 %define                _noautoreqdep   libgtkembedmoz.so libxpcom.so
 
 %description
-DevHelp is a developer's help program for GNOME.
+API documentation browser for GNOME.
 
-%description -l pl
-Program pomocy dla programistów GNOME.
+%description -l pl.UTF-8
+Przeglądarka dokumentacji API dla GNOME.
 
 %package libs
 Summary:       Library to embed Devhelp in other applications
-Summary(pl):   Biblioteka do osadzania Devhelp w innych aplikacjach
+Summary(pl.UTF-8):     Biblioteka do osadzania Devhelp w innych aplikacjach
 Group:         Libraries
 
 %description libs
-Library of Devhelp for embedding into other applications..
+Library of Devhelp for embedding into other applications.
 
-%description libs -l pl
-Biblioteka Devhelp do osadzania w innych aplikacjach..
+%description libs -l pl.UTF-8
+Biblioteka Devhelp do osadzania w innych aplikacjach.
 
 %package devel
 Summary:       Headers for Devhelp library
-Summary(pl):   Pliki nag³ówkowe biblioteki Devhelp
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Devhelp
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
 Headers for Devhelp library.
 
-%description devel -l pl
-Pliki nag³ówkowe biblioteki Devhelp.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Devhelp.
 
 %package static
 Summary:       Static Devhelp library
-Summary(pl):   Statyczna biblioteka Devhelp
+Summary(pl.UTF-8):     Statyczna biblioteka Devhelp
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static version of Devhelp library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka Devhelp.
 
+%package -n gedit2-plugin-devhelp
+Summary:       Devhelp plugin for Gedit editor
+Summary(pl.UTF-8):     Wtyczka devhelpa dla edytora Gedit
+Group:         X11/Applications
+Requires:      %{name} = %{version}-%{release}
+Requires:      gedit2
+
+%description -n gedit2-plugin-devhelp
+Allows to browse API documentation in Gedit.
+
+%description -n gedit2-plugin-devhelp -l pl.UTF-8
+Umożliwia przeglądanie dokumentacji API w Gedit.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -110,6 +114,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
        DESTDIR=$RPM_BUILD_ROOT
 
 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
+rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py
 
 %find_lang %{name}
 
@@ -118,10 +123,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %gconf_schema_install devhelp.schemas
+%update_icon_cache hicolor
 
 %preun
 %gconf_schema_uninstall devhelp.schemas
 
+%postun
+%update_icon_cache hicolor
+
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
@@ -131,8 +140,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/devhelp*
 %{_datadir}/%{name}
 %{_desktopdir}/*.desktop
-%{_iconsdir}/*
-%{_sysconfdir}/gconf/schemas/*
+%{_iconsdir}/hicolor/*/apps/*
+%{_sysconfdir}/gconf/schemas/devhelp.schemas
 
 %files libs
 %defattr(644,root,root,755)
@@ -148,3 +157,9 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+
+%files -n gedit2-plugin-devhelp
+%defattr(644,root,root,755)
+%dir %{_libdir}/gedit-2/plugins/%{name}
+%{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
+%{_libdir}/gedit-2/plugins/%{name}/*.py[oc]
This page took 0.095102 seconds and 4 git commands to generate.