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