]> git.pld-linux.org Git - packages/devhelp.git/blob - devhelp.spec
- release++ to rebuild with new mozilla
[packages/devhelp.git] / devhelp.spec
1 %define         minmozver       5:1.7
2 Summary:        DevHelp is a developer's help program for GNOME
3 Summary(pl):    Program pomocy dla programistów GNOME
4 Name:           devhelp
5 Version:        0.9.3
6 Release:        3
7 License:        GPL
8 Group:          X11/Applications
9 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/0.9/%{name}-%{version}.tar.bz2
10 # Source0-md5:  71833b565e83d5f23d012b2691d73b29
11 Patch0:         %{name}-bookdir.patch
12 Patch1:         %{name}-mozilla.patch
13 Patch2:         %{name}-mozilla_includes.patch
14 Patch3:         %{name}-desktop.patch
15 URL:            http://www.imendio.com/projects/devhelp/
16 BuildRequires:  GConf2-devel
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  gnome-common >= 2.8.0
20 BuildRequires:  gnome-vfs2-devel >= 2.4.0
21 BuildRequires:  gtk+2-devel >= 2:2.4.4
22 BuildRequires:  libglade2-devel >= 2.0.0
23 BuildRequires:  libgnomeui-devel >= 2.4.0
24 BuildRequires:  libtool
25 BuildRequires:  mozilla-devel >= %{minmozver}
26 BuildRequires:  zlib-devel
27 Requires(post,postun):  GConf2
28 Requires:       %{name}-libs = %{version}-%{release}
29 Requires:       mozilla = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla)
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 # can be provided by mozilla or mozilla-embedded
33 %define         _noautoreqdep   libgtkembedmoz.so libxpcom.so
34
35 %description
36 DevHelp is a developer's help program for GNOME.
37
38 %description -l pl
39 Program pomocy dla programistów GNOME.
40
41 %package libs
42 Summary:        Library to embed Devhelp in other applications
43 Summary(pl):    Biblioteka do osadzania Devhelp w innych aplikacjach
44 Group:          Libraries
45
46 %description libs
47 Library of Devhelp for embedding into other applications..
48
49 %description libs -l pl
50 Biblioteka Devhelp do osadzania w innych aplikacjach..
51
52 %package devel
53 Summary:        Headers for Devhelp library
54 Summary(pl):    Pliki nag³ówkowe biblioteki Devhelp
55 Group:          Development/Libraries
56 Requires:       %{name}-libs = %{version}-%{release}
57
58 %description devel
59 Headers for Devhelp library.
60
61 %description devel -l pl
62 Pliki nag³ówkowe biblioteki Devhelp.
63
64 %package static
65 Summary:        Static Devhelp library
66 Summary(pl):    Statyczna biblioteka Devhelp
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Static version of Devhelp library.
72
73 %description static -l pl
74 Statyczna biblioteka Devhelp.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79 %patch1 -p1
80 %patch2 -p1
81 %patch3 -p1
82
83 %build
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         --disable-install-schemas
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
96         $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
102
103 %find_lang %{name}
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post
109 %gconf_schema_install
110
111 %postun
112 %gconf_schema_install
113
114 %post   libs -p /sbin/ldconfig
115 %postun libs -p /sbin/ldconfig
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README TODO
120 %attr(755,root,root) %{_bindir}/devhelp*
121 %{_datadir}/%{name}
122 %{_datadir}/mime-info/*
123 %{_desktopdir}/*.desktop
124 %{_pixmapsdir}/*
125 %{_sysconfdir}/gconf/schemas/*
126
127 %files libs
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/lib*.so.*.*
130
131 %files devel
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/lib*.so
134 %{_libdir}/lib*.la
135 %{_pkgconfigdir}/*.pc
136 %{_includedir}/*
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/lib*.a
This page took 0.050211 seconds and 4 git commands to generate.