]> git.pld-linux.org Git - packages/devhelp.git/blame - devhelp.spec
- sr@Latn -> sr@latin, rel. 3
[packages/devhelp.git] / devhelp.spec
CommitLineData
18f8e10b 1Summary: API documentation browser for GNOME
4188d237 2Summary(pl.UTF-8): Przeglądarka dokumentacji API dla GNOME
20782b1d 3Name: devhelp
081208c2 4Version: 0.16.1
ead4e980 5Release: 3
0328db91 6License: GPL v2+
20782b1d 7Group: X11/Applications
3be2333b 8Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.16/%{name}-%{version}.tar.bz2
081208c2 9# Source0-md5: e464a7305dddeec224ae08e30bf38e58
40506027 10Patch0: %{name}-bookdir.patch
2aa010a2 11Patch1: %{name}-mozilla_includes.patch
f6af5a2c 12URL: http://www.imendio.com/projects/devhelp/
081208c2 13BuildRequires: GConf2-devel >= 2.20.0
0574367f 14BuildRequires: autoconf
3be2333b 15BuildRequires: automake >= 1:1.9
90adff81 16BuildRequires: gnome-common >= 2.18.0
82af920d
PZ
17BuildRequires: gnome-vfs2-devel >= 2.20.0
18BuildRequires: gtk+2-devel >= 2:2.12.0
18f8e10b 19BuildRequires: libglade2-devel >= 1:2.6.0
0574367f 20BuildRequires: libtool
82af920d 21BuildRequires: libwnck-devel >= 2.20.0
5c3f0bd8 22BuildRequires: xulrunner-devel >= 1.8.0.4
0328db91 23BuildRequires: pkgconfig
1cf29e7b 24BuildRequires: python
18f8e10b 25BuildRequires: rpmbuild(macros) >= 1.311
9a1ccdd3 26BuildRequires: zlib-devel
081208c2 27Requires(post,preun): GConf2 >= 2.20.0
464f31c2 28Requires(post,postun): desktop-file-utils
735b8878 29Requires(post,postun): gtk+2
f51d3604 30Requires(post,postun): hicolor-icon-theme
64a66d5b 31Requires: %{name}-libs = %{version}-%{release}
9ec5e121 32%requires_eq_to xulrunner xulrunner-devel
ead4e980 33# sr@Latn vs. sr@latin
34Conflicts: glibc-misc < 6:2.7
20782b1d
AM
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
99082f43 37# can be provided by mozilla or mozilla-embedded
38%define _noautoreqdep libgtkembedmoz.so libxpcom.so
6a34f24e
MB
39# we have strict deps for it
40%define _noautoreq libxpcom.so
99082f43 41
20782b1d 42%description
18f8e10b 43API documentation browser for GNOME.
20782b1d 44
d20ab5a4
JR
45%description -l pl.UTF-8
46Przeglądarka dokumentacji API dla GNOME.
20782b1d 47
64a66d5b 48%package libs
49Summary: Library to embed Devhelp in other applications
4188d237 50Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach
64a66d5b 51Group: Libraries
52
53%description libs
18f8e10b 54Library of Devhelp for embedding into other applications.
64a66d5b 55
d20ab5a4 56%description libs -l pl.UTF-8
18f8e10b 57Biblioteka Devhelp do osadzania w innych aplikacjach.
64a66d5b 58
1609a537 59%package devel
64a66d5b 60Summary: Headers for Devhelp library
4188d237 61Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp
64a66d5b 62Group: Development/Libraries
63Requires: %{name}-libs = %{version}-%{release}
1609a537 64
65%description devel
64a66d5b 66Headers for Devhelp library.
1609a537 67
d20ab5a4
JR
68%description devel -l pl.UTF-8
69Pliki nagłówkowe biblioteki Devhelp.
1609a537 70
71%package static
64a66d5b 72Summary: Static Devhelp library
4188d237 73Summary(pl.UTF-8): Statyczna biblioteka Devhelp
64a66d5b 74Group: Development/Libraries
75Requires: %{name}-devel = %{version}-%{release}
1609a537 76
77%description static
64a66d5b 78Static version of Devhelp library.
1609a537 79
d20ab5a4 80%description static -l pl.UTF-8
64a66d5b 81Statyczna biblioteka Devhelp.
1609a537 82
e7c0fa80
MG
83%package -n gedit2-plugin-devhelp
84Summary: Devhelp plugin for Gedit editor
4188d237 85Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit
1cf29e7b 86Group: X11/Applications
249ab429 87Requires: %{name} = %{version}-%{release}
e7c0fa80
MG
88Requires: gedit2
89
90%description -n gedit2-plugin-devhelp
18f8e10b 91Allows to browse API documentation in Gedit.
e7c0fa80 92
d20ab5a4
JR
93%description -n gedit2-plugin-devhelp -l pl.UTF-8
94Umożliwia przeglądanie dokumentacji API w Gedit.
e7c0fa80 95
20782b1d
AM
96%prep
97%setup -q
c145ed5a 98%patch0 -p1
0574367f 99%patch1 -p1
20782b1d
AM
100
101%build
0574367f 102%{__libtoolize}
2aa010a2 103%{__aclocal} -I m4
0574367f 104%{__autoconf}
105%{__autoheader}
106%{__automake}
b42350d2 107%configure \
90adff81 108 --enable-static \
20782b1d
AM
109 --disable-install-schemas
110%{__make}
111
112%install
113rm -rf $RPM_BUILD_ROOT
35ab6b2c 114install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
621cc9d4 115 $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
20782b1d
AM
116
117%{__make} install \
944db8de 118 DESTDIR=$RPM_BUILD_ROOT
20782b1d 119
2dc813cf 120rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
18f8e10b 121rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py
2dc813cf 122
ead4e980 123[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
124 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
20782b1d
AM
125%find_lang %{name}
126
127%clean
128rm -rf $RPM_BUILD_ROOT
129
a5373a6b 130%post
2dc813cf 131%gconf_schema_install devhelp.schemas
464f31c2 132%update_desktop_database_post
18f8e10b 133%update_icon_cache hicolor
a5373a6b 134
2dc813cf 135%preun
136%gconf_schema_uninstall devhelp.schemas
a5373a6b 137
18f8e10b 138%postun
464f31c2 139%update_desktop_database_postun
18f8e10b 140%update_icon_cache hicolor
141
2f4b9d55 142%post libs -p /sbin/ldconfig
143%postun libs -p /sbin/ldconfig
1609a537 144
20782b1d
AM
145%files -f %{name}.lang
146%defattr(644,root,root,755)
4743b658 147%doc AUTHORS ChangeLog NEWS README TODO
a5373a6b 148%attr(755,root,root) %{_bindir}/devhelp*
9a1ccdd3 149%{_datadir}/%{name}
769eb951 150%{_desktopdir}/*.desktop
92f78795 151%{_iconsdir}/hicolor/*/apps/*
18f8e10b 152%{_sysconfdir}/gconf/schemas/devhelp.schemas
1609a537 153
64a66d5b 154%files libs
155%defattr(644,root,root,755)
156%attr(755,root,root) %{_libdir}/lib*.so.*.*
157
1609a537 158%files devel
159%defattr(644,root,root,755)
64a66d5b 160%attr(755,root,root) %{_libdir}/lib*.so
161%{_libdir}/lib*.la
162%{_pkgconfigdir}/*.pc
163%{_includedir}/*
1609a537 164
165%files static
166%defattr(644,root,root,755)
64a66d5b 167%{_libdir}/lib*.a
e7c0fa80
MG
168
169%files -n gedit2-plugin-devhelp
170%defattr(644,root,root,755)
1cf29e7b 171%dir %{_libdir}/gedit-2/plugins/%{name}
18f8e10b 172%{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
e7c0fa80 173%{_libdir}/gedit-2/plugins/%{name}/*.py[oc]
This page took 0.113979 seconds and 4 git commands to generate.