]> git.pld-linux.org Git - packages/devhelp.git/blob - devhelp.spec
- updated to 3.4.1
[packages/devhelp.git] / devhelp.spec
1 Summary:        API documentation browser for GNOME
2 Summary(pl.UTF-8):      Przeglądarka dokumentacji API dla GNOME
3 Name:           devhelp
4 Version:        3.4.1
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.4/%{name}-%{version}.tar.xz
9 # Source0-md5:  d9428af3d308c1f97c2a2eebe6b451c0
10 Patch0:         %{name}-bookdir.patch
11 URL:            http://www.imendio.com/projects/devhelp/
12 BuildRequires:  GConf2-devel >= 2.24.0
13 BuildRequires:  autoconf >= 2.64
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  gettext-devel >= 0.17
16 BuildRequires:  gnome-common >= 2.24.0
17 BuildRequires:  gtk+3-devel >= 3.0.2
18 BuildRequires:  gtk-webkit3-devel >= 1.6.0
19 BuildRequires:  intltool >= 0.40.0
20 BuildRequires:  libtool >= 2:2.2
21 BuildRequires:  pkgconfig
22 BuildRequires:  python >= 2.3
23 BuildRequires:  rpm-pythonprov
24 BuildRequires:  rpmbuild(macros) >= 1.311
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 BuildRequires:  zlib-devel
28 Requires(post,preun):   GConf2 >= 2.24.0
29 Requires(post,postun):  gtk-update-icon-cache
30 Requires:       %{name}-libs = %{version}-%{release}
31 Requires:       gtk-webkit3 >= 1.6.0
32 Requires:       hicolor-icon-theme
33 # sr@Latn vs. sr@latin
34 Conflicts:      glibc-misc < 6:2.7
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 API documentation browser for GNOME.
39
40 %description -l pl.UTF-8
41 Przeglądarka dokumentacji API dla GNOME.
42
43 %package libs
44 Summary:        Library to embed Devhelp in other applications
45 Summary(pl.UTF-8):      Biblioteka do osadzania Devhelp w innych aplikacjach
46 Group:          X11/Libraries
47
48 %description libs
49 Library of Devhelp for embedding into other applications.
50
51 %description libs -l pl.UTF-8
52 Biblioteka Devhelp do osadzania w innych aplikacjach.
53
54 %package devel
55 Summary:        Headers for Devhelp library
56 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Devhelp
57 Group:          X11/Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59 Requires:       gtk+3-devel >= 3.0.2
60
61 %description devel
62 Headers for Devhelp library.
63
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki Devhelp.
66
67 %package static
68 Summary:        Static Devhelp library
69 Summary(pl.UTF-8):      Statyczna biblioteka Devhelp
70 Group:          X11/Development/Libraries
71 Requires:       %{name}-devel = %{version}-%{release}
72
73 %description static
74 Static version of Devhelp library.
75
76 %description static -l pl.UTF-8
77 Statyczna biblioteka Devhelp.
78
79 %package -n gedit2-plugin-devhelp
80 Summary:        Devhelp plugin for Gedit editor
81 Summary(pl.UTF-8):      Wtyczka devhelpa dla edytora Gedit
82 Group:          X11/Applications
83 Requires:       %{name} = %{version}-%{release}
84 Requires:       gedit2
85 Requires:       libpeas-loader-python
86 Requires:       python-pygobject >= 2.27.91
87
88 %description -n gedit2-plugin-devhelp
89 Plugin that allows to browse API documentation in Gedit.
90
91 %description -n gedit2-plugin-devhelp -l pl.UTF-8
92 Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit.
93
94 %prep
95 %setup -q
96 %patch0 -p1
97
98 %build
99 %{__intltoolize}
100 %{__libtoolize}
101 %{__aclocal}
102 %{__autoconf}
103 %{__autoheader}
104 %{__automake}
105 %configure \
106         --enable-static \
107         --disable-schemas-install \
108         --disable-silent-rules
109 %{__make}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
114         $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.py \
120         $RPM_BUILD_ROOT%{_libdir}/*.la
121
122 %find_lang %{name}
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post
128 %gconf_schema_install devhelp.schemas
129 %update_icon_cache hicolor
130
131 %preun
132 %gconf_schema_uninstall devhelp.schemas
133
134 %postun
135 %update_icon_cache hicolor
136
137 %post   libs -p /sbin/ldconfig
138 %postun libs -p /sbin/ldconfig
139
140 %files -f %{name}.lang
141 %defattr(644,root,root,755)
142 %doc AUTHORS NEWS README TODO
143 %attr(755,root,root) %{_bindir}/devhelp
144 %{_datadir}/%{name}
145 %{_desktopdir}/devhelp.desktop
146 %{_iconsdir}/hicolor/*/apps/*.png
147 %{_sysconfdir}/gconf/schemas/devhelp.schemas
148
149 %files libs
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.*
152 %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.0
153
154 %files devel
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/libdevhelp-3.so
157 %{_pkgconfigdir}/libdevhelp-3.0.pc
158 %{_includedir}/devhelp-3.0
159
160 %files static
161 %defattr(644,root,root,755)
162 %{_libdir}/libdevhelp-3.a
163
164 %files -n gedit2-plugin-devhelp
165 %defattr(644,root,root,755)
166 %{_libdir}/gedit/plugins/devhelp.plugin
167 %{_libdir}/gedit/plugins/devhelp.py[co]
This page took 0.08463 seconds and 3 git commands to generate.