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